1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
\r
3 <ItemGroup Label="ProjectConfigurations">
\r
4 <ProjectConfiguration Include="Debug|Win32">
\r
5 <Configuration>Debug</Configuration>
\r
6 <Platform>Win32</Platform>
\r
7 </ProjectConfiguration>
\r
8 <ProjectConfiguration Include="Release|Win32">
\r
9 <Configuration>Release</Configuration>
\r
10 <Platform>Win32</Platform>
\r
11 </ProjectConfiguration>
\r
12 <ProjectConfiguration Include="Debug|x64">
\r
13 <Configuration>Debug</Configuration>
\r
14 <Platform>x64</Platform>
\r
15 </ProjectConfiguration>
\r
16 <ProjectConfiguration Include="Release|x64">
\r
17 <Configuration>Release</Configuration>
\r
18 <Platform>x64</Platform>
\r
19 </ProjectConfiguration>
\r
22 <ClInclude Include="..\config.h" />
\r
24 <PropertyGroup Label="Globals">
\r
25 <ProjectGuid>{92AE7622-5F58-4234-9A26-9EC71876B3F4}</ProjectGuid>
\r
26 <RootNamespace>buildinit</RootNamespace>
\r
27 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
\r
29 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
\r
30 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
\r
31 <ConfigurationType>Utility</ConfigurationType>
\r
32 <UseDebugLibraries>true</UseDebugLibraries>
\r
33 <PlatformToolset>v140</PlatformToolset>
\r
34 <CharacterSet>MultiByte</CharacterSet>
\r
36 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
\r
37 <ConfigurationType>Utility</ConfigurationType>
\r
38 <UseDebugLibraries>false</UseDebugLibraries>
\r
39 <PlatformToolset>v140</PlatformToolset>
\r
40 <WholeProgramOptimization>true</WholeProgramOptimization>
\r
41 <CharacterSet>MultiByte</CharacterSet>
\r
43 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
\r
44 <ConfigurationType>Utility</ConfigurationType>
\r
45 <UseDebugLibraries>true</UseDebugLibraries>
\r
46 <PlatformToolset>v140</PlatformToolset>
\r
47 <CharacterSet>MultiByte</CharacterSet>
\r
49 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
\r
50 <ConfigurationType>Utility</ConfigurationType>
\r
51 <UseDebugLibraries>false</UseDebugLibraries>
\r
52 <PlatformToolset>v140</PlatformToolset>
\r
53 <WholeProgramOptimization>true</WholeProgramOptimization>
\r
54 <CharacterSet>MultiByte</CharacterSet>
\r
56 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
\r
57 <ImportGroup Label="ExtensionSettings">
\r
59 <ImportGroup Label="Shared">
\r
61 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
62 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
63 <Import Project="mono.props" />
\r
65 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
66 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
67 <Import Project="mono.props" />
\r
69 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
70 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
71 <Import Project="mono.props" />
\r
73 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
74 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
75 <Import Project="mono.props" />
\r
77 <PropertyGroup Label="UserMacros" />
\r
78 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
79 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
80 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
82 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
83 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
84 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
86 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
87 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
88 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
90 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
91 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
92 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
94 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
96 <WarningLevel>Level3</WarningLevel>
\r
97 <Optimization>Disabled</Optimization>
\r
98 <SDLCheck>true</SDLCheck>
\r
104 </ItemDefinitionGroup>
\r
105 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
107 <WarningLevel>Level3</WarningLevel>
\r
108 <Optimization>Disabled</Optimization>
\r
109 <SDLCheck>true</SDLCheck>
\r
115 </ItemDefinitionGroup>
\r
116 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
118 <WarningLevel>Level3</WarningLevel>
\r
119 <Optimization>MaxSpeed</Optimization>
\r
120 <FunctionLevelLinking>true</FunctionLevelLinking>
\r
121 <IntrinsicFunctions>true</IntrinsicFunctions>
\r
122 <SDLCheck>true</SDLCheck>
\r
125 <EnableCOMDATFolding>true</EnableCOMDATFolding>
\r
126 <OptimizeReferences>true</OptimizeReferences>
\r
132 </ItemDefinitionGroup>
\r
133 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
135 <WarningLevel>Level3</WarningLevel>
\r
136 <Optimization>MaxSpeed</Optimization>
\r
137 <FunctionLevelLinking>true</FunctionLevelLinking>
\r
138 <IntrinsicFunctions>true</IntrinsicFunctions>
\r
139 <SDLCheck>true</SDLCheck>
\r
142 <EnableCOMDATFolding>true</EnableCOMDATFolding>
\r
143 <OptimizeReferences>true</OptimizeReferences>
\r
149 </ItemDefinitionGroup>
\r
150 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
\r
151 <ImportGroup Label="ExtensionTargets">
\r
153 <PropertyGroup Label="LLVMProperties" Condition="$(MONO_ENABLE_LLVM)=='true'">
\r
154 <LLVMConfig>$(MONO_LLVM_BIN_DIR)/llvm-config.exe</LLVMConfig>
\r
156 <Target Name="AfterBuildWinSetup">
\r
157 <Exec Command="winsetup.bat">
\r
158 <Output TaskParameter="ExitCode" PropertyName="WinSetupExitCode" />
\r
160 <Error Text="Failed running winsetup.bat" Condition="$(WinSetupExitCode) != 0" />
\r
162 <Target Name="AfterBuildLLVMSetup" Condition="$(MONO_ENABLE_LLVM)=='true'">
\r
163 <Message Importance="high" Text="Validating LLVM configuration..." />
\r
164 <Error Text="LLVM executable $(LLVMConfig) not found." Condition="!Exists($(LLVMConfig))" />
\r
165 <Message Importance="high" Text="LLVM Version:" />
\r
166 <Exec Command="$(MONO_LLVM_BIN_DIR)/llvm-config.exe --version" ConsoleToMSBuild="true">
\r
167 <Output TaskParameter="ConsoleOutput" PropertyName="MonoLLVMVersion" />
\r
169 <Message Importance="high" Text="LLVM API Version:" />
\r
170 <Exec Command="$(MONO_LLVM_BIN_DIR)/llvm-config.exe --mono-api-version" ConsoleToMSBuild="true" EchoOff="true">
\r
171 <Output TaskParameter="ConsoleOutput" PropertyName="MonoLLVMAPIVersion" />
\r
173 <Error Text="Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm." Condition="!$(MonoLLVMVersion.Contains('mono'))" />
\r
174 <Error Text="Expected llvm version 4, but llvm-config --version returned $(MonoLLVMAPIVersion)." Condition="$(MonoLLVMAPIVersion) != '4'" />
\r
175 <Message Importance="high" Text="Successfully validated LLVM configuration." />
\r
177 <Target Name="AfterBuild" DependsOnTargets="AfterBuildWinSetup;AfterBuildLLVMSetup" />
\r