]> git.saurik.com Git - apple/icu.git/blob - icuSources/allinone/Build.Windows.UWP.ProjectConfiguration.props
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / allinone / Build.Windows.UWP.ProjectConfiguration.props
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html -->
3 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <!-- This file is used to set common configuration options for all *_uwp projects. -->
5 <PropertyGroup>
6 <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
7 <AppContainerApplication>true</AppContainerApplication>
8 <ApplicationType>Windows Store</ApplicationType>
9 <ApplicationTypeRevision>10.0</ApplicationTypeRevision>
10 </PropertyGroup>
11 <!-- If not already set, then we will default to using the latest installed Windows 10 SDK version. -->
12 <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'==''">
13 <!-- Detect the SDK version. -->
14 <WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10>
15 <WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10>
16 <WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10>
17 <WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10>
18 <!-- Sometimes the version in the registry has the '.0' suffix, and sometimes it doesn't. Check and add it. -->
19 <WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' != '' and !$(WindowsTargetPlatformVersion_10.EndsWith('.0'))">$(WindowsTargetPlatformVersion_10).0</WindowsTargetPlatformVersion_10>
20 <!-- Set the default. -->
21 <WindowsTargetPlatformVersion>$(WindowsTargetPlatformVersion_10)</WindowsTargetPlatformVersion>
22 <!-- Set the minimum Win10 SDK version to TH1/RTM. -->
23 <WindowsTargetPlatformMinVersion>10.0.10240.0</WindowsTargetPlatformMinVersion>
24 </PropertyGroup>
25 <!-- The following import will set the PlatformToolset configuration. -->
26 <Import Project="..\allinone\Build.Windows.PlatformToolset.props" />
27 <ItemDefinitionGroup>
28 <Midl>
29 <PreprocessorDefinitions>
30 %(PreprocessorDefinitions)
31 U_PLATFORM_HAS_WINUWP_API=1;
32 </PreprocessorDefinitions>
33 </Midl>
34 <ClCompile>
35 <PreprocessorDefinitions>
36 %(PreprocessorDefinitions);
37 U_PLATFORM_HAS_WINUWP_API=1;
38 </PreprocessorDefinitions>
39 </ClCompile>
40 <ResourceCompile>
41 <PreprocessorDefinitions>
42 %(PreprocessorDefinitions)
43 U_PLATFORM_HAS_WINUWP_API=1;
44 </PreprocessorDefinitions>
45 </ResourceCompile>
46 </ItemDefinitionGroup>
47 </Project>