Follow up to r195361. Removing ios-simulator-wk2 fast/viewport/ios directory pass...
[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     <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
39     <MakeDir Directories="$(DSTROOT);$(OBJROOT)" />\r
40  \r
41     <Message Text="Build output -> $(OBJROOT)" />\r
42     <Message Text="Final output -> $(DSTROOT)" />\r
43     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
44     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
45     <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\WebInspectorUI;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\WebInspectorUI" />\r
46   </Target>\r
47 \r
48   <!-- Generate the WebInspectorUI Bundle -->\r
49   <Target Name="Build" AfterTargets="PreBuild">\r
50     <Message Text="Building $(CONFIGURATION) Solution" />\r
51     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
52     <Message Text="Output=$(WebKit_OutputDir)" />\r
53     <MSBuild Projects="@(WebInspectorUI)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
54   </Target>\r
55 \r
56   <Target Name="PostBuild" AfterTargets="Build">\r
57     <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
58     <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
59 \r
60     <!-- Identify the files to copy over -->\r
61     <CreateItem Include="$(ConfigurationBuildDir)\bin32\WebKit.resources\**\*.*">\r
62       <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
63     </CreateItem>\r
64     <CreateItem Include="$(ConfigurationBuildDir)\bin64\WebKit.resources\**\*.*">\r
65       <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
66     </CreateItem>\r
67 \r
68     <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
69     <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
70   </Target>\r
71 \r
72 </Project>\r
73 \r