[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / msvc / build-external-llvm.vcxproj
blob9b06ed7f69a1236a560188c43f9364ff794f9a4f
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     <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
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>v140</PlatformToolset>
36     <CharacterSet>MultiByte</CharacterSet>
37   </PropertyGroup>
38   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
39     <ConfigurationType>Utility</ConfigurationType>
40     <UseDebugLibraries>false</UseDebugLibraries>
41     <PlatformToolset>v140</PlatformToolset>
42     <WholeProgramOptimization>true</WholeProgramOptimization>
43     <CharacterSet>MultiByte</CharacterSet>
44   </PropertyGroup>
45   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
46     <ConfigurationType>Utility</ConfigurationType>
47     <UseDebugLibraries>true</UseDebugLibraries>
48     <PlatformToolset>v140</PlatformToolset>
49     <CharacterSet>MultiByte</CharacterSet>
50   </PropertyGroup>
51   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
52     <ConfigurationType>Utility</ConfigurationType>
53     <UseDebugLibraries>false</UseDebugLibraries>
54     <PlatformToolset>v140</PlatformToolset>
55     <WholeProgramOptimization>true</WholeProgramOptimization>
56     <CharacterSet>MultiByte</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     <PostBuildEvent>
103       <Command>
104       </Command>
105     </PostBuildEvent>
106   </ItemDefinitionGroup>
107   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
108     <ClCompile>
109       <WarningLevel>Level3</WarningLevel>
110       <Optimization>Disabled</Optimization>
111       <SDLCheck>true</SDLCheck>
112     </ClCompile>
113     <PostBuildEvent>
114       <Command>
115       </Command>
116     </PostBuildEvent>
117   </ItemDefinitionGroup>
118   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
119     <ClCompile>
120       <WarningLevel>Level3</WarningLevel>
121       <Optimization>MaxSpeed</Optimization>
122       <FunctionLevelLinking>true</FunctionLevelLinking>
123       <IntrinsicFunctions>true</IntrinsicFunctions>
124       <SDLCheck>true</SDLCheck>
125     </ClCompile>
126     <Link>
127       <EnableCOMDATFolding>true</EnableCOMDATFolding>
128       <OptimizeReferences>true</OptimizeReferences>
129     </Link>
130     <PostBuildEvent>
131       <Command>
132       </Command>
133     </PostBuildEvent>
134   </ItemDefinitionGroup>
135   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
136     <ClCompile>
137       <WarningLevel>Level3</WarningLevel>
138       <Optimization>MaxSpeed</Optimization>
139       <FunctionLevelLinking>true</FunctionLevelLinking>
140       <IntrinsicFunctions>true</IntrinsicFunctions>
141       <SDLCheck>true</SDLCheck>
142     </ClCompile>
143     <Link>
144       <EnableCOMDATFolding>true</EnableCOMDATFolding>
145       <OptimizeReferences>true</OptimizeReferences>
146     </Link>
147     <PostBuildEvent>
148       <Command>
149       </Command>
150     </PostBuildEvent>
151   </ItemDefinitionGroup>
152   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
153   <Import Project="mono.external.targets" />
154   <ImportGroup Label="ExtensionTargets">
155   </ImportGroup>
156   <PropertyGroup>
157     <_LLVMCFlags Condition="'$(MONO_PREPROCESSOR_DEFINITIONS)' != ''">$(MONO_PREPROCESSOR_DEFINITIONS.Replace(";"," "))</_LLVMCFlags>
158     <_LLVMCFlags>$(_LLVMCFlags.Trim())</_LLVMCFlags>
159     <_LLVMCFlags Condition="'$(_LLVMCFlags)' != ''">-D$(_LLVMCFlags.Replace(" "," -D"))</_LLVMCFlags>
160     <_LLVMEnableAsserts>-DLLVM_ENABLE_ASSERTIONS=Off</_LLVMEnableAsserts>
161     <_LLVMEnableAsserts Condition="'$(MONO_ENABLE_LLVM_ASSERTS)' == 'true'">-DLLVM_ENABLE_ASSERTIONS=On</_LLVMEnableAsserts>
162     <_LLVMAdditionalCMakeArgs>$(_LLVMEnableAsserts)</_LLVMAdditionalCMakeArgs>
163     <_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>
164   </PropertyGroup>
165   <Target Name="_LLVMBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableInternalLLVM)' == 'true'">
166     <Exec Command="$(_LLVMBuildCommand) &quot;Build&quot; &quot;$(MSBuildBinPath)\&quot; &quot;$(_MonoExternalBuildForceMSBuild)&quot;" Condition="'$(_MonoEnableInternalLLVM)' == 'true'">
167       <Output TaskParameter="ExitCode" PropertyName="_BuildExternalLLVMExitCode" />
168     </Exec>
169   </Target>
170   <Target Name="_LLVMInstallBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableExternalLLVM)' == 'true'" DependsOnTargets="_SetupMonoLLVMBuildProperties">
171     <Exec Command="install-llvm-mono-build.bat &quot;$(MONO_LLVM_BIN_DIR)\..&quot; &quot;$(_MonoOutputDir)&quot;">
172       <Output TaskParameter="ExitCode" PropertyName="_BuildExternalLLVMExitCode" />
173     </Exec>
174   </Target>
175   <Target Name="_LLVMCleanBuild" Condition="'$(MONO_ENABLE_LLVM)' == 'true' and '$(_MonoEnableInternalLLVM)' == 'true'">
176     <Exec Command="$(_LLVMBuildCommand) &quot;Clean&quot; &quot;$(MSBuildBinPath)\&quot; &quot;$(_MonoExternalBuildForceMSBuild)&quot;">
177       <Output TaskParameter="ExitCode" PropertyName="_CleanExternalLLVMExitCode" />
178     </Exec>
179   </Target>
180   <Target Name="_AfterBuildExternalLLVM" Condition="'$(MONO_ENABLE_LLVM)' == 'true'" DependsOnTargets="_LLVMBuild;_LLVMInstallBuild" />
181   <Target Name="_AfterCleanExternalLLVM" Condition="'$(MONO_ENABLE_LLVM)' == 'true'" DependsOnTargets="_LLVMCleanBuild" />
182   <Target Name="AfterBuild" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment;_AfterBuildExternalLLVM" />
183   <Target Name="AfterClean" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment;_AfterCleanExternalLLVM" />
185   <Target Name="_GetLLVMConfig" DependsOnTargets="_ConfigureExternalMonoLLVMBuildEnvironment" Returns="@(_GetLLVMConfigOutputItems)">
186     <ItemGroup>
187       <_GetLLVMConfigOutputItems Include="$(_MonoLLVMConfig)" />
188     </ItemGroup>
189   </Target>
191 </Project>