Fix internal Windows build
[WebKit-https.git] / Source / WebCore / WebCore.vcxproj / WebCore.proj
index 04b8d62..e26903e 100644 (file)
@@ -3,18 +3,20 @@
 \r
   <!-- normalize configuration case -->\r
   <PropertyGroup Condition="'$(CONFIGURATION)'=='Release'">\r
-       <CONFIG>Production</CONFIG>\r
+       <CONFIG>Release</CONFIG>\r
+    <DebugSuffix></DebugSuffix>\r
+    <DebugSuffixDefinition></DebugSuffixDefinition>\r
   </PropertyGroup>\r
   <PropertyGroup Condition="'$(CONFIGURATION)'=='Debug'">\r
-       <CONFIG>DebugSuffix</CONFIG>\r
+       <CONFIG>Debug</CONFIG>\r
+    <DebugSuffix>_debug</DebugSuffix>\r
+    <DebugSuffixDefinition>-DDEBUG_SUFFIX=_debug</DebugSuffixDefinition>\r
   </PropertyGroup>\r
 \r
   <!-- Wrapper to build WebCore for both win32 and x64. -->\r
   <PropertyGroup>\r
     <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
-    <DXSDK_DIR>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\</DXSDK_DIR>\r
     <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
-    <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
     <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
     <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
+       <CMakeCommandCommon>cmake $(SRCROOT) -DPORT=AppleWin $(DebugSuffixDefinition) -DINTERNAL_BUILD=1 -DWEBKIT_LIBRARIES_DIR=$(WebKit_Libraries.Replace('\','/')) -DCMAKE_MODULE_PATH=$(SRCROOT.Replace('\','/'))/AppleInternal/tools/cmake -DCMAKE_BINARY_DIR=$(OBJROOT.Replace('\','/'))/$(CONFIG) -DWEBCORE_DIR=$(SRCROOT.Replace('\','/'))</CMakeCommandCommon>\r
   </PropertyGroup>\r
-\r
-  <ItemGroup>\r
-    <WebCore Include="WebCore.submit.sln">\r
-      <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD);DXSDK_DIR=$(DXSDK_DIR)</AdditionalProperties>\r
-    </WebCore>\r
-    <WebCore Include="WebCore.submit.sln">\r
-      <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD);DXSDK_DIR=$(DXSDK_DIR)</AdditionalProperties>\r
-    </WebCore>\r
-  </ItemGroup>\r
  \r
   <!-- Prepare for build -->\r
   <Target Name="PreBuild" BeforeTargets="Build">\r
     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
     <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
+    <Error Text="Use /p:Configuration=Debug or /p:Configuration=Release" Condition="'$(CONFIG)' == ''" />\r
     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
-    <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(ConfigurationBuildDir)\include\private" />\r
+    <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(OBJROOT)/$(CONFIG);$(ConfigurationBuildDir)\include\private;$(OBJROOT)/$(CONFIG)/build32;$(OBJROOT)/$(CONFIG)/build64" />\r
  \r
     <CreateItem Include="$(WebKit_Libraries)\include\private\**\*.*">\r
       <Output TaskParameter="Include" ItemName="PrivateIncFiles" />\r
     <Message Text="Final output -> $(DSTROOT)" />\r
     <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
-    <MakeDir Directories="$(DSTROOT)\AppleInternal\Sources32\WebCore;$(DSTROOT)\AppleInternal\Sources64\WebCore" />\r
   </Target>\r
 \r
   <!-- Build WebCore Software -->\r
   <Target Name="Build" AfterTargets="PreBuild">\r
     <Message Text="Building $(CONFIGURATION) Solution" />\r
     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
-    <Message Text="Output=$(WebKit_OutputDir)" />\r
-    <MSBuild Projects="@(WebCore)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
+       <Exec Command="$(CMakeCommandCommon) -G &quot;Visual Studio 14 2015&quot;" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build32"/>\r
+       <Exec Command="msbuild Project.sln" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build32"/>\r
+       <Exec Command="$(CMakeCommandCommon) -G &quot;Visual Studio 14 2015 Win64&quot;" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build64"/>\r
+       <Exec Command="msbuild Project.sln" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build64"/>\r
   </Target>\r
 \r
   <Target Name="PostBuild" AfterTargets="Build">\r
     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
 \r
     <!-- Identify the files to copy over -->\r
-    <CreateItem Include="$(ConfigurationBuildDir)\include\**\*.*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build32\DerivedSources\ForwardingHeaders\WebCore\**\*.*">\r
       <Output TaskParameter="Include" ItemName="IncFiles" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin32\*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\*">\r
       <Output TaskParameter="Include" ItemName="Bin32Files" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin64\*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\*">\r
       <Output TaskParameter="Include" ItemName="Bin64Files" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin32\*.pdb">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\*.pdb">\r
       <Output TaskParameter="Include" ItemName="Bin32SymbolFiles" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin64\*.pdb">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\*.pdb">\r
       <Output TaskParameter="Include" ItemName="Bin64SymbolFiles" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin32\WebKit.resources\**\*.*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\WebKit.resources\**\*.*">\r
       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\bin64\WebKit.resources\**\*.*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\WebKit.resources\**\*.*">\r
       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\lib32\*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build32\lib32\*">\r
       <Output TaskParameter="Include" ItemName="Lib32Files" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\lib64\*">\r
+    <CreateItem Include="$(ConfigurationBuildDir)\build64\lib64\*">\r
       <Output TaskParameter="Include" ItemName="Lib64Files" />\r
     </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\obj32\WebCore\DerivedSources\**\*.*">\r
-      <Output TaskParameter="Include" ItemName="Derived32Sources" />\r
-    </CreateItem>\r
-    <CreateItem Include="$(ConfigurationBuildDir)\obj64\WebCore\DerivedSources\**\*.*">\r
-      <Output TaskParameter="Include" ItemName="Derived64Sources" />\r
-    </CreateItem>\r
 \r
-    <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\%(RecursiveDir)%(Filename)%(Extension)')" />\r
+    <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\private\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
     <Copy SourceFiles="@(Lib32Files)" DestinationFolder="$(AppleInternalLib32)" />\r
     <Copy SourceFiles="@(Lib64Files)" DestinationFolder="$(AppleInternalLib64)" />\r
     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(AppleInternalBin32)" />\r
     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(AppleInternalBin64)" />\r
     <Copy SourceFiles="@(Bin64SymbolFiles)" DestinationFolder="$(AppleInternal64Symbols)" />\r
     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
-    <Copy SourceFiles="@(Derived32Sources)" DestinationFiles="@(Derived32Sources->'$(DSTROOT)\AppleInternal\Sources32\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
-    <Copy SourceFiles="@(Derived64Sources)" DestinationFiles="@(Derived64Sources->'$(DSTROOT)\AppleInternal\Sources64\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
   </Target>\r
 \r
 </Project>\r