[Win] Turn off SSE Instructions for 32-bit Builds
[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 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
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
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=0x502;_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>
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;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       <EnableEnhancedInstructionSet Condition="$(Platform)=='Win32'">NoExtensions</EnableEnhancedInstructionSet>
67     </ClCompile>
68     <Lib>
69       <AdditionalOptions>/ignore:4221 %(AdditionalOptions)</AdditionalOptions>
70       <UseUnicodeResponseFiles>true</UseUnicodeResponseFiles>
71     </Lib>
72     <Midl>
73       <WarnAsError>true</WarnAsError>
74       <HeaderFileName>$(OutDir)%(Filename).h</HeaderFileName>
75     </Midl>
76     <PostBuildEvent>
77       <Command>REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PostBuild.cmd file.
78 if not exist "$(ProjectDir)$(ProjectName)PostBuild.cmd" exit /b
79
80 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
81 set CONFIGURATIONNAME=$(ConfigurationName)
82 set INPUTDIR=$(InputDir)
83 set INPUTFILENAME=$(InputFileName)
84 set INPUTPATH=$(InputPath)
85 set INTDIR=$(IntDir)
86 set OUTDIR=$(OutDir)
87 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
88 set PLATFORMNAME=$(PlatformName)
89 set PROJECTDIR=$(ProjectDir)
90 set PROJECTFILENAME=$(ProjectFileName)
91 set PROJECTNAME=$(ProjectName)
92 set PROJECTPATH=$(ProjectPath)
93 set SOLUTIONDIR=$(SolutionDir)
94 set SOLUTIONFILENAME=$(SolutionFileName)
95 set SOLUTIONNAME=$(SolutionName)
96 set SOLUTIONPATH=$(SolutionPath)
97 set TARGETDIR=$(TargetDir)
98 set TARGETEXT=$(TargetExt)
99 set TARGETFILENAME=$(TargetFileName)
100 set TARGETPATH=$(TargetPath)
101 set DEBUGSUFFIX=$(DebugSuffix)
102 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
103
104 REM If any of the above variables didn't exist previously and
105 REM were set to an empty string, set will set the errorlevel to 1,
106 REM which will cause the project-specific script to think the build
107 REM has failed. This cmd /c call will clear the errorlevel.
108 cmd /c
109
110 "$(ProjectDir)$(ProjectName)PostBuild.cmd"
111 </Command>
112     </PostBuildEvent>
113     <PreBuildEvent>
114       <Command>REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PreBuild.cmd file.
115 if not exist "$(ProjectDir)$(ProjectName)PreBuild.cmd" exit /b
116
117 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
118 set CONFIGURATIONNAME=$(ConfigurationName)
119 set INPUTDIR=$(InputDir)
120 set INPUTFILENAME=$(InputFileName)
121 set INPUTPATH=$(InputPath)
122 set INTDIR=$(IntDir)
123 set OUTDIR=$(OutDir)
124 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
125 set PLATFORMNAME=$(PlatformName)
126 set PROJECTDIR=$(ProjectDir)
127 set PROJECTFILENAME=$(ProjectFileName)
128 set PROJECTNAME=$(ProjectName)
129 set PROJECTPATH=$(ProjectPath)
130 set SOLUTIONDIR=$(SolutionDir)
131 set SOLUTIONFILENAME=$(SolutionFileName)
132 set SOLUTIONNAME=$(SolutionName)
133 set SOLUTIONPATH=$(SolutionPath)
134 set TARGETDIR=$(TargetDir)
135 set TARGETEXT=$(TargetExt)
136 set TARGETFILENAME=$(TargetFileName)
137 set TARGETPATH=$(TargetPath)
138 set DEBUGSUFFIX=$(DebugSuffix)
139 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
140
141 REM If any of the above variables didn't exist previously and
142 REM were set to an empty string, set will set the errorlevel to 1,
143 REM which will cause the project-specific script to think the build
144 REM has failed. This cmd /c call will clear the errorlevel.
145 cmd /c
146
147 "$(ProjectDir)$(ProjectName)PreBuild.cmd"
148 </Command>
149     </PreBuildEvent>
150     <PreLinkEvent>
151       <Command>REM Do not edit from the Visual Studio IDE! Customize via a $(ProjectName)PreLink.cmd file.
152 if not exist "$(ProjectDir)$(ProjectName)PreLink.cmd" exit /b
153
154 set CONFIGURATIONBUILDDIR=$(ConfigurationBuildDir)
155 set CONFIGURATIONNAME=$(ConfigurationName)
156 set INPUTDIR=$(InputDir)
157 set INPUTFILENAME=$(InputFileName)
158 set INPUTPATH=$(InputPath)
159 set INTDIR=$(IntDir)
160 set OUTDIR=$(OutDir)
161 set PLATFORMARCHITECTURE=$(PlatformArchitecture)
162 set PLATFORMNAME=$(PlatformName)
163 set PROJECTDIR=$(ProjectDir)
164 set PROJECTFILENAME=$(ProjectFileName)
165 set PROJECTNAME=$(ProjectName)
166 set PROJECTPATH=$(ProjectPath)
167 set SOLUTIONDIR=$(SolutionDir)
168 set SOLUTIONFILENAME=$(SolutionFileName)
169 set SOLUTIONNAME=$(SolutionName)
170 set SOLUTIONPATH=$(SolutionPath)
171 set TARGETDIR=$(TargetDir)
172 set TARGETEXT=$(TargetExt)
173 set TARGETFILENAME=$(TargetFileName)
174 set TARGETPATH=$(TargetPath)
175 set DEBUGSUFFIX=$(DebugSuffix)
176 set WEBKIT_LIBRARIES=$(WEBKIT_LIBRARIES)
177
178 REM If any of the above variables didn't exist previously and
179 REM were set to an empty string, set will set the errorlevel to 1,
180 REM which will cause the project-specific script to think the build
181 REM has failed. This cmd /c call will clear the errorlevel.
182 cmd /c
183
184 "$(ProjectDir)$(ProjectName)PreLink.cmd"
185 </Command>
186     </PreLinkEvent>
187     <ResourceCompile>
188       <Culture>0x0409</Culture>
189       <AdditionalIncludeDirectories>$(IntDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
190     </ResourceCompile>
191     <BuildLog />
192     <Link>
193       <AdditionalLibraryDirectories>$(IntDir)lib$(PlatformArchitecture);$(ConfigurationBuildDir)\lib$(PlatformArchitecture);$(WEBKIT_LIBRARIES)\lib$(PlatformArchitecture)</AdditionalLibraryDirectories>
194       <LinkErrorReporting>PromptImmediately</LinkErrorReporting>
195       <CLRUnmanagedCodeCheck>false</CLRUnmanagedCodeCheck>
196       <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
197       <AssemblyDebug>false</AssemblyDebug>
198       <SubSystem>Windows</SubSystem>
199       <HeapReserveSize>
200       </HeapReserveSize>
201       <HeapCommitSize>
202       </HeapCommitSize>
203       <StackReserveSize>
204       </StackReserveSize>
205       <StackCommitSize>
206       </StackCommitSize>
207       <LargeAddressAware>
208       </LargeAddressAware>
209       <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
210       <EnableUAC>
211       </EnableUAC>
212       <UACExecutionLevel>
213       </UACExecutionLevel>
214       <UACUIAccess>
215       </UACUIAccess>
216       <OptimizeReferences>true</OptimizeReferences>
217       <EnableCOMDATFolding>true</EnableCOMDATFolding>
218       <RandomizedBaseAddress>false</RandomizedBaseAddress>
219       <CLRThreadAttribute>DefaultThreadingAttribute</CLRThreadAttribute>
220       <ImportLibrary>$(ConfigurationBuildDir)\lib$(PlatformArchitecture)\$(TargetName).lib</ImportLibrary>
221     </Link>
222     <Bscmake />
223     <Xdcmake />
224     <ManifestResourceCompile>
225       <ResourceOutputFileName>$(IntDir)\$(TargetName)$(TargetExt).embed.manifest.res</ResourceOutputFileName>
226     </ManifestResourceCompile>
227     <ProjectReference>
228       <LinkLibraryDependencies>false</LinkLibraryDependencies>
229     </ProjectReference>
230     <BuildLog>
231       <Path>$(IntDir)BuildLog.htm</Path>
232     </BuildLog>
233   </ItemDefinitionGroup>
234   <ItemGroup>
235     <BuildMacro Include="CONFIGURATIONBUILDDIR">
236       <Value>$(CONFIGURATIONBUILDDIR)</Value>
237       <EnvironmentVariable>true</EnvironmentVariable>
238     </BuildMacro>
239     <BuildMacro Include="DEBUGSUFFIX">
240       <Value>$(DEBUGSUFFIX)</Value>
241       <EnvironmentVariable>true</EnvironmentVariable>
242     </BuildMacro>
243     <BuildMacro Include="PLATFORMARCHITECTURE">
244       <Value>$(PLATFORMARCHITECTURE)</Value>
245       <EnvironmentVariable>true</EnvironmentVariable>
246     </BuildMacro>
247   </ItemGroup>
248 </Project>