Hopefully fix the production build.
[WebKit-https.git] / Source / WebCore / WebCore.vcxproj / WebCore.proj
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <Project InitialTargets="PreBuild" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
3 \r
4   <!-- normalize configuration case -->\r
5   <PropertyGroup Condition="'$(CONFIGURATION)'=='Release'">\r
6         <CONFIG>Production</CONFIG>\r
7   </PropertyGroup>\r
8   <PropertyGroup Condition="'$(CONFIGURATION)'=='Debug'">\r
9         <CONFIG>DebugSuffix</CONFIG>\r
10   </PropertyGroup>\r
11 \r
12   <!-- Wrapper to build WebCore for both win32 and x64. -->\r
13   <PropertyGroup>\r
14     <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
15     <DXSDK_DIR>C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\</DXSDK_DIR>\r
16     <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
17     <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
18     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
19     <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
20     <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
21     <AppleInternalBin32>$(AppleInternal)\bin32</AppleInternalBin32>\r
22     <AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>\r
23     <AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>\r
24     <AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>\r
25     <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>\r
26     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
27     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
28     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
29   </PropertyGroup>\r
30 \r
31   <ItemGroup>\r
32     <WebCore Include="WebCore.submit.sln">\r
33       <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD);DXSDK_DIR=$(DXSDK_DIR)</AdditionalProperties>\r
34     </WebCore>\r
35     <WebCore Include="WebCore.submit.sln">\r
36       <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD);DXSDK_DIR=$(DXSDK_DIR)</AdditionalProperties>\r
37     </WebCore>\r
38   </ItemGroup>\r
39  \r
40   <!-- Prepare for build -->\r
41   <Target Name="PreBuild" BeforeTargets="Build">\r
42     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
43     <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
44     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
45     <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(ConfigurationBuildDir)\include\private" />\r
46  \r
47     <CreateItem Include="$(WebKit_Libraries)\include\private\**\*.*">\r
48       <Output TaskParameter="Include" ItemName="PrivateIncFiles" />\r
49     </CreateItem>\r
50 \r
51     <Copy SourceFiles="@(PrivateIncFiles)" DestinationFiles="@(PrivateIncFiles->'$(ConfigurationBuildDir)\include\private\%(RecursiveDir)%(Filename)%(Extension)')" />\r
52     <Message Text="Build output -> $(OBJROOT)" />\r
53     <Message Text="Final output -> $(DSTROOT)" />\r
54     <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
55     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
56     <MakeDir Directories="$(DSTROOT)\AppleInternal\Sources32\WebCore;$(DSTROOT)\AppleInternal\Sources64\WebCore" />\r
57   </Target>\r
58 \r
59   <!-- Build WebCore Software -->\r
60   <Target Name="Build" AfterTargets="PreBuild">\r
61     <Message Text="Building $(CONFIGURATION) Solution" />\r
62     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
63     <Message Text="Output=$(WebKit_OutputDir)" />\r
64     <MSBuild Projects="@(WebCore)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
65   </Target>\r
66 \r
67   <Target Name="PostBuild" AfterTargets="Build">\r
68     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
69     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
70 \r
71     <!-- Identify the files to copy over -->\r
72     <CreateItem Include="$(ConfigurationBuildDir)\include\**\*.*">\r
73       <Output TaskParameter="Include" ItemName="IncFiles" />\r
74     </CreateItem>\r
75     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*">\r
76       <Output TaskParameter="Include" ItemName="Bin32Files" />\r
77     </CreateItem>\r
78     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*">\r
79       <Output TaskParameter="Include" ItemName="Bin64Files" />\r
80     </CreateItem>\r
81     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*.pdb">\r
82       <Output TaskParameter="Include" ItemName="Bin32SymbolFiles" />\r
83     </CreateItem>\r
84     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*.pdb">\r
85       <Output TaskParameter="Include" ItemName="Bin64SymbolFiles" />\r
86     </CreateItem>\r
87     <CreateItem Include="$(ConfigurationBuildDir)\bin32\WebKit.resources\**\*.*">\r
88       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
89     </CreateItem>\r
90     <CreateItem Include="$(ConfigurationBuildDir)\bin64\WebKit.resources\**\*.*">\r
91       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
92     </CreateItem>\r
93     <CreateItem Include="$(ConfigurationBuildDir)\lib32\*">\r
94       <Output TaskParameter="Include" ItemName="Lib32Files" />\r
95     </CreateItem>\r
96     <CreateItem Include="$(ConfigurationBuildDir)\lib64\*">\r
97       <Output TaskParameter="Include" ItemName="Lib64Files" />\r
98     </CreateItem>\r
99     <CreateItem Include="$(ConfigurationBuildDir)\obj32\WebCore\DerivedSources\**\*.*">\r
100       <Output TaskParameter="Include" ItemName="Derived32Sources" />\r
101     </CreateItem>\r
102     <CreateItem Include="$(ConfigurationBuildDir)\obj64\WebCore\DerivedSources\**\*.*">\r
103       <Output TaskParameter="Include" ItemName="Derived64Sources" />\r
104     </CreateItem>\r
105 \r
106     <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\%(RecursiveDir)%(Filename)%(Extension)')" />\r
107     <Copy SourceFiles="@(Lib32Files)" DestinationFolder="$(AppleInternalLib32)" />\r
108     <Copy SourceFiles="@(Lib64Files)" DestinationFolder="$(AppleInternalLib64)" />\r
109     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(AppleInternalBin32)" />\r
110     <Copy SourceFiles="@(Bin32SymbolFiles)" DestinationFolder="$(AppleInternal32Symbols)" />\r
111     <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
112     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(AppleInternalBin64)" />\r
113     <Copy SourceFiles="@(Bin64SymbolFiles)" DestinationFolder="$(AppleInternal64Symbols)" />\r
114     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
115     <Copy SourceFiles="@(Derived32Sources)" DestinationFiles="@(Derived32Sources->'$(DSTROOT)\AppleInternal\Sources32\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
116     <Copy SourceFiles="@(Derived64Sources)" DestinationFiles="@(Derived64Sources->'$(DSTROOT)\AppleInternal\Sources64\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
117   </Target>\r
118 \r
119 </Project>\r
120 \r