b89bac494b47f26d1556b8b26902a592773a96a4
[WebKit-https.git] / Source / JavaScriptCore / JavaScriptCore.vcxproj / JavaScriptCore.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     <DebugSuffix></DebugSuffix>\r
8   </PropertyGroup>\r
9   <PropertyGroup Condition="'$(CONFIGURATION)'=='Debug'">\r
10         <CONFIG>DebugSuffix</CONFIG>\r
11     <DebugSuffix>_debug</DebugSuffix>\r
12   </PropertyGroup>\r
13 \r
14   <!-- Wrapper to build JavaScriptCore for both win32 and x64. -->\r
15   <PropertyGroup>\r
16     <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
17     <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
18     <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
19     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
20     <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
21     <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
22     <AppleInternalBin32>$(AppleInternal)\bin32</AppleInternalBin32>\r
23     <AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>\r
24     <AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>\r
25     <AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>\r
26     <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>\r
27     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
28     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
29     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
30   </PropertyGroup>\r
31 \r
32   <ItemGroup>\r
33     <JavaScriptCore Include="JavaScriptCore.submit.sln">\r
34       <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
35     </JavaScriptCore>\r
36     <JavaScriptCore Include="JavaScriptCore.submit.sln">\r
37       <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
38     </JavaScriptCore>\r
39   </ItemGroup>\r
40  \r
41   <!-- Prepare for build -->\r
42   <Target Name="PreBuild" BeforeTargets="Build">\r
43     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
44     <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
45     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
46     <MakeDir Directories="$(DSTROOT);$(OBJROOT);$(ConfigurationBuildDir)\include\private" />\r
47  \r
48     <CreateItem Include="$(WebKit_Libraries)\include\private\**\*.*">\r
49       <Output TaskParameter="Include" ItemName="PrivateIncFiles" />\r
50     </CreateItem>\r
51 \r
52     <Copy SourceFiles="@(PrivateIncFiles)" DestinationFiles="@(PrivateIncFiles->'$(ConfigurationBuildDir)\include\private\%(RecursiveDir)%(Filename)%(Extension)')" />\r
53     <Message Text="Build output -> $(OBJROOT)" />\r
54     <Message Text="Final output -> $(DSTROOT)" />\r
55     <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
56     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\JavaScriptCore.resources;$(DSTROOT)\$(ProgramFilesAAS64)\JavaScriptCore.resources" />\r
57     <MakeDir Directories="$(DSTROOT)\AppleInternal\Sources32\JavaScriptCore;$(DSTROOT)\AppleInternal\Sources64\JavaScriptCore" />\r
58   </Target>\r
59 \r
60   <!-- Build JavaScriptCore Software -->\r
61   <Target Name="Build" AfterTargets="PreBuild">\r
62     <Message Text="Building $(CONFIGURATION) Solution" />\r
63     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
64     <Message Text="Output=$(WebKit_OutputDir)" />\r
65     <MSBuild Projects="@(JavaScriptCore)" Properties="Configuration=$(CONFIG)" Targets="Build" />\r
66   </Target>\r
67 \r
68   <Target Name="PostBuild" AfterTargets="Build">\r
69     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
70     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
71 \r
72     <!-- Identify the files to copy over -->\r
73     <CreateItem Include="$(ConfigurationBuildDir)\include\**\*.*">\r
74       <Output TaskParameter="Include" ItemName="IncFiles" />\r
75     </CreateItem>\r
76     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*">\r
77       <Output TaskParameter="Include" ItemName="Bin32Files" />\r
78     </CreateItem>\r
79     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*">\r
80       <Output TaskParameter="Include" ItemName="Bin64Files" />\r
81     </CreateItem>\r
82     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*.pdb">\r
83       <Output TaskParameter="Include" ItemName="Bin32SymbolFiles" />\r
84     </CreateItem>\r
85     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*.pdb">\r
86       <Output TaskParameter="Include" ItemName="Bin64SymbolFiles" />\r
87     </CreateItem>\r
88     <CreateItem Include="$(ConfigurationBuildDir)\bin32\JavaScriptCore$(DebugSuffix).dll">\r
89       <Output TaskParameter="Include" ItemName="Bin32DLLFiles" />\r
90     </CreateItem>\r
91     <CreateItem Include="$(ConfigurationBuildDir)\bin64\JavaScriptCore$(DebugSuffix).dll">\r
92       <Output TaskParameter="Include" ItemName="Bin64DLLFiles" />\r
93     </CreateItem>\r
94     <CreateItem Include="$(ConfigurationBuildDir)\bin32\*.resources">\r
95       <Output TaskParameter="Include" ItemName="Bin32ResourceFolders" />\r
96     </CreateItem>\r
97     <CreateItem Include="$(ConfigurationBuildDir)\bin64\*.resources">\r
98       <Output TaskParameter="Include" ItemName="Bin64ResourceFolders" />\r
99     </CreateItem>\r
100     <CreateItem Include="$(ConfigurationBuildDir)\bin32\JavaScriptCore.resources\**\*.*">\r
101       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
102     </CreateItem>\r
103     <CreateItem Include="$(ConfigurationBuildDir)\bin64\JavaScriptCore.resources\**\*.*">\r
104       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
105     </CreateItem>\r
106     <CreateItem Include="$(ConfigurationBuildDir)\lib32\*">\r
107       <Output TaskParameter="Include" ItemName="Lib32Files" />\r
108     </CreateItem>\r
109     <CreateItem Include="$(ConfigurationBuildDir)\lib64\*">\r
110       <Output TaskParameter="Include" ItemName="Lib64Files" />\r
111     </CreateItem>\r
112     <CreateItem Include="$(ConfigurationBuildDir)\obj32\JavaScriptCore\DerivedSources\**\*.*">\r
113       <Output TaskParameter="Include" ItemName="Derived32Sources" />\r
114     </CreateItem>\r
115     <CreateItem Include="$(ConfigurationBuildDir)\obj64\JavaScriptCore\DerivedSources\**\*.*">\r
116       <Output TaskParameter="Include" ItemName="Derived64Sources" />\r
117     </CreateItem>\r
118 \r
119     <Copy SourceFiles="@(IncFiles)" DestinationFiles="@(IncFiles->'$(DSTROOT)\AppleInternal\include\%(RecursiveDir)%(Filename)%(Extension)')" />\r
120     <Copy SourceFiles="@(Lib32Files)" DestinationFolder="$(AppleInternalLib32)" />\r
121     <Copy SourceFiles="@(Lib64Files)" DestinationFolder="$(AppleInternalLib64)" />\r
122     <Copy SourceFiles="@(Bin32Files)" DestinationFolder="$(AppleInternalBin32)" />\r
123     <Copy SourceFiles="@(Bin32DLLFiles)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS32)" />\r
124     <Copy SourceFiles="@(Bin32ResourceFolders)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS32)" />\r
125     <Copy SourceFiles="@(Bin32SymbolFiles)" DestinationFolder="$(AppleInternal32Symbols)" />\r
126     <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\JavaScriptCore.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
127     <Copy SourceFiles="@(Bin64Files)" DestinationFolder="$(AppleInternalBin64)" />\r
128     <Copy SourceFiles="@(Bin64DLLFiles)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS64)" />\r
129     <Copy SourceFiles="@(Bin64ResourceFolders)" DestinationFolder="$(DSTROOT)\$(ProgramFilesAAS64)" />\r
130     <Copy SourceFiles="@(Bin64SymbolFiles)" DestinationFolder="$(AppleInternal64Symbols)" />\r
131     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\JavaScriptCore.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
132     <Copy SourceFiles="@(Derived32Sources)" DestinationFiles="@(Derived32Sources->'$(DSTROOT)\AppleInternal\Sources32\JavaScriptCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
133     <Copy SourceFiles="@(Derived64Sources)" DestinationFiles="@(Derived64Sources->'$(DSTROOT)\AppleInternal\Sources64\JavaScriptCore\%(RecursiveDir)%(Filename)%(Extension)')" />\r
134   </Target>\r
135 \r
136 </Project>\r
137 \r