[llvm] Disable running the llvm verifier by default, it was enabled by mistake, and...
[mono-project.git] / msvc / build-init.vcxproj
blob8d15e191ac40d7c870c97ad397d5b303b9b31249
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3   <ItemGroup Label="ProjectConfigurations">
4     <ProjectConfiguration Include="Debug|Win32">
5       <Configuration>Debug</Configuration>
6       <Platform>Win32</Platform>
7     </ProjectConfiguration>
8     <ProjectConfiguration Include="Release|Win32">
9       <Configuration>Release</Configuration>
10       <Platform>Win32</Platform>
11     </ProjectConfiguration>
12     <ProjectConfiguration Include="Debug|x64">
13       <Configuration>Debug</Configuration>
14       <Platform>x64</Platform>
15     </ProjectConfiguration>
16     <ProjectConfiguration Include="Release|x64">
17       <Configuration>Release</Configuration>
18       <Platform>x64</Platform>
19     </ProjectConfiguration>
20   </ItemGroup>
21   <ItemGroup>
22     <ClInclude Include="..\config.h" />
23     <ClInclude Include="..\winconfig.h" />
24   </ItemGroup>
25   <PropertyGroup Label="Globals">
26     <ProjectGuid>{92AE7622-5F58-4234-9A26-9EC71876B3F4}</ProjectGuid>
27     <RootNamespace>buildinit</RootNamespace>
28     <Keyword>Win32Proj</Keyword>
29   </PropertyGroup>
30   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
31   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
32     <ConfigurationType>Utility</ConfigurationType>
33     <UseDebugLibraries>true</UseDebugLibraries>
34     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
35     <CharacterSet>Unicode</CharacterSet>
36   </PropertyGroup>
37   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
38     <ConfigurationType>Utility</ConfigurationType>
39     <UseDebugLibraries>false</UseDebugLibraries>
40     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
41     <WholeProgramOptimization>true</WholeProgramOptimization>
42     <CharacterSet>Unicode</CharacterSet>
43   </PropertyGroup>
44   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
45     <ConfigurationType>Utility</ConfigurationType>
46     <UseDebugLibraries>true</UseDebugLibraries>
47     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
48     <CharacterSet>Unicode</CharacterSet>
49   </PropertyGroup>
50   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
51     <ConfigurationType>Utility</ConfigurationType>
52     <UseDebugLibraries>false</UseDebugLibraries>
53     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
54     <WholeProgramOptimization>true</WholeProgramOptimization>
55     <CharacterSet>Unicode</CharacterSet>
56   </PropertyGroup>
57   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
58   <ImportGroup Label="ExtensionSettings">
59   </ImportGroup>
60   <ImportGroup Label="Shared">
61   </ImportGroup>
62   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
63     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64     <Import Project="mono.props" />
65   </ImportGroup>
66   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68     <Import Project="mono.props" />
69   </ImportGroup>
70   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
71     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72     <Import Project="mono.props" />
73   </ImportGroup>
74   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
75     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
76     <Import Project="mono.props" />
77   </ImportGroup>
78   <PropertyGroup Label="UserMacros" />
79   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
80     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
81     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
82   </PropertyGroup>
83   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
84     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
85     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
86   </PropertyGroup>
87   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
88     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
89     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
90   </PropertyGroup>
91   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
92     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
93     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
94   </PropertyGroup>
95   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
96     <ClCompile>
97       <WarningLevel>Level3</WarningLevel>
98       <Optimization>Disabled</Optimization>
99       <SDLCheck>true</SDLCheck>
100     </ClCompile>
101   </ItemDefinitionGroup>
102   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
103     <ClCompile>
104       <WarningLevel>Level3</WarningLevel>
105       <Optimization>Disabled</Optimization>
106       <SDLCheck>true</SDLCheck>
107     </ClCompile>
108   </ItemDefinitionGroup>
109   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
110     <ClCompile>
111       <WarningLevel>Level3</WarningLevel>
112       <Optimization>MaxSpeed</Optimization>
113       <FunctionLevelLinking>true</FunctionLevelLinking>
114       <IntrinsicFunctions>true</IntrinsicFunctions>
115       <SDLCheck>true</SDLCheck>
116     </ClCompile>
117     <Link>
118       <EnableCOMDATFolding>true</EnableCOMDATFolding>
119       <OptimizeReferences>true</OptimizeReferences>
120     </Link>
121   </ItemDefinitionGroup>
122   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
123     <ClCompile>
124       <WarningLevel>Level3</WarningLevel>
125       <Optimization>MaxSpeed</Optimization>
126       <FunctionLevelLinking>true</FunctionLevelLinking>
127       <IntrinsicFunctions>true</IntrinsicFunctions>
128       <SDLCheck>true</SDLCheck>
129     </ClCompile>
130     <Link>
131       <EnableCOMDATFolding>true</EnableCOMDATFolding>
132       <OptimizeReferences>true</OptimizeReferences>
133     </Link>
134   </ItemDefinitionGroup>
135   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
136   <Import Project="mono.external.targets" />
137   <Import Project="mono.winconfig.targets" />
138   <ImportGroup Label="ExtensionTargets">
139   </ImportGroup>
141   <Target Name="AfterBuildWinSetup">
142     <PropertyGroup>
143       <_EnableDefines Condition="'$(MONO_ENABLE_LLVM)' == 'true'">$(_EnableDefines);ENABLE_LLVM;ENABLE_LLVM_RUNTIME</_EnableDefines>
144       <_EnableDefines Condition="'$(MONO_ENABLE_NETCORE)' == 'true'">$(_EnableDefines);ENABLE_NETCORE</_EnableDefines>
145       <_HaveDefines Condition="'$(MONO_ENABLE_BTLS)' == 'true'">$(_HaveDefines);HAVE_BTLS</_HaveDefines>
146       <_EnableDefines>$(_EnableDefines.Trim(';'))</_EnableDefines>
147       <_HaveDefines>$(_HaveDefines.Trim(';'))</_HaveDefines>
148     </PropertyGroup>
149     <GetVersionsFromConfigureAC ConfigFileRoot="$(MSBuildThisFileDirectory)..\">
150       <Output TaskParameter="MonoVersion" PropertyName="_MonoVersion" />
151       <Output TaskParameter="MonoCorlibVersion" PropertyName="_MonoCorlibVersion" />
152     </GetVersionsFromConfigureAC>
153     <WinConfigSetup ConfigFileRoot="$(MSBuildThisFileDirectory)..\"
154                     MonoVersion="$(_MonoVersion)"
155                     MonoCorlibVersion="$(_MonoCorlibVersion)"
156                     DisableDefines=""
157                     EnableDefines="$(_EnableDefines)"
158                     HaveDefines="$(_HaveDefines)"/>
159   </Target>
161   <Target Name="AfterBuild" DependsOnTargets="AfterBuildWinSetup" />
163   <Target Name="_BackupConfigFile" Condition="'$(_MonoConfigFileBackupExists)' != 'true' and Exists('$(MONO_DIR)/config.h')">
164     <Copy SourceFiles="$(MONO_DIR)/config.h" DestinationFiles="$(MONO_DIR)/cygconfig.h" />
165   </Target>
167   <Target Name="_CheckConfigFile">
168     <_CheckConfigurationProperty ConfFile="$(MONO_DIR)/config.h" ConfRegEx="#include.*cygconfig.h.*">
169       <Output TaskParameter="ConfPropertyFoundMatch" PropertyName="_MonoConfigFileBackupExists" />
170     </_CheckConfigurationProperty>
171   </Target>
173   <PropertyGroup>
174     <PrepareForBuildDependsOn>
175       _CheckConfigFile;
176       _BackupConfigFile;
177       $(PrepareForBuildDependsOn);
178     </PrepareForBuildDependsOn>
179   </PropertyGroup>
181 </Project>