[mono] Remove unused variable.
[mono-project.git] / msvc / build-init.vcxproj
blob46b4b18a967eeea572ac876df5bd8ddf045729e5
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
20   </ItemGroup>\r
21   <ItemGroup>\r
22     <ClInclude Include="..\config.h" />\r
23   </ItemGroup>\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
28   </PropertyGroup>\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
35   </PropertyGroup>\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
42   </PropertyGroup>\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
48   </PropertyGroup>\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
55   </PropertyGroup>\r
56   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />\r
57   <ImportGroup Label="ExtensionSettings">\r
58   </ImportGroup>\r
59   <ImportGroup Label="Shared">\r
60   </ImportGroup>\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
64   </ImportGroup>\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
68   </ImportGroup>\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
72   </ImportGroup>\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
76   </ImportGroup>\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
81   </PropertyGroup>\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
85   </PropertyGroup>\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
89   </PropertyGroup>\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
93   </PropertyGroup>\r
94   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
95     <ClCompile>\r
96       <WarningLevel>Level3</WarningLevel>\r
97       <Optimization>Disabled</Optimization>\r
98       <SDLCheck>true</SDLCheck>\r
99     </ClCompile>\r
100     <PostBuildEvent>\r
101       <Command>\r
102       </Command>\r
103     </PostBuildEvent>\r
104   </ItemDefinitionGroup>\r
105   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">\r
106     <ClCompile>\r
107       <WarningLevel>Level3</WarningLevel>\r
108       <Optimization>Disabled</Optimization>\r
109       <SDLCheck>true</SDLCheck>\r
110     </ClCompile>\r
111     <PostBuildEvent>\r
112       <Command>\r
113       </Command>\r
114     </PostBuildEvent>\r
115   </ItemDefinitionGroup>\r
116   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
117     <ClCompile>\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
123     </ClCompile>\r
124     <Link>\r
125       <EnableCOMDATFolding>true</EnableCOMDATFolding>\r
126       <OptimizeReferences>true</OptimizeReferences>\r
127     </Link>\r
128     <PostBuildEvent>\r
129       <Command>\r
130       </Command>\r
131     </PostBuildEvent>\r
132   </ItemDefinitionGroup>\r
133   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\r
134     <ClCompile>\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
140     </ClCompile>\r
141     <Link>\r
142       <EnableCOMDATFolding>true</EnableCOMDATFolding>\r
143       <OptimizeReferences>true</OptimizeReferences>\r
144     </Link>\r
145     <PostBuildEvent>\r
146       <Command>\r
147       </Command>\r
148     </PostBuildEvent>\r
149   </ItemDefinitionGroup>\r
150   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />\r
151   <ImportGroup Label="ExtensionTargets">\r
152   </ImportGroup>\r
153   <PropertyGroup Label="LLVMProperties" Condition="$(MONO_ENABLE_LLVM)=='true'">\r
154     <LLVMConfig>$(MONO_LLVM_BIN_DIR)/llvm-config.exe</LLVMConfig>\r
155   </PropertyGroup>\r
156   <Target Name="AfterBuildWinSetup">\r
157     <Exec Command="winsetup.bat">\r
158       <Output TaskParameter="ExitCode" PropertyName="WinSetupExitCode" />\r
159     </Exec>\r
160     <Error Text="Failed running winsetup.bat" Condition="$(WinSetupExitCode) != 0" />\r
161   </Target>\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
168     </Exec>\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
172     </Exec>\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
176   </Target>\r
177   <Target Name="AfterBuild" DependsOnTargets="AfterBuildWinSetup;AfterBuildLLVMSetup" />\r
178 </Project>