[Win] CMake build type is not set.
[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>Release</CONFIG>\r
7     <DebugSuffix></DebugSuffix>\r
8     <DebugSuffixDefinition></DebugSuffixDefinition>\r
9   </PropertyGroup>\r
10   <PropertyGroup Condition="'$(CONFIGURATION)'=='Debug'">\r
11         <CONFIG>Debug</CONFIG>\r
12     <DebugSuffix>_debug</DebugSuffix>\r
13     <DebugSuffixDefinition>-DDEBUG_SUFFIX=_debug</DebugSuffixDefinition>\r
14   </PropertyGroup>\r
15 \r
16   <!-- Wrapper to build WebCore for both win32 and x64. -->\r
17   <PropertyGroup>\r
18     <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
19     <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
20     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
21     <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
22     <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
23     <AppleInternalBin32>$(AppleInternal)\bin32</AppleInternalBin32>\r
24     <AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>\r
25     <AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>\r
26     <AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>\r
27     <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>\r
28     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
29     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
30     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
31         <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) -DCMAKE_BUILD_TYPE=$(CONFIGURATION) -DWEBCORE_DIR=$(SRCROOT.Replace('\','/'))</CMakeCommandCommon>\r
32   </PropertyGroup>\r
33  \r
34   <!-- Prepare for build -->\r
35   <Target Name="PreBuild" BeforeTargets="Build">\r
36     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
37     <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
38     <Error Text="Use /p:Configuration=Debug or /p:Configuration=Release" Condition="'$(CONFIG)' == ''" />\r
39     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
40     <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(OBJROOT)/$(CONFIG);$(ConfigurationBuildDir)\include\private;$(OBJROOT)/$(CONFIG)/build32;$(OBJROOT)/$(CONFIG)/build64" />\r
41  \r
42     <CreateItem Include="$(WebKit_Libraries)\include\private\**\*.*">\r
43       <Output TaskParameter="Include" ItemName="PrivateIncFiles" />\r
44     </CreateItem>\r
45 \r
46     <Copy SourceFiles="@(PrivateIncFiles)" DestinationFiles="@(PrivateIncFiles->'$(ConfigurationBuildDir)\include\private\%(RecursiveDir)%(Filename)%(Extension)')" />\r
47     <Message Text="Build output -> $(OBJROOT)" />\r
48     <Message Text="Final output -> $(DSTROOT)" />\r
49     <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
50     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
51   </Target>\r
52 \r
53   <!-- Build WebCore Software -->\r
54   <Target Name="Build" AfterTargets="PreBuild">\r
55     <Message Text="Building $(CONFIGURATION) Solution" />\r
56     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
57         <Exec Command="$(CMakeCommandCommon) -G &quot;Visual Studio 14 2015&quot;" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build32"/>\r
58         <Exec Command="msbuild Project.sln /p:Configuration=$(CONFIG)" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build32"/>\r
59         <Exec Command="$(CMakeCommandCommon) -G &quot;Visual Studio 14 2015 Win64&quot;" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build64"/>\r
60         <Exec Command="msbuild Project.sln /p:Configuration=$(CONFIG)" WorkingDirectory="$(OBJROOT)/$(CONFIG)/build64"/>\r
61   </Target>\r
62 \r
63   <Target Name="PostBuild" AfterTargets="Build">\r
64     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
65     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
66 \r
67     <!-- Identify the files to copy over -->\r
68     <CreateItem Include="$(ConfigurationBuildDir)\build32\DerivedSources\ForwardingHeaders\WebCore\**\*.*">\r
69       <Output TaskParameter="Include" ItemName="IncFiles" />\r
70     </CreateItem>\r
71     <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\*">\r
72       <Output TaskParameter="Include" ItemName="Bin32Files" />\r
73     </CreateItem>\r
74     <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\*">\r
75       <Output TaskParameter="Include" ItemName="Bin64Files" />\r
76     </CreateItem>\r
77     <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\*.pdb">\r
78       <Output TaskParameter="Include" ItemName="Bin32SymbolFiles" />\r
79     </CreateItem>\r
80     <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\*.pdb">\r
81       <Output TaskParameter="Include" ItemName="Bin64SymbolFiles" />\r
82     </CreateItem>\r
83     <CreateItem Include="$(ConfigurationBuildDir)\build32\bin32\WebKit.resources\**\*.*">\r
84       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
85     </CreateItem>\r
86     <CreateItem Include="$(ConfigurationBuildDir)\build64\bin64\WebKit.resources\**\*.*">\r
87       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
88     </CreateItem>\r
89     <CreateItem Include="$(ConfigurationBuildDir)\build32\lib32\*">\r
90       <Output TaskParameter="Include" ItemName="Lib32Files" />\r
91     </CreateItem>\r
92     <CreateItem Include="$(ConfigurationBuildDir)\build64\lib64\*">\r
93       <Output TaskParameter="Include" ItemName="Lib64Files" />\r
94     </CreateItem>\r
95 \r
96     <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\private\WebCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
97     <Copy SourceFiles="@(Lib32Files)" DestinationFolder="$(AppleInternalLib32)" />\r
98     <Copy SourceFiles="@(Lib64Files)" DestinationFolder="$(AppleInternalLib64)" />\r
99     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(AppleInternalBin32)" />\r
100     <Copy SourceFiles="@(Bin32SymbolFiles)" DestinationFolder="$(AppleInternal32Symbols)" />\r
101     <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
102     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(AppleInternalBin64)" />\r
103     <Copy SourceFiles="@(Bin64SymbolFiles)" DestinationFolder="$(AppleInternal64Symbols)" />\r
104     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
105   </Target>\r
106 \r
107 </Project>\r
108 \r