]> git.saurik.com Git - apple/icu.git/blob - icuSources/allinone/Build.Windows.UWP.ProjectConfiguration.props
ICU-66108.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 <!-- The following PropertyGroups are used to set the binary and lib output locations -->
28 <PropertyGroup Condition="'$(Platform)'=='Win32'">
29 <IcuBinOutputDir>bin32uwp</IcuBinOutputDir>
30 <IcuLibOutputDir>lib32uwp</IcuLibOutputDir>
31 </PropertyGroup>
32 <PropertyGroup Condition="'$(Platform)'=='x64'">
33 <IcuBinOutputDir>bin64uwp</IcuBinOutputDir>
34 <IcuLibOutputDir>lib64uwp</IcuLibOutputDir>
35 </PropertyGroup>
36 <PropertyGroup Condition="'$(Platform)'=='ARM'">
37 <IcuBinOutputDir>binARMuwp</IcuBinOutputDir>
38 <IcuLibOutputDir>libARMuwp</IcuLibOutputDir>
39 </PropertyGroup>
40 <PropertyGroup Condition="'$(Platform)'=='ARM64'">
41 <IcuBinOutputDir>binARM64uwp</IcuBinOutputDir>
42 <IcuLibOutputDir>libARM64uwp</IcuLibOutputDir>
43 </PropertyGroup>
44 <ItemDefinitionGroup>
45 <Midl>
46 <PreprocessorDefinitions>
47 %(PreprocessorDefinitions)
48 U_PLATFORM_HAS_WINUWP_API=1;
49 </PreprocessorDefinitions>
50 </Midl>
51 <ClCompile>
52 <PreprocessorDefinitions>
53 %(PreprocessorDefinitions);
54 U_PLATFORM_HAS_WINUWP_API=1;
55 </PreprocessorDefinitions>
56 </ClCompile>
57 <ResourceCompile>
58 <PreprocessorDefinitions>
59 %(PreprocessorDefinitions)
60 U_PLATFORM_HAS_WINUWP_API=1;
61 </PreprocessorDefinitions>
62 </ResourceCompile>
63 </ItemDefinitionGroup>
64 </Project>