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