]> git.saurik.com Git - apple/icu.git/blob - icuSources/allinone/Build.Windows.ProjectConfiguration.props
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / allinone / Build.Windows.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 default configuration options for all non-UWP Visual Studio projects. -->
5 <!-- These are the default project configurations for building. -->
6 <ItemGroup Label="ProjectConfigurations">
7 <ProjectConfiguration Include="Debug|Win32">
8 <Configuration>Debug</Configuration>
9 <Platform>Win32</Platform>
10 </ProjectConfiguration>
11 <ProjectConfiguration Include="Debug|x64">
12 <Configuration>Debug</Configuration>
13 <Platform>x64</Platform>
14 </ProjectConfiguration>
15 <ProjectConfiguration Include="Release|Win32">
16 <Configuration>Release</Configuration>
17 <Platform>Win32</Platform>
18 </ProjectConfiguration>
19 <ProjectConfiguration Include="Release|x64">
20 <Configuration>Release</Configuration>
21 <Platform>x64</Platform>
22 </ProjectConfiguration>
23 </ItemGroup>
24 <!-- The following import will set the PlatformToolset configuration. -->
25 <Import Project="Build.Windows.PlatformToolset.props" />
26 <PropertyGroup>
27 <!-- This is the default SDK target. -->
28 <!-- Note that the Windows 8.1 SDK is backwards compatible down-level to Windows 7, so
29 setting this to 8.1 does not actually imply targeting Windows 8.1. -->
30 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
31 </PropertyGroup>
32 <PropertyGroup>
33 <!-- We need to explicitly set the target version to Windows 7. -->
34 <Win32_WinNTVersion>0x0601</Win32_WinNTVersion>
35 </PropertyGroup>
36 <!-- Options that are common to *all* configurations for *all* projects. -->
37 <ItemDefinitionGroup>
38 <Midl>
39 <MkTypLibCompatible>true</MkTypLibCompatible>
40 <SuppressStartupBanner>true</SuppressStartupBanner>
41 </Midl>
42 <ClCompile>
43 <!-- Note: These preprocessor defines are for *all* configurations for *all* projects. -->
44 <!-- Note: See ticket #5750 for the macro '_CRT_SECURE_NO_DEPRECATE'. -->
45 <PreprocessorDefinitions>
46 WINVER=$(Win32_WinNTVersion);
47 _WIN32_WINNT=$(Win32_WinNTVersion);
48 _CRT_SECURE_NO_DEPRECATE;
49 %(PreprocessorDefinitions)
50 </PreprocessorDefinitions>
51 <!-- We always want to treat wchar_t as a "real" C++ type, instead of a typedef. -->
52 <TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
53 <SuppressStartupBanner>true</SuppressStartupBanner>
54 <!-- Set the source encoding and runtime encoding to UTF-8 by default. -->
55 <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
56 <!-- Enable parallel compilation for faster builds. -->
57 <MultiProcessorCompilation>true</MultiProcessorCompilation>
58 </ClCompile>
59 <ResourceCompile>
60 <Culture>0x0409</Culture>
61 </ResourceCompile>
62 <Link>
63 <SuppressStartupBanner>true</SuppressStartupBanner>
64 </Link>
65 </ItemDefinitionGroup>
66 <!-- Options that are common to all 'Release' configurations for *all* projects. -->
67 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
68 <Midl>
69 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
70 </Midl>
71 <ClCompile>
72 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
73 <StringPooling>true</StringPooling>
74 </ClCompile>
75 <ResourceCompile>
76 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
77 </ResourceCompile>
78 <Link>
79 <EnableCOMDATFolding>true</EnableCOMDATFolding>
80 </Link>
81 </ItemDefinitionGroup>
82 <!-- Options that are common to all 'Debug' configurations for *all* projects. -->
83 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
84 <Midl>
85 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
86 </Midl>
87 <ClCompile>
88 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
89 <Optimization>Disabled</Optimization>
90 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
91 <BufferSecurityCheck>true</BufferSecurityCheck>
92 </ClCompile>
93 <ResourceCompile>
94 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
95 </ResourceCompile>
96 <Link>
97 <GenerateDebugInformation>true</GenerateDebugInformation>
98 <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
99 </Link>
100 </ItemDefinitionGroup>
101 <!-- Options that are common to all 32-bit configurations for *all* projects. -->
102 <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
103 <Midl>
104 <TargetEnvironment>Win32</TargetEnvironment>
105 </Midl>
106 <ClCompile>
107 <PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108 </ClCompile>
109 <Link>
110 <TargetMachine>MachineX86</TargetMachine>
111 </Link>
112 </ItemDefinitionGroup>
113 <!-- Options that are common to all 64-bit configurations for *all* projects. -->
114 <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
115 <Midl>
116 <TargetEnvironment>X64</TargetEnvironment>
117 </Midl>
118 <ClCompile>
119 <PreprocessorDefinitions>WIN64;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
120 </ClCompile>
121 <Link>
122 <TargetMachine>MachineX64</TargetMachine>
123 </Link>
124 </ItemDefinitionGroup>
125 </Project>