Support transform-box to switch sizing box in SVG
[WebKit-https.git] / Source / WebInspectorUI / WebInspectorUI.vcxproj / WebInspectorUI.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     <!-- We use the same content for Debug and Release targets. Don't let them accidentally ship the non-minimized version -->\r
10         <CONFIG>Production</CONFIG>\r
11   </PropertyGroup>\r
12 \r
13   <!-- Wrapper to build WebInspectorUI for both win32 and x64. -->\r
14   <PropertyGroup>\r
15     <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
16     <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
17     <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
18     <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
19     <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>\r
20     <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
21     <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
22     <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
23   </PropertyGroup>\r
24 \r
25   <ItemGroup>\r
26     <WebInspectorUI Include="WebInspectorUI.vcxproj">\r
27       <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
28     </WebInspectorUI>\r
29     <WebInspectorUI Include="WebInspectorUI.vcxproj">\r
30       <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
31     </WebInspectorUI>\r
32   </ItemGroup>\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)" />\r
41  \r
42     <Message Text="Build output -> $(OBJROOT)" />\r
43     <Message Text="Final output -> $(DSTROOT)" />\r
44     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
45     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
46     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\WebInspectorUI;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\WebInspectorUI" />\r
47   </Target>\r
48 \r
49   <!-- Generate the WebInspectorUI Bundle -->\r
50   <Target Name="Build" AfterTargets="PreBuild">\r
51     <Message Text="Building $(CONFIGURATION) Solution" />\r
52     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
53     <Message Text="Output=$(WebKit_OutputDir)" />\r
54     <MSBuild Projects="@(WebInspectorUI)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
55   </Target>\r
56 \r
57   <Target Name="PostBuild" AfterTargets="Build">\r
58     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
59     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
60 \r
61     <!-- Identify the files to copy over -->\r
62     <CreateItem Include="$(ConfigurationBuildDir)\bin32\WebKit.resources\**\*.*">\r
63       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
64     </CreateItem>\r
65     <CreateItem Include="$(ConfigurationBuildDir)\bin64\WebKit.resources\**\*.*">\r
66       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
67     </CreateItem>\r
68 \r
69     <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
70     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
71   </Target>\r
72 \r
73 </Project>\r
74 \r