[Win] Unreviewed build fix.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Aug 2014 21:09:51 +0000 (21:09 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Aug 2014 21:09:51 +0000 (21:09 +0000)
Add a WebInspectorUI.proj file for use with MSBuild utility.

* WebInspectorUI.vcxproj/WebInspectorUI.proj: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172262 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.proj [new file with mode: 0644]

index ce0855f..8c24601 100644 (file)
@@ -1,3 +1,11 @@
+2014-08-07  Brent Fulgham  <bfulgham@apple.com>
+
+        [Win] Unreviewed build fix.
+
+        Add a WebInspectorUI.proj file for use with MSBuild utility.
+
+        * WebInspectorUI.vcxproj/WebInspectorUI.proj: Added.
+
 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
 
         Get rid of INPUT_SPEECH
diff --git a/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.proj b/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.proj
new file mode 100644 (file)
index 0000000..e5f2401
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project InitialTargets="PreBuild" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+\r
+  <!-- normalize configuration case -->\r
+  <PropertyGroup Condition="'$(CONFIGURATION)'=='Release'">\r
+       <CONFIG>Production</CONFIG>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(CONFIGURATION)'=='Debug'">\r
+    <!-- We use the same content for Debug and Release targets. Don't let them accidentally ship the non-minimized version -->\r
+       <CONFIG>Production</CONFIG>\r
+  </PropertyGroup>\r
+\r
+  <!-- Wrapper to build WebInspectorUI for both win32 and x64. -->\r
+  <PropertyGroup>\r
+    <OFFICIAL_BUILD>1</OFFICIAL_BUILD>\r
+    <WebKit_Libraries>$(SRCROOT)\AppleInternal</WebKit_Libraries>\r
+    <WebKit_OutputDir>$(OBJROOT)</WebKit_OutputDir>\r
+    <AppleInternal>$(DSTROOT)\AppleInternal</AppleInternal>\r
+    <AppleInternalLib32>$(AppleInternal)\lib32</AppleInternalLib32>\r
+    <AppleInternalLib64>$(AppleInternal)\lib64</AppleInternalLib64>\r
+    <AppleInternalBin32>$(AppleInternal)\bin32</AppleInternalBin32>\r
+    <AppleInternalBin64>$(AppleInternal)\bin64</AppleInternalBin64>\r
+    <AppleInternal32Symbols>$(AppleInternal)\public32\sym</AppleInternal32Symbols>\r
+    <AppleInternal64Symbols>$(AppleInternal)\public64\sym</AppleInternal64Symbols>\r
+    <ProgramFilesAAS32>Program Files (x86)\Common Files\Apple\Apple Application Support</ProgramFilesAAS32>\r
+    <ProgramFilesAAS64>Program Files\Common Files\Apple\Apple Application Support</ProgramFilesAAS64>\r
+    <ConfigurationBuildDir>$(OBJROOT)\$(CONFIG)</ConfigurationBuildDir>  \r
+    <OutputDirectory>$(DSTROOT)</OutputDirectory>\r
+  </PropertyGroup>\r
+\r
+  <ItemGroup>\r
+    <WebInspectorUI Include="WebInspectorUI.vcxproj">\r
+      <AdditionalProperties>Platform=Win32;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
+    </WebInspectorUI>\r
+    <WebInspectorUI Include="WebInspectorUI.vcxproj">\r
+      <AdditionalProperties>Platform=x64;WEBKIT_OUTPUTDIR=$(WebKit_OutputDir);WEBKIT_LIBRARIES=$(WebKit_Libraries);OFFICIAL_BUILD=$(OFFICIAL_BUILD)</AdditionalProperties>\r
+    </WebInspectorUI>\r
+  </ItemGroup>\r
\r
+  <!-- Prepare for build -->\r
+  <Target Name="PreBuild" BeforeTargets="Build">\r
+    <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
+    <Error Text="OBJROOT property or environment variable must be defined." Condition="'$(OBJROOT)' == ''" />\r
+    <Message Text="Copying necessary headers to $(ConfigurationBuildDir)" />\r
+    <MakeDir Directories="$(DSTROOT);$(OBJROOT)" />\r
\r
+    <Message Text="Build output -> $(OBJROOT)" />\r
+    <Message Text="Final output -> $(DSTROOT)" />\r
+    <MakeDir Directories="$(AppleInternalLib32);$(AppleInternalLib64);$(AppleInternalBin32);$(AppleInternalBin64);$(AppleInternal32Symbols);$(AppleInternal64Symbols);$(AppleInternal)\include;$(DSTROOT)\$(ProgramFilesAAS32);$(DSTROOT)\$(ProgramFilesAAS64)" />\r
+    <MakeDir Directories="$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources;$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources" />\r
+  </Target>\r
+\r
+  <!-- Generate the WebInspectorUI Bundle -->\r
+  <Target Name="Build" AfterTargets="PreBuild">\r
+    <Message Text="Building $(CONFIGURATION) Solution" />\r
+    <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
+    <Message Text="Output=$(WebKit_OutputDir)" />\r
+    <MSBuild Projects="@(WebInspectorUI)" Properties="Configuration=$(CONFIG)" Targets="ReBuild" />\r
+  </Target>\r
+\r
+  <Target Name="PostBuild" AfterTargets="Build">\r
+    <Error Text="DSTROOT property or environment variable must be defined." Condition="'$(DSTROOT)' == ''" />\r
+    <Message Text="Moving $(CONFIG) build results to $(DSTROOT)" />\r
+\r
+    <!-- Identify the files to copy over -->\r
+    <CreateItem Include="$(ConfigurationBuildDir)\bin32\WebKit.resources\**\*.*">\r
+      <Output TaskParameter="Include" ItemName="Bin32Resources" />\r
+    </CreateItem>\r
+    <CreateItem Include="$(ConfigurationBuildDir)\bin64\WebKit.resources\**\*.*">\r
+      <Output TaskParameter="Include" ItemName="Bin64Resources" />\r
+    </CreateItem>\r
+\r
+    <Copy SourceFiles="@(Bin32Resources)" DestinationFiles="@(Bin32Resources->'$(DSTROOT)\$(ProgramFilesAAS32)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
+    <Copy SourceFiles="@(Bin64Resources)" DestinationFiles="@(Bin64Resources->'$(DSTROOT)\$(ProgramFilesAAS64)\WebKit.resources\%(RecursiveDir)%(Filename)%(Extension)')" />\r
+  </Target>\r
+\r
+</Project>\r
+\r