forked from microsoft/xbox-live-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xsapi.staticlib.props
256 lines (226 loc) · 15.5 KB
/
xsapi.staticlib.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<XsapiRoot>$(MSBuildThisFileDirectory)</XsapiRoot>
<XsapiInclude>$(XsapiRoot)include\</XsapiInclude>
</PropertyGroup>
<!--Reuse libHttpClient platform detection logic-->
<Import Condition="'$(HCPlatform)' == ''" Project="$(XsapiRoot)External\xal\External\libHttpClient\platform_select.props" />
<PropertyGroup>
<XsapiPlatform>$(HCPlatform)</XsapiPlatform>
</PropertyGroup>
<!--If the platform wasn't manually set and libHttpClient logic did not infer it, set here-->
<PropertyGroup Condition="'$(XsapiPlatform)' == ''">
<XsapiPlatform Condition="'$(ApplicationType)'=='Windows Store'">UWP</XsapiPlatform>
<XsapiPlatform Condition="'$(ApplicationType)'=='' AND '$(Platform)'!='Durango'">Win32</XsapiPlatform>
<XsapiPlatform Condition="'$(ApplicationType)'=='' AND '$(Platform)'=='Durango'">XDK</XsapiPlatform>
</PropertyGroup>
<!--Set toolset and project name-->
<PropertyGroup>
<XsapiProjectName Condition="'$(XsapiProjectName)'=='GSDK' OR '$(XsapiProjectName)'=='GXDK'">GDK</XsapiProjectName> <!-- Back compat reasons -->
<XsapiToolset Condition="'$(PlatformToolset)'=='v140'">140</XsapiToolset>
<XsapiToolset Condition="'$(PlatformToolset)'=='v141'">141</XsapiToolset>
<XsapiToolset Condition="'$(PlatformToolset)'=='v142'">142</XsapiToolset>
<XsapiToolset Condition="'$(PlatformToolset)'=='v143'">142</XsapiToolset>
<XsapiToolset Condition="'$(XsapiToolset)'==''">141</XsapiToolset>
<XsapiProjectName Condition="'$(XsapiPlatform)' != 'Android'">Microsoft.Xbox.Services.$(XsapiToolset).$(XsapiPlatform).Cpp</XsapiProjectName>
<XsapiProjectName Condition="'$(XsapiPlatform)' == 'GDK'">Microsoft.Xbox.Services.$(XsapiToolset).GDK.C</XsapiProjectName>
</PropertyGroup>
<!--Support for older XsapiBuildFromSource prop name that controlled both XSAPI & libHttpClient -->
<PropertyGroup Condition="'$(XsapiBuildFromSource)' != ''">
<XsapiLibBuildFromSource>$(XsapiBuildFromSource)</XsapiLibBuildFromSource>
<LibHttpClientBuildFromSource>$(XsapiBuildFromSource)</LibHttpClientBuildFromSource>
</PropertyGroup>
<!--Turn build from source on when including this file -->
<PropertyGroup Condition="'$(XsapiLibBuildFromSource)' == ''">
<XsapiLibBuildFromSource>true</XsapiLibBuildFromSource>
<XsapiBuildFromSource>true</XsapiBuildFromSource> <!--Support for older GDKs which still use the XsapiBuildFromSource prop -->
</PropertyGroup>
<PropertyGroup Condition="'$(LibHttpClientBuildFromSource)' == ''">
<LibHttpClientBuildFromSource>true</LibHttpClientBuildFromSource>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiAddProjectReference)' == ''">
<XsapiAddProjectReference>true</XsapiAddProjectReference>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiPlatform)' == 'Win32'">
<XsapiXalRefs>true</XsapiXalRefs>
<XsapiXalHeaders>true</XsapiXalHeaders>
<UseCasablanaLite>true</UseCasablanaLite>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiPlatform)' == 'Win32' AND '$(XsapiUnitTests)'!='true'">
<XsapiCllRefs>true</XsapiCllRefs>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiPlatform)' == 'UWP'">
<XsapiXalRefs>true</XsapiXalRefs>
<XsapiXalHeaders>true</XsapiXalHeaders>
<XsapiTCUIHeaders>true</XsapiTCUIHeaders>
<UseCasablanaLite>true</UseCasablanaLite>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiPlatform)' == 'XDK'">
<XsapiXalRefs>true</XsapiXalRefs>
<XsapiXalHeaders>true</XsapiXalHeaders>
<UseCasablanaLite>true</UseCasablanaLite>
</PropertyGroup>
<PropertyGroup Condition="'$(XsapiPlatform)' == 'GDK'">
<XsapiXalHeaders>true</XsapiXalHeaders>
<UseCasablanaLite>true</UseCasablanaLite>
</PropertyGroup>
<ItemDefinitionGroup>
<!-- If you're updating here, check to see if you also need to update Utilities/GDK/Xbox.Services.API.C.props -->
<ClCompile>
<PreprocessorDefinitions>_NO_ASYNCRTIMP;_NO_PPLXIMP;_NO_XSAPIIMP;XBL_API_EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(XsapiPlatform)' == 'GDK'">HC_WINHTTP_WEBSOCKETS;HC_PLATFORM_IS_MICROSOFT=1;HC_PLATFORM_GDK=4;HC_PLATFORM=HC_PLATFORM_GDK;HC_DATAMODEL=HC_DATAMODEL_LLP64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(XsapiLibBuildFromSource)' != ''">XSAPI_BUILT_FROM_SOURCE=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>;$(XsapiInclude);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies Condition="'$(XsapiPlatform)'!='XDK' AND '$(XsapiPlatform)'!='Android'">Appnotify.lib;crypt32.lib;Winhttp.lib;Bcrypt.lib;pathcch.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup Condition="'$(XsapiAddProjectReference)' == 'true' AND '$(XsapiImpl)' != 'true' AND '$(ConfigurationType)'!='StaticLibrary'">
<ProjectReference Include="$(XsapiRoot)Build\$(XsapiProjectName)\$(XsapiProjectName).vcxproj">
<Project Condition="'$(XsapiPlatform)' == 'UWP'">{8F96710E-5169-4917-8874-7DE248F4D243}</Project>
<Project Condition="'$(XsapiPlatform)' == 'Win32' AND '$(XsapiToolset)' == '142'">{4F107DE4-98B1-42B7-8767-0B5102C88E4F}</Project>
<Project Condition="'$(XsapiPlatform)' == 'Win32' AND '$(XsapiToolset)' == '141'">{4F107DE4-98B1-42B7-8767-0B5102C88E4F}</Project>
<Project Condition="'$(XsapiPlatform)' == 'Win32' AND '$(XsapiToolset)' == '140'">{AB77D282-496D-413F-9A51-F78DF740A82A}</Project>
<Project Condition="'$(XsapiPlatform)' == 'XDK'">{8A112040-CDA1-4490-B518-62DFCC451FA7}</Project>
<Project Condition="'$(XsapiPlatform)' == 'GDK'">{60139f62-bf37-4f11-bd93-5fbf4e92100c}</Project>
<Project Condition="'$(XsapiPlatform)' == 'DesktopBridge' AND '$(XsapiToolset)' == '141'">{B0D02E4C-DB36-416C-8F1E-8666B3FAF876}</Project>
</ProjectReference>
</ItemGroup>
<!--Casablanca dependency-->
<PropertyGroup Condition="'$(UseCasablanaLite)' == 'true'">
<CppRestSdkInclude>$(XsapiRoot)Include\cpprestinclude\</CppRestSdkInclude>
</PropertyGroup>
<PropertyGroup Condition="'$(UseCasablanaLite)' != 'true'">
<CppRestSdkRoot>$(XsapiRoot)External\cpprestsdk\</CppRestSdkRoot>
<CppRestSdkInclude>$(CppRestSdkRoot)release\include\</CppRestSdkInclude>
<VisualStudioMajorVersion Condition="'$(VisualStudioVersion)' == '14.0'">14</VisualStudioMajorVersion>
<VisualStudioMajorVersion Condition="'$(VisualStudioVersion)' == '15.0'">15</VisualStudioMajorVersion>
<VisualStudioMajorVersion Condition="'$(VisualStudioVersion)' == '16.0'">15</VisualStudioMajorVersion>
<VisualStudioMajorVersion Condition="'$(VisualStudioVersion)' == '17.0'">15</VisualStudioMajorVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(CppRestSdkInclude)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup Condition="'$(XsapiAddProjectReference)' == 'true' AND '$(UseCasablanaLite)' != 'true' AND '$(ConfigurationType)'!='StaticLibrary'">
<ProjectReference Condition="'$(XsapiPlatform)' == 'UWP' OR '$(XsapiPlatform)' == 'DesktopBridge'" Include="$(CppRestSdkRoot)release\src\build\vs$(VisualStudioMajorVersion).uwp\cpprestsdk$(XsapiToolset).uwp.static.vcxproj">
<Project>{9AD285A2-301E-47A0-A299-14AD5D4F2758}</Project>
</ProjectReference>
<ProjectReference Condition="'$(XsapiPlatform)' == 'XDK'" Include="$(CppRestSdkRoot)release\src\build\vs$(VisualStudioMajorVersion).xbox\casablanca$(XsapiToolset).xbox.vcxproj">
<Project>{e621c269-d177-4c1b-80ea-c0a274b7a151}</Project>
</ProjectReference>
</ItemGroup>
<!--RapidJSON dependency-->
<PropertyGroup>
<RapidJSONSdkRoot>$(XsapiRoot)External\rapidjson\</RapidJSONSdkRoot>
<RapidJSONSdkInclude>$(RapidJSONSdkRoot)include\</RapidJSONSdkInclude>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(RapidJSONSdkInclude)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>RAPIDJSON_NO_INT64DEFINE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<!--LibHttpClient dependency-->
<PropertyGroup>
<HCPlatform Condition="'$(XsapiPlatform)' == 'DesktopBridge'">HC_PLATFORM_WIN32</HCPlatform>
</PropertyGroup>
<Import Project="$(XsapiRoot)External\xal\External\libHttpClient\libHttpClient.props" />
<!--CompactCoreCLL dependency-->
<PropertyGroup Condition="'$(XsapiCllRefs)' == 'true'">
<XalRoot>$(XsapiRoot)External\xal\</XalRoot>
<CoreCLLInclude>$(XsapiRoot)External\CompactCoreCLL\</CoreCLLInclude>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(XsapiCllRefs)' == 'true'">
<ClCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(CoreCLLInclude)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup Condition="'$(XsapiAddProjectReference)' == 'true' AND '$(ConfigurationType)'!='StaticLibrary' AND '$(XsapiCllRefs)' == 'true'">
<ProjectReference Include="$(XsapiRoot)External\CompactCoreCLL\CompactCoreCLL.$(XsapiPlatform).vcxproj">
<Project Condition="'$(XsapiPlatform)' == 'Win32'">{54ebecdc-a7fd-4e3f-bb1a-40d15f0b6792}</Project>
<Project Condition="'$(XsapiPlatform)' == 'XDK'">{0B3ED0FC-2866-4D05-A92E-411031596103}</Project>
<Project Condition="'$(XsapiPlatform)' == 'Android'">{2f1f7c6a-1fda-4cce-935d-0e9324d5db92}</Project>
</ProjectReference>
</ItemGroup>
<!--Xal dependency-->
<PropertyGroup Condition="'$(XsapiXalHeaders)' == 'true'">
<XalRoot>$(XsapiRoot)External\xal\</XalRoot>
<XalPlatform>$(HCLibPlatformType)</XalPlatform>
<XalInclude>$(XalRoot)source\Xal\include\</XalInclude>
<XalExtraInclude>$(XalRoot)source\XalExtra\include\</XalExtraInclude>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(XsapiXalHeaders)' == 'true'">
<ClCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(XalInclude);$(XalExtraInclude)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup Condition="'$(XsapiAddProjectReference)' == 'true' AND '$(XsapiXalRefs)' == 'true' AND '$(ConfigurationType)'!='StaticLibrary' AND '$(XsapiUnitTests)'!='true'">
<ProjectReference Include="$(XalRoot)Source\Xal\Xal.$(XalPlatform).vcxproj">
<Project Condition="'$(XalPlatform)' == 'Win32'">{7333335C-CD75-4802-8F56-702C0BE2563F}</Project>
<Project Condition="'$(XalPlatform)' == 'UWP'">{7326b85d-b8df-4a59-a2c7-c721a7a1b8cb}</Project>
</ProjectReference>
<ProjectReference Include="$(XsapiRoot)External\CompactCoreCLL\CompactCoreCLL.$(XsapiPlatform).vcxproj">
<Project Condition="'$(XsapiPlatform)' == 'Win32'">{54ebecdc-a7fd-4e3f-bb1a-40d15f0b6792}</Project>
<Project Condition="'$(XsapiPlatform)' == 'UWP'">{82cfe4ee-7a03-4bc4-810d-293806b4dab1}</Project>
</ProjectReference>
<ProjectReference Condition="'$(XsapiPlatform)' != 'XDK'" Include="$(XalRoot)External\OneDSBuildFiles\Telemetry.$(XalPlatform).vcxproj">
<Project Condition="'$(XalPlatform)' == 'Win32'">{0656b0fd-2f77-4840-aa4f-b9622bb9d39f}</Project>
<Project Condition="'$(XalPlatform)' == 'UWP'">{B4EB5355-7230-456D-97F8-624AA9F78606}</Project>
</ProjectReference>
<ProjectReference Condition="'$(XsapiPlatform)' != 'XDK'" Include="$(XalRoot)External\OneDSBuildFiles\Telemetry.Zlib.$(XalPlatform).vcxproj">
<Project Condition="'$(XalPlatform)' == 'Win32'">{517489c9-dd6f-4a0f-893c-a55bbd7dfbe6}</Project>
<Project Condition="'$(XalPlatform)' == 'UWP'">{4B32FD42-904F-4E50-B244-869D8C6D6F56}</Project>
</ProjectReference>
</ItemGroup>
<!--TCUI dependency-->
<!--<PropertyGroup Condition="'$(XsapiTCUIHeaders)' == 'true'">
<TCUIRoot>$(XsapiRoot)External\tcui\</TCUIRoot>
<TCUIPlatform>$(HCLibPlatformType)</TCUIPlatform>
<TCUIInclude>$(TCUIRoot)Include\</TCUIInclude>
</PropertyGroup>-->
<Target Name="XblBuildDebug" BeforeTargets="InitializeBuildStatus" Condition="'$(XblTraceBuildInfo)' == 'true'">
<Message Importance="High" Text="XblBuildDebug" />
<Message Importance="High" Text=" ProjectName = '$(ProjectName)'" />
<Message Importance="High" Text=" Configuration = '$(Configuration)'" />
<Message Importance="High" Text=" Platform = '$(Platform)'" />
<Message Importance="High" Text=" ConfigurationType = '$(ConfigurationType)'" />
<Message Importance="High" Text=" PlatformToolset = '$(PlatformToolset)'" />
<Message Importance="High" Text=" " />
<Message Importance="High" Text=" XsapiPlatform = '$(XsapiPlatform)'" />
<Message Importance="High" Text=" XsapiToolset = '$(XsapiToolset)'" />
<Message Importance="High" Text=" XsapiProjectName = '$(XsapiProjectName)'" />
<Message Importance="High" Text=" XsapiRoot = '$(XsapiRoot)'" />
<Message Importance="High" Text=" XsapiInclude = '$(XsapiInclude)'" />
<Message Importance="High" Text=" XsapiXalRefs = '$(XsapiXalRefs)'" />
<Message Importance="High" Text=" XsapiXalHeaders = '$(XsapiXalHeaders)'" />
<Message Importance="High" Text=" UseCasablanaLite = '$(UseCasablanaLite)'" />
<Message Importance="High" Text=" CppRestSdkInclude = '$(CppRestSdkInclude)'" />
<Message Importance="High" Text=" CppRestSdkRoot = '$(CppRestSdkRoot)'" />
<Message Importance="High" Text=" VisualStudioMajorVersion = '$(VisualStudioMajorVersion)'" />
<Message Importance="High" Text=" HCLibPlatformType = '$(HCLibPlatformType)'" />
<Message Importance="High" Text=" XalRoot = '$(XalRoot)'" />
<Message Importance="High" Text=" XalPlatform = '$(XalPlatform)'" />
<Message Importance="High" Text=" XalInclude = '$(XalInclude)'" />
<Message Importance="High" Text=" TCUIRoot = '$(TCUIRoot)'" />
<Message Importance="High" Text=" TCUIPlatform = '$(TCUIPlatform)'" />
<Message Importance="High" Text=" TCUIInclude = '$(TCUIInclude)'" />
<Message Importance="High" Text=" CoreCLLInclude = '$(CoreCLLInclude)'" />
<Message Importance="High" Text=" " />
<Message Importance="High" Text=" HCImportLibPath = '$(HCImportLibPath)'" />
<Message Importance="High" Text=" HCDllPath = '$(HCImportLibPath)'" />
<Message Importance="High" Text=" HCBuildRoot = '$(HCBuildRoot)'" />
<Message Importance="High" Text=" HCLibToolset = '$(HCLibToolset)'" />
<Message Importance="High" Text=" HCProjectName = '$(HCProjectName)'" />
<Message Importance="High" Text=" " />
<Message Importance="High" Text=" IntDir = '$(IntDir)'" />
<Message Importance="High" Text=" OutDir = '$(OutDir)'" />
<Message Importance="High" Text=" LibPath = '$(LibPath)'" />
<Message Importance="High" Text=" IntermediateOutputPath = '$(IntermediateOutputPath)'" />
<Message Importance="High" Text=" OutputPath = '$(OutputPath)'" />
<Message Importance="High" Text=" " />
</Target>
</Project>