12910043487a014e40bf8e97cc03394f69556b3d
[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     <WebKit_Libraries>$(SRCROOT)\AppleInternal\</WebKit_Libraries>\r
16     <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
17     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
18     <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
19     <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
20     <AppleInternalBin32>$(AppleInternal)\bin32</AppleInternalBin32>\r
21     <AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>\r
22     <AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>\r
23     <AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>\r
24     <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support\</ProgramFilesAAS32>\r
25     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support\</ProgramFilesAAS64>\r
26     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
27     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
28   </PropertyGroup>\r
29 \r
30   <ItemGroup>\r
31     <WebCore Include="WebCore.submit.sln">\r
32       <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
33     </WebCore>\r
34     <WebCore Include="WebCore.submit.sln">\r
35       <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
36     </WebCore>\r
37   </ItemGroup>\r
38  \r
39   <!-- Prepare for build -->\r
40   <Target Name="PreBuild" BeforeTargets="Build">\r
41     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
42     <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
43     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
44     <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(ConfigurationBuildDir)\include\private" />\r
45  \r
46     <CreateItem Include="$(WebKit_Libraries)\include\private\**\*.*">\r
47       <Output TaskParameter="Include" ItemName="PrivateIncFiles" />\r
48     </CreateItem>\r
49 \r
50     <Copy SourceFiles="@(PrivateIncFiles)" DestinationFiles="@(PrivateIncFiles->'$(ConfigurationBuildDir)\include\private\%(RecursiveDir)%(Filename)%(Extension)')" />\r
51     <Message Text="Build output -> $(OBJROOT)" />\r
52     <Message Text="Final output -> $(DSTROOT)" />\r
53     <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
54     <MakeDir Directories="$(DSTROOT)\AppleInternal\Sources32\WebCore;$(DSTROOT)\AppleInternal\Sources64\WebCore" />\r
55   </Target>\r
56 \r
57   <!-- Build WebCore Software -->\r
58   <Target Name="Build" AfterTargets="PreBuild">\r
59     <Message Text="Building $(CONFIGURATION) Solution" />\r
60     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
61     <Message Text="Output=$(WebKit_OutputDir)" />\r
62     <MSBuild Projects="@(WebCore)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
63   </Target>\r
64 \r
65   <Target Name="PostBuild" AfterTargets="Build">\r
66     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
67     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
68 \r
69     <!-- Identify the files to copy over -->\r
70     <CreateItem Include="$(ConfigurationBuildDir)\include\**\*.*">\r
71       <Output TaskParameter="Include" ItemName="IncFiles" />\r
72     </CreateItem>\r
73     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*">\r
74       <Output TaskParameter="Include" ItemName="Bin32Files" />\r
75     </CreateItem>\r
76     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*">\r
77       <Output TaskParameter="Include" ItemName="Bin64Files" />\r
78     </CreateItem>\r
79     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*.pdb">\r
80       <Output TaskParameter="Include" ItemName="Bin32SymbolFiles" />\r
81     </CreateItem>\r
82     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*.pdb">\r
83       <Output TaskParameter="Include" ItemName="Bin64SymbolFiles" />\r
84     </CreateItem>\r
85     <CreateItem Include="$(ConfigurationBuildDir)\lib32\*">\r
86       <Output TaskParameter="Include" ItemName="Lib32Files" />\r
87     </CreateItem>\r
88     <CreateItem Include="$(ConfigurationBuildDir)\lib64\*">\r
89       <Output TaskParameter="Include" ItemName="Lib64Files" />\r
90     </CreateItem>\r
91     <CreateItem Include="$(ConfigurationBuildDir)\obj32\WebCore\DerivedSources\**\*.*">\r
92       <Output TaskParameter="Include" ItemName="Derived32Sources" />\r
93     </CreateItem>\r
94     <CreateItem Include="$(ConfigurationBuildDir)\obj64\WebCore\DerivedSources\**\*.*">\r
95       <Output TaskParameter="Include" ItemName="Derived64Sources" />\r
96     </CreateItem>\r
97 \r
98     <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\%(RecursiveDir)%(Filename)%(Extension)')" />\r
99     <Copy SourceFiles="@(Lib32Files)" DestinationFolder="$(AppleInternalLib32)" />\r
100     <Copy SourceFiles="@(Lib64Files)" DestinationFolder="$(AppleInternalLib64)" />\r
101     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(AppleInternalBin32)" />\r
102     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS32)" />\r
103     <Copy SourceFiles="@(Bin32SymbolFiles)" DestinationFolder="$(AppleInternal32Symbols)" />\r
104     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(AppleInternalBin64)" />\r
105     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS64)" />\r
106     <Copy SourceFiles="@(Bin64SymbolFiles)" DestinationFolder="$(AppleInternal64Symbols)" />\r
107     <Copy SourceFiles="@(Derived32Sources)" DestinationFiles="@(Derived32Sources->'$(DSTROOT)\AppleInternal\Sources32\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
108     <Copy SourceFiles="@(Derived64Sources)" DestinationFiles="@(Derived64Sources->'$(DSTROOT)\AppleInternal\Sources64\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
109   </Target>\r
110 \r
111 </Project>\r
112 \r