Cleanup initialize_object_slots, remove unused GetHashCode (ghc) handling. (#17834)
[mono-project.git] / msvc / build-external-llvm.vcxproj
blobbdc457af8c00bf6addd61577a597507fd05f1571
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     <ProjectReference Include="build-init.vcxproj">
23       <Project>{92ae7622-5f58-4234-9a26-9ec71876b3f4}</Project>
24     </ProjectReference>
25   </ItemGroup>
26   <PropertyGroup Label="Globals">
27     <ProjectGuid>{C3D4C623-55F8-4653-980D-61AA629B4E1D}</ProjectGuid>
28     <RootNamespace>buildexternalllvm</RootNamespace>
29     <Keyword>Win32Proj</Keyword>
30   </PropertyGroup>
31   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
32   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
33     <ConfigurationType>Utility</ConfigurationType>
34     <UseDebugLibraries>true</UseDebugLibraries>
35     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
36     <CharacterSet>Unicode</CharacterSet>
37   </PropertyGroup>
38   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
39     <ConfigurationType>Utility</ConfigurationType>
40     <UseDebugLibraries>false</UseDebugLibraries>
41     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
42     <WholeProgramOptimization>true</WholeProgramOptimization>
43     <CharacterSet>Unicode</CharacterSet>
44   </PropertyGroup>
45   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
46     <ConfigurationType>Utility</ConfigurationType>
47     <UseDebugLibraries>true</UseDebugLibraries>
48     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
49     <CharacterSet>Unicode</CharacterSet>
50   </PropertyGroup>
51   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
52     <ConfigurationType>Utility</ConfigurationType>
53     <UseDebugLibraries>false</UseDebugLibraries>
54     <PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
55     <WholeProgramOptimization>true</WholeProgramOptimization>
56     <CharacterSet>Unicode</CharacterSet>
57   </PropertyGroup>
58   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
59   <ImportGroup Label="ExtensionSettings">
60   </ImportGroup>
61   <ImportGroup Label="Shared">
62   </ImportGroup>
63   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
64     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65     <Import Project="mono.props" />
66   </ImportGroup>
67   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
68     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69     <Import Project="mono.props" />
70   </ImportGroup>
71   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
72     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
73     <Import Project="mono.props" />
74   </ImportGroup>
75   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
76     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
77     <Import Project="mono.props" />
78   </ImportGroup>
79   <PropertyGroup Label="UserMacros" />
80   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
81     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\</OutDir>
82     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
83   </PropertyGroup>
84   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
85     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\</OutDir>
86     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
87   </PropertyGroup>
88   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
89     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\</OutDir>
90     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
91   </PropertyGroup>
92   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
93     <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\bin\$(Configuration)\</OutDir>
94     <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
95   </PropertyGroup>
96   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
97     <ClCompile>
98       <WarningLevel>Level3</WarningLevel>
99       <Optimization>Disabled</Optimization>
100       <SDLCheck>true</SDLCheck>
101     </ClCompile>
102   </ItemDefinitionGroup>
103   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
104     <ClCompile>
105       <WarningLevel>Level3</WarningLevel>
106       <Optimization>Disabled</Optimization>
107       <SDLCheck>true</SDLCheck>
108     </ClCompile>
109   </ItemDefinitionGroup>
110   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111     <ClCompile>
112       <WarningLevel>Level3</WarningLevel>
113       <Optimization>MaxSpeed</Optimization>
114       <FunctionLevelLinking>true</FunctionLevelLinking>
115       <IntrinsicFunctions>true</IntrinsicFunctions>
116       <SDLCheck>true</SDLCheck>
117     </ClCompile>
118     <Link>
119       <EnableCOMDATFolding>true</EnableCOMDATFolding>
120       <OptimizeReferences>true</OptimizeReferences>
121     </Link>
122   </ItemDefinitionGroup>
123   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
124     <ClCompile>
125       <WarningLevel>Level3</WarningLevel>
126       <Optimization>MaxSpeed</Optimization>
127       <FunctionLevelLinking>true</FunctionLevelLinking>
128       <IntrinsicFunctions>true</IntrinsicFunctions>
129       <SDLCheck>true</SDLCheck>
130     </ClCompile>
131     <Link>
132       <EnableCOMDATFolding>true</EnableCOMDATFolding>
133       <OptimizeReferences>true</OptimizeReferences>
134     </Link>
135   </ItemDefinitionGroup>
136   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
137   <Import Project="mono.external.targets" />
138   <ImportGroup Label="ExtensionTargets">
139   </ImportGroup>
140   <PropertyGroup>
141     <_LLVMCFlags Condition="'$(MONO_PREPROCESSOR_DEFINITIONS)' != ''">$(MONO_PREPROCESSOR_DEFINITIONS.Replace(";"," "))</_LLVMCFlags>
142     <_LLVMCFlags>$(_LLVMCFlags.Trim())</_LLVMCFlags>
143     <_LLVMCFlags Condition="'$(_LLVMCFlags)' != ''">-D$(_LLVMCFlags.Replace(" "," -D"))</_LLVMCFlags>
144     <_LLVMEnableAsserts>-DLLVM_ENABLE_ASSERTIONS=Off</_LLVMEnableAsserts>
145     <_LLVMEnableAsserts Condition="'$(MONO_ENABLE_LLVM_ASSERTS)' == 'true'">-DLLVM_ENABLE_ASSERTIONS=On</_LLVMEnableAsserts>
146     <_LLVMAdditionalCMakeArgs>$(_LLVMEnableAsserts)</_LLVMAdditionalCMakeArgs>
147     <_LLVMBuildCommand>build-external-llvm.bat &quot;$(_LLVMSourceDir)&quot; &quot;$(_LLVMBuildDir)&quot; &quot;$(_LLVMInstallDir)&quot; &quot;$(_MonoOutputDir)&quot; &quot;$(_LLVMCFlags)&quot; &quot;$(_LLVMAdditionalCMakeArgs)&quot; &quot;$(Platform)&quot; &quot;$(Configuration)&quot;</_LLVMBuildCommand>
148   </PropertyGroup>
149   <Target Name="_LLVMBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableInternalLLVM)' == 'true'">
150     <Exec Command="$(_LLVMBuildCommand) &quot;Build&quot; &quot;$(PlatformToolset)&quot; &quot;$(WindowsTargetPlatformVersion)&quot; &quot;$(MSBuildBinPath)\&quot; &quot;$(_MonoExternalBuildForceMSBuild)&quot;" Condition="'$(_MonoEnableInternalLLVM)' == 'true'">
151       <Output TaskParameter="ExitCode" PropertyName="_BuildExternalLLVMExitCode" />
152     </Exec>
153   </Target>
154   <Target Name="_LLVMInstallBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableExternalLLVM)' == 'true'" DependsOnTargets="_SetupMonoLLVMBuildProperties">
155     <Exec Command="install-llvm-mono-build.bat &quot;$(MONO_LLVM_BIN_DIR)\..&quot; &quot;$(_MonoOutputDir)&quot;">
156       <Output TaskParameter="ExitCode" PropertyName="_BuildExternalLLVMExitCode" />
157     </Exec>
158   </Target>
159   <Target Name="_LLVMCleanBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableInternalLLVM)' == 'true'">
160     <Exec Command="$(_LLVMBuildCommand) &quot;Clean&quot; &quot;$(PlatformToolset)&quot; &quot;$(WindowsTargetPlatformVersion)&quot; &quot;$(MSBuildBinPath)\&quot; &quot;$(_MonoExternalBuildForceMSBuild)&quot;">
161       <Output TaskParameter="ExitCode" PropertyName="_CleanExternalLLVMExitCode" />
162     </Exec>
163   </Target>
164   <Target Name="_AfterBuildExternalLLVM" Condition="'$(MONO_ENABLE_LLVM)' == 'true'" DependsOnTargets="_LLVMBuild;_LLVMInstallBuild" />
165   <Target Name="_AfterCleanExternalLLVM" Condition="'$(MONO_ENABLE_LLVM)' == 'true'" DependsOnTargets="_LLVMCleanBuild" />
166   <Target Name="AfterBuild" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment;_AfterBuildExternalLLVM" />
167   <Target Name="AfterClean" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment;_AfterCleanExternalLLVM" />
169   <Target Name="_GetLLVMConfig" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment" Returns="@(_GetLLVMConfigOutputItems)">
170     <ItemGroup>
171       <_GetLLVMConfigOutputItems Include="$(_MonoLLVMConfig)" />
172     </ItemGroup>
173   </Target>
175 </Project>