Make WebKit2's message-generation model and parser scripts accessible to other projects
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 16:58:14 +0000 (16:58 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 16:58:14 +0000 (16:58 +0000)
We copy them into the build products directory so other projects can find them.

Fixes <http://webkit.org/b/68169> Would like to be able to use WebKit2's message-generation
scripts in other projects

Reviewed by Darin Adler.

* WebKit2.xcodeproj/project.pbxproj: Copy the scripts to PrivateHeaders.

* win/WebKit2.make: Copy the scripts from obj/WebKit2/scripts to
tools/scripts, like WebCore does.

* win/WebKit2Generated.make: Copy the scripts to obj/WebKit2/scripts, which is similar to what
WebCore does for its bindings scripts.

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/win/WebKit2.make
Source/WebKit2/win/WebKit2Generated.make

index d377b2f..8bf7b80 100644 (file)
@@ -1,5 +1,24 @@
 2011-09-15  Adam Roben  <aroben@apple.com>
 
+        Make WebKit2's message-generation model and parser scripts accessible to other projects
+
+        We copy them into the build products directory so other projects can find them.
+
+        Fixes <http://webkit.org/b/68169> Would like to be able to use WebKit2's message-generation
+        scripts in other projects
+
+        Reviewed by Darin Adler.
+
+        * WebKit2.xcodeproj/project.pbxproj: Copy the scripts to PrivateHeaders.
+
+        * win/WebKit2.make: Copy the scripts from obj/WebKit2/scripts to
+        tools/scripts, like WebCore does.
+
+        * win/WebKit2Generated.make: Copy the scripts to obj/WebKit2/scripts, which is similar to what
+        WebCore does for its bindings scripts.
+
+2011-09-15  Adam Roben  <aroben@apple.com>
+
         Split some of the message-generation code into separate modules
 
         This is in preparation for making these modules scripts usable by other projects.
index 7eada67..f3fd9bd 100644 (file)
                C0CE72A01247E71D00BC0EC4 /* WebPageMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0CE729E1247E71D00BC0EC4 /* WebPageMessageReceiver.cpp */; };
                C0CE72A11247E71D00BC0EC4 /* WebPageMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = C0CE729F1247E71D00BC0EC4 /* WebPageMessages.h */; };
                C0CE72AD1247E78D00BC0EC4 /* HandleMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = C0CE72AC1247E78D00BC0EC4 /* HandleMessage.h */; };
+               C0D04E9013EC759E0041EFD6 /* model.py in Headers */ = {isa = PBXBuildFile; fileRef = C0D04E8313EC74940041EFD6 /* model.py */; settings = {ATTRIBUTES = (Private, ); }; };
+               C0D04E9113EC759E0041EFD6 /* parser.py in Headers */ = {isa = PBXBuildFile; fileRef = C0D04E8413EC74940041EFD6 /* parser.py */; settings = {ATTRIBUTES = (Private, ); }; };
                C0D74DDE133BE2D90089CD44 /* LayerTreeHostCA.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C098A054133BE1C500B199A4 /* LayerTreeHostCA.cpp */; };
                C0E3AA7A1209E83000A49D01 /* ModuleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0E3AA481209E45000A49D01 /* ModuleMac.mm */; };
                C0E3AA7B1209E83500A49D01 /* Module.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0E3AA451209E2BA00A49D01 /* Module.cpp */; };
                                1A2161B011F37664008AD0F5 /* NPRuntimeObjectMap.h in Headers */,
                                1A2162B111F38971008AD0F5 /* NPRuntimeUtilities.h in Headers */,
                                1A24B5F311F531E800C38269 /* MachUtilities.h in Headers */,
+                               C0D04E9113EC759E0041EFD6 /* parser.py in Headers */,
+                               C0D04E9013EC759E0041EFD6 /* model.py in Headers */,
                                E1EE53E311F8CFC000CCBEE4 /* InjectedBundlePageEditorClient.h in Headers */,
                                BCF049E611FE20F600F86A58 /* WKBundleFramePrivate.h in Headers */,
                                BCF049E711FE20F600F86A58 /* WKBundlePrivate.h in Headers */,
index b53561e..d475725 100755 (executable)
@@ -17,5 +17,6 @@ install:
        xcopy "%ConfigurationBuildDir%\lib\*" "$(DSTROOT)\AppleInternal\lib\" /e/v/i/h/y
        -xcopy "%ConfigurationBuildDir%\bin\WebKit2.resources\*" "$(DSTROOT)\AppleInternal\bin\WebKit2.resources" /e/v/i/h/y
        -xcopy "%ConfigurationBuildDir%\bin\WebKit2WebProcess.resources\*" "$(DSTROOT)\AppleInternal\bin\WebKit2WebProcess.resources" /e/v/i/h/y
+       xcopy "%ConfigurationBuildDir%\obj\WebKit2\scripts\*" "$(DSTROOT)\AppleInternal\tools\scripts" /e/v/i/h/y
        -mkdir "$(DSTROOT)\AppleInternal\Sources\WebKit2"
        xcopy "%ConfigurationBuildDir%\obj\WebKit\DerivedSources\*" "$(DSTROOT)\AppleInternal\Sources\WebKit2" /e/v/i/h/y
index 2177983..12cc120 100644 (file)
@@ -1,5 +1,10 @@
 all:
     touch "%ConfigurationBuildDir%\buildfailed"
+
+    -mkdir 2>NUL "%ConfigurationBuildDir%\obj\WebKit2\scripts"
+    xcopy /y /d "..\Scripts\webkit2\model.py" "%ConfigurationBuildDir%\obj\WebKit2\scripts"
+    xcopy /y /d "..\Scripts\webkit2\parser.py" "%ConfigurationBuildDir%\obj\WebKit2\scripts"
+
     -mkdir 2>NUL "%ConfigurationBuildDir%\include\WebKit2"
     xcopy /y /d "..\Shared\API\c\cairo\WKImageCairo.h" "%ConfigurationBuildDir%\include\WebKit2"
     xcopy /y /d "..\Shared\API\c\cf\WKErrorCF.h" "%ConfigurationBuildDir%\include\WebKit2"