Fix CMake build.
[WebKit-https.git] / WebKitLibraries / win / tools / vsprops / common.props
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3   <PropertyGroup Label="UserMacros">
4     <CONFIGURATIONBUILDDIR>$(WEBKIT_OUTPUTDIR)\$(Configuration)</CONFIGURATIONBUILDDIR>
5     <DEBUGSUFFIX>
6     </DEBUGSUFFIX>
7   </PropertyGroup>
8   <PropertyGroup>
9     <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
10     <OutDir>$(ConfigurationBuildDir)\bin$(PlatformArchitecture)\</OutDir>
11     <IntDir>$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\</IntDir>
12     <LinkIncremental>false</LinkIncremental>
13     <NMakeBuildCommandLine>%SystemDrive%\cygwin\bin\which.exe bash 2>nul
14 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
15 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
16 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
17 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
18 set OFFICIAL_BUILD=$(OFFICIAL_BUILD)
19 nmake /nologo -f $(ProjectName).make</NMakeBuildCommandLine>
20     <NMakeReBuildCommandLine>%SystemDrive%\cygwin\bin\which.exe bash 2>nul
21 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
22 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
23 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
24 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
25 set OFFICIAL_BUILD=$(OFFICIAL_BUILD)
26 nmake /nologo -f $(ProjectName).make clean
27 nmake /nologo -f $(ProjectName).make</NMakeReBuildCommandLine>
28     <NMakeCleanCommandLine>%SystemDrive%\cygwin\bin\which.exe bash 2>nul
29 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH%
30
31 set PATH=$(VSInstallDir)\VC\bin;%PATH%
32
33 REM VS2010 has a known bug where the clean command does not recognize environment variables properly unless explicitly set here
34 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
35 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
36 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
37 nmake /nologo -f $(ProjectName).make clean</NMakeCleanCommandLine>
38     <TargetName>$(ProjectName)$(DebugSuffix)</TargetName>
39   </PropertyGroup>
40   <ItemDefinitionGroup>
41     <ClCompile>
42       <AdditionalOptions>/bigobj /GS %(AdditionalOptions)</AdditionalOptions>
43       <PreprocessorDefinitions>_WINDOWS;WINVER=0x601;_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1;_HAS_EXCEPTIONS=0;BUILDING_$(ProjectName);NOMINMAX;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
44       <PreprocessorDefinitions Condition="$(Platform)=='Win32'">WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
45       <PreprocessorDefinitions Condition="$(Platform)=='Win64'">x64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
46       <ExceptionHandling>false</ExceptionHandling>
47       <RuntimeTypeInfo>false</RuntimeTypeInfo>
48       <WarningLevel>Level4</WarningLevel>
49       <TreatWarningAsError>false</TreatWarningAsError>
50       <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
51       <DisableSpecificWarnings>4018;4068;4099;4100;4127;4138;4146;4180;4189;4201;4244;4251;4267;4275;4288;4291;4305;4309;4344;4355;4389;4396;4456;4457;4458;4459;4481;4503;4505;4510;4512;4530;4610;4702;4706;4800;4819;4951;4952;4996;6011;6031;6211;6246;6255;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
52       <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
53       <RuntimeLibrary Condition="$(Configuration)=='Release_WinCairo' or $(Configuration)=='Debug_WinCairo'">MultiThreadedDLL</RuntimeLibrary>
54       <FunctionLevelLinking>false</FunctionLevelLinking>
55       <FloatingPointExceptions>false</FloatingPointExceptions>
56       <OpenMPSupport>false</OpenMPSupport>
57       <PrecompiledHeaderFile>
58       </PrecompiledHeaderFile>
59       <PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
60       <AssemblerListingLocation>
61       </AssemblerListingLocation>
62       <MultiProcessorCompilation>true</MultiProcessorCompilation>
63       <StringPooling>false</StringPooling>
64       <MinimalRebuild>false</MinimalRebuild>
65       <CompileAs>CompileAsCpp</CompileAs>
66     </ClCompile>
67     <Lib>
68       <AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
69       <UseUnicodeResponseFiles>true</UseUnicodeResponseFiles>
70     </Lib>
71     <Midl>
72       <WarnAsError>true</WarnAsError>
73       <HeaderFileName>$(OutDir)%(Filename).h</HeaderFileName>
74     </Midl>
75     <PostBuildEvent>
76       <Command>@REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PostBuild.cmd file.
77 @if not exist "$(ProjectDir)$(ProjectName)PostBuild.cmd" exit /b
78
79 @set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
80 @set CONFIGURATIONNAME=$(ConfigurationName)
81 @set INPUTDIR=$(InputDir)
82 @set INPUTFILENAME=$(InputFileName)
83 @set INPUTPATH=$(InputPath)
84 @set INTDIR=$(IntDir)
85 @set OUTDIR=$(OutDir)
86 @set PLATFORMARCHITECTURE=$(PlatformArchitecture)
87 @set PLATFORMNAME=$(PlatformName)
88 @set PROJECTDIR=$(ProjectDir)
89 @set PROJECTFILENAME=$(ProjectFileName)
90 @set PROJECTNAME=$(ProjectName)
91 @set PROJECTPATH=$(ProjectPath)
92 @set SOLUTIONDIR=$(SolutionDir)
93 @set SOLUTIONFILENAME=$(SolutionFileName)
94 @set SOLUTIONNAME=$(SolutionName)
95 @set SOLUTIONPATH=$(SolutionPath)
96 @set TARGETDIR=$(TargetDir)
97 @set TARGETEXT=$(TargetExt)
98 @set TARGETFILENAME=$(TargetFileName)
99 @set TARGETPATH=$(TargetPath)
100 @set DEBUGSUFFIX=$(DebugSuffix)
101 @set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
102
103 @REM If any of the above variables didn't exist previously and
104 @REM were set to an empty string, set will set the errorlevel to 1,
105 @REM which will cause the project-specific script to think the build
106 @REM has failed. This cmd /c call will clear the errorlevel.
107 @cmd /c
108
109 @"$(ProjectDir)$(ProjectName)PostBuild.cmd"
110 </Command>
111     </PostBuildEvent>
112     <PreBuildEvent>
113       <Command>@REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PreBuild.cmd file.
114 @if not exist "$(ProjectDir)$(ProjectName)PreBuild.cmd" exit /b
115
116 @set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
117 @set CONFIGURATIONNAME=$(ConfigurationName)
118 @set INPUTDIR=$(InputDir)
119 @set INPUTFILENAME=$(InputFileName)
120 @set INPUTPATH=$(InputPath)
121 @set INTDIR=$(IntDir)
122 @set OUTDIR=$(OutDir)
123 @set PLATFORMARCHITECTURE=$(PlatformArchitecture)
124 @set PLATFORMNAME=$(PlatformName)
125 @set PROJECTDIR=$(ProjectDir)
126 @set PROJECTFILENAME=$(ProjectFileName)
127 @set PROJECTNAME=$(ProjectName)
128 @set PROJECTPATH=$(ProjectPath)
129 @set SOLUTIONDIR=$(SolutionDir)
130 @set SOLUTIONFILENAME=$(SolutionFileName)
131 @set SOLUTIONNAME=$(SolutionName)
132 @set SOLUTIONPATH=$(SolutionPath)
133 @set TARGETDIR=$(TargetDir)
134 @set TARGETEXT=$(TargetExt)
135 @set TARGETFILENAME=$(TargetFileName)
136 @set TARGETPATH=$(TargetPath)
137 @set DEBUGSUFFIX=$(DebugSuffix)
138 @set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
139
140 @REM If any of the above variables didn't exist previously and
141 @REM were set to an empty string, set will set the errorlevel to 1,
142 @REM which will cause the project-specific script to think the build
143 @REM has failed. This cmd /c call will clear the errorlevel.
144 @cmd /c
145
146 @"$(ProjectDir)$(ProjectName)PreBuild.cmd"
147 </Command>
148     </PreBuildEvent>
149     <PreLinkEvent>
150       <Command>@REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PreLink.cmd file.
151 @if not exist "$(ProjectDir)$(ProjectName)PreLink.cmd" exit /b
152
153 @set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
154 @set CONFIGURATIONNAME=$(ConfigurationName)
155 @set INPUTDIR=$(InputDir)
156 @set INPUTFILENAME=$(InputFileName)
157 @set INPUTPATH=$(InputPath)
158 @set INTDIR=$(IntDir)
159 @set OUTDIR=$(OutDir)
160 @set PLATFORMARCHITECTURE=$(PlatformArchitecture)
161 @set PLATFORMNAME=$(PlatformName)
162 @set PROJECTDIR=$(ProjectDir)
163 @set PROJECTFILENAME=$(ProjectFileName)
164 @set PROJECTNAME=$(ProjectName)
165 @set PROJECTPATH=$(ProjectPath)
166 @set SOLUTIONDIR=$(SolutionDir)
167 @set SOLUTIONFILENAME=$(SolutionFileName)
168 @set SOLUTIONNAME=$(SolutionName)
169 @set SOLUTIONPATH=$(SolutionPath)
170 @set TARGETDIR=$(TargetDir)
171 @set TARGETEXT=$(TargetExt)
172 @set TARGETFILENAME=$(TargetFileName)
173 @set TARGETPATH=$(TargetPath)
174 @set DEBUGSUFFIX=$(DebugSuffix)
175 @set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
176
177 @REM If any of the above variables didn't exist previously and
178 @REM were set to an empty string, set will set the errorlevel to 1,
179 @REM which will cause the project-specific script to think the build
180 @REM has failed. This cmd /c call will clear the errorlevel.
181 @cmd /c
182
183 @"$(ProjectDir)$(ProjectName)PreLink.cmd"
184 </Command>
185     </PreLinkEvent>
186     <ResourceCompile>
187       <Culture>0x0409</Culture>
188       <AdditionalIncludeDirectories>$(IntDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
189     </ResourceCompile>
190     <BuildLog />
191     <Link>
192       <AdditionalLibraryDirectories>$(IntDir)lib$(PlatformArchitecture);$(ConfigurationBuildDir)\lib$(PlatformArchitecture);$(WEBKIT_LIBRARIES)\lib$(PlatformArchitecture)</AdditionalLibraryDirectories>
193       <LinkErrorReporting>PromptImmediately</LinkErrorReporting>
194       <CLRUnmanagedCodeCheck>false</CLRUnmanagedCodeCheck>
195       <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
196       <AssemblyDebug>false</AssemblyDebug>
197       <SubSystem>Windows</SubSystem>
198       <HeapReserveSize>
199       </HeapReserveSize>
200       <HeapCommitSize>
201       </HeapCommitSize>
202       <StackReserveSize>
203       </StackReserveSize>
204       <StackCommitSize>
205       </StackCommitSize>
206       <LargeAddressAware>
207       </LargeAddressAware>
208       <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
209       <EnableUAC>
210       </EnableUAC>
211       <UACExecutionLevel>
212       </UACExecutionLevel>
213       <UACUIAccess>
214       </UACUIAccess>
215       <OptimizeReferences>true</OptimizeReferences>
216       <EnableCOMDATFolding>true</EnableCOMDATFolding>
217       <RandomizedBaseAddress>false</RandomizedBaseAddress>
218       <CLRThreadAttribute>DefaultThreadingAttribute</CLRThreadAttribute>
219       <ImportLibrary>$(ConfigurationBuildDir)\lib$(PlatformArchitecture)\$(TargetName).lib</ImportLibrary>
220     </Link>
221     <Bscmake />
222     <Xdcmake />
223     <ManifestResourceCompile>
224       <ResourceOutputFileName>$(IntDir)\$(TargetName)$(TargetExt).embed.manifest.res</ResourceOutputFileName>
225     </ManifestResourceCompile>
226     <ProjectReference>
227       <LinkLibraryDependencies>false</LinkLibraryDependencies>
228     </ProjectReference>
229     <BuildLog>
230       <Path>$(IntDir)BuildLog.htm</Path>
231     </BuildLog>
232   </ItemDefinitionGroup>
233   <ItemGroup>
234     <BuildMacro Include="CONFIGURATIONBUILDDIR">
235       <Value>$(CONFIGURATIONBUILDDIR)</Value>
236       <EnvironmentVariable>true</EnvironmentVariable>
237     </BuildMacro>
238     <BuildMacro Include="DEBUGSUFFIX">
239       <Value>$(DEBUGSUFFIX)</Value>
240       <EnvironmentVariable>true</EnvironmentVariable>
241     </BuildMacro>
242     <BuildMacro Include="PLATFORMARCHITECTURE">
243       <Value>$(PLATFORMARCHITECTURE)</Value>
244       <EnvironmentVariable>true</EnvironmentVariable>
245     </BuildMacro>
246   </ItemGroup>
247 </Project>
248