forked from microsoft/libHttpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform_select.props
42 lines (41 loc) · 1.8 KB
/
platform_select.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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--If the HCPlatform is not set, infer it-->
<Choose>
<When Condition="'$(HCPlatform)'=='GSDK' OR '$(HCPlatform)'=='GXDK'"> <!-- For backcompat -->
<PropertyGroup>
<HCPlatform>GDK</HCPlatform>
</PropertyGroup>
</When>
<When Condition="'$(HCPlatform)'!=''">
</When>
<When Condition="'$(ApplicationType)'=='Windows Store'">
<PropertyGroup>
<HCPlatform>UWP</HCPlatform>
</PropertyGroup>
</When>
<When Condition="'$(Platform)'=='Durango'">
<PropertyGroup>
<HCPlatform>XDK</HCPlatform>
</PropertyGroup>
</When>
<When Condition="'$(Platform)'=='Gaming.Desktop.x64' OR '$(Platform)'=='Gaming.Xbox.XboxOne.x64' OR '$(Platform)'=='Gaming.Xbox.Scarlett.x64'">
<PropertyGroup>
<HCPlatform>GDK</HCPlatform>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<HCPlatform>Win32</HCPlatform>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions Condition="'$(HCPlatform)'=='UWP'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_UWP</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(HCPlatform)'=='XDK'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_XDK</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(HCPlatform)'=='GDK'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_GDK</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(HCPlatform)'=='Win32'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_WIN32</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>