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
23 <ClInclude Include="..\winconfig.h" />
\r
25 <PropertyGroup Label="Globals">
\r
26 <ProjectGuid>{92AE7622-5F58-4234-9A26-9EC71876B3F4}</ProjectGuid>
\r
27 <RootNamespace>buildinit</RootNamespace>
\r
28 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
\r
30 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
\r
31 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
\r
32 <ConfigurationType>Utility</ConfigurationType>
\r
33 <UseDebugLibraries>true</UseDebugLibraries>
\r
34 <PlatformToolset>v140</PlatformToolset>
\r
35 <CharacterSet>MultiByte</CharacterSet>
\r
37 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
\r
38 <ConfigurationType>Utility</ConfigurationType>
\r
39 <UseDebugLibraries>false</UseDebugLibraries>
\r
40 <PlatformToolset>v140</PlatformToolset>
\r
41 <WholeProgramOptimization>true</WholeProgramOptimization>
\r
42 <CharacterSet>MultiByte</CharacterSet>
\r
44 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
\r
45 <ConfigurationType>Utility</ConfigurationType>
\r
46 <UseDebugLibraries>true</UseDebugLibraries>
\r
47 <PlatformToolset>v140</PlatformToolset>
\r
48 <CharacterSet>MultiByte</CharacterSet>
\r
50 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
\r
51 <ConfigurationType>Utility</ConfigurationType>
\r
52 <UseDebugLibraries>false</UseDebugLibraries>
\r
53 <PlatformToolset>v140</PlatformToolset>
\r
54 <WholeProgramOptimization>true</WholeProgramOptimization>
\r
55 <CharacterSet>MultiByte</CharacterSet>
\r
57 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
\r
58 <ImportGroup Label="ExtensionSettings">
\r
60 <ImportGroup Label="Shared">
\r
62 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
63 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
64 <Import Project="mono.props" />
\r
66 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
67 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
68 <Import Project="mono.props" />
\r
70 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
71 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
72 <Import Project="mono.props" />
\r
74 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
75 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
\r
76 <Import Project="mono.props" />
\r
78 <PropertyGroup Label="UserMacros" />
\r
79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
80 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
81 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
83 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
84 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
85 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
87 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
88 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
89 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
91 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
92 <OutDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\lib\$(Configuration)\</OutDir>
\r
93 <IntDir>$(MONO_BUILD_DIR_PREFIX)$(Platform)\obj\$(ProjectName)$(MONO_TARGET_SUFFIX)\$(Configuration)\</IntDir>
\r
95 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
\r
97 <WarningLevel>Level3</WarningLevel>
\r
98 <Optimization>Disabled</Optimization>
\r
99 <SDLCheck>true</SDLCheck>
\r
105 </ItemDefinitionGroup>
\r
106 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
\r
108 <WarningLevel>Level3</WarningLevel>
\r
109 <Optimization>Disabled</Optimization>
\r
110 <SDLCheck>true</SDLCheck>
\r
116 </ItemDefinitionGroup>
\r
117 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
\r
119 <WarningLevel>Level3</WarningLevel>
\r
120 <Optimization>MaxSpeed</Optimization>
\r
121 <FunctionLevelLinking>true</FunctionLevelLinking>
\r
122 <IntrinsicFunctions>true</IntrinsicFunctions>
\r
123 <SDLCheck>true</SDLCheck>
\r
126 <EnableCOMDATFolding>true</EnableCOMDATFolding>
\r
127 <OptimizeReferences>true</OptimizeReferences>
\r
133 </ItemDefinitionGroup>
\r
134 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
\r
136 <WarningLevel>Level3</WarningLevel>
\r
137 <Optimization>MaxSpeed</Optimization>
\r
138 <FunctionLevelLinking>true</FunctionLevelLinking>
\r
139 <IntrinsicFunctions>true</IntrinsicFunctions>
\r
140 <SDLCheck>true</SDLCheck>
\r
143 <EnableCOMDATFolding>true</EnableCOMDATFolding>
\r
144 <OptimizeReferences>true</OptimizeReferences>
\r
150 </ItemDefinitionGroup>
\r
151 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
\r
152 <ImportGroup Label="ExtensionTargets">
\r
154 <PropertyGroup Label="LLVMProperties" Condition="$(MONO_ENABLE_LLVM)=='true'">
\r
155 <LLVMConfig>$(MONO_LLVM_BIN_DIR)/llvm-config.exe</LLVMConfig>
\r
157 <Target Name="AfterBuildWinSetup">
\r
158 <Exec Command="winsetup.bat">
\r
159 <Output TaskParameter="ExitCode" PropertyName="WinSetupExitCode" />
\r
161 <Error Text="Failed running winsetup.bat" Condition="$(WinSetupExitCode) != 0" />
\r
163 <Target Name="AfterBuildLLVMSetup" Condition="$(MONO_ENABLE_LLVM)=='true'">
\r
164 <Message Importance="high" Text="Validating LLVM configuration..." />
\r
165 <Error Text="LLVM executable $(LLVMConfig) not found." Condition="!Exists($(LLVMConfig))" />
\r
166 <Message Importance="high" Text="LLVM Version:" />
\r
167 <Exec Command="$(MONO_LLVM_BIN_DIR)/llvm-config.exe --version" ConsoleToMSBuild="true">
\r
168 <Output TaskParameter="ConsoleOutput" PropertyName="MonoLLVMVersion" />
\r
170 <Message Importance="high" Text="LLVM API Version:" />
\r
171 <Exec Command="$(MONO_LLVM_BIN_DIR)/llvm-config.exe --mono-api-version" ConsoleToMSBuild="true" EchoOff="true">
\r
172 <Output TaskParameter="ConsoleOutput" PropertyName="MonoLLVMAPIVersion" />
\r
174 <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
175 <Error Text="Expected llvm version 4, but llvm-config --version returned $(MonoLLVMAPIVersion)." Condition="$(MonoLLVMAPIVersion) != '4'" />
\r
176 <Message Importance="high" Text="Successfully validated LLVM configuration." />
\r
178 <Target Name="AfterBuild" DependsOnTargets="AfterBuildWinSetup;AfterBuildLLVMSetup" />
\r