forked from microsoft/libHttpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatform_select.props
37 lines (36 loc) · 1.53 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
<?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)'!=''">
</When>
<When Condition="'$(ApplicationType)'=='Android'">
<PropertyGroup>
<HCPlatform>Android</HCPlatform>
</PropertyGroup>
</When>
<When Condition="'$(ApplicationType)'=='Windows Store'">
<PropertyGroup>
<HCPlatform>UWP</HCPlatform>
</PropertyGroup>
</When>
<When Condition="'$(Platform)'=='Durango'">
<PropertyGroup>
<HCPlatform>XDK</HCPlatform>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<HCPlatform>Win32</HCPlatform>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions Condition="'$(HCPlatform)'=='Android'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_ANDROID</PreprocessorDefinitions>
<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)'=='Win32'">%(PreprocessorDefinitions);HC_PLATFORM_MSBUILD_GUESS=HC_PLATFORM_WIN32</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>