Build WebKit2 before building WebKit
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2014 23:13:51 +0000 (23:13 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2014 23:13:51 +0000 (23:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=129831
<rdar://problem/15920020>

Reviewed by Dan Bernstein.

.:

* Source/Makefile:
* WebKit.xcworkspace/xcshareddata/xcschemes/All Source (target WebProcess).xcscheme:
* WebKit.xcworkspace/xcshareddata/xcschemes/All Source.xcscheme:

Tools:

* Scripts/build-webkit:
Always build WebKit2 and make sure to build it before WebKit when building on Mac.

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

ChangeLog
Source/Makefile
Tools/ChangeLog
Tools/Scripts/build-webkit
WebKit.xcworkspace/xcshareddata/xcschemes/All Source (target WebProcess).xcscheme
WebKit.xcworkspace/xcshareddata/xcschemes/All Source.xcscheme

index b0677bb..5e0a0b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2014-03-06  Anders Carlsson  <andersca@apple.com>
+
+        Build WebKit2 before building WebKit
+        https://bugs.webkit.org/show_bug.cgi?id=129831
+        <rdar://problem/15920020>
+
+        Reviewed by Dan Bernstein.
+
+        * Source/Makefile:
+        * WebKit.xcworkspace/xcshareddata/xcschemes/All Source (target WebProcess).xcscheme:
+        * WebKit.xcworkspace/xcshareddata/xcschemes/All Source.xcscheme:
+
 2014-03-06  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r165193.
index 530cc7d..9c6ffd3 100644 (file)
@@ -1,4 +1,4 @@
-MODULES = WTF JavaScriptCore ThirdParty/ANGLE WebCore WebInspectorUI WebKit WebKit2
+MODULES = WTF JavaScriptCore ThirdParty/ANGLE WebCore WebInspectorUI WebKit2 WebKit
 
 ifneq (,$(findstring iphoneos,$(SDKROOT)))
        MODULES = WTF JavaScriptCore ThirdParty/ANGLE WebCore WebKit WebKit2
index 30acb1b..fc4ee32 100644 (file)
@@ -1,3 +1,14 @@
+2014-03-06  Anders Carlsson  <andersca@apple.com>
+
+        Build WebKit2 before building WebKit
+        https://bugs.webkit.org/show_bug.cgi?id=129831
+        <rdar://problem/15920020>
+
+        Reviewed by Dan Bernstein.
+
+        * Scripts/build-webkit:
+        Always build WebKit2 and make sure to build it before WebKit when building on Mac.
+
 2014-03-06  ChangSeok Oh  <changseok.oh@collabora.com>
 
         make-3.82 fails to build on ARM/Linux
index df1b5e0..388627a 100755 (executable)
@@ -203,14 +203,17 @@ if (isAppleMacWebKit()) {
 
         # WebKitAdditions must come before WebCore
         splice(@projects, 0, 0, "../Internal/WebKitAdditions");
+    } else {
+        # WebKit2 should always be built just before WebKit.
+        my $webKitIndex = first { $projects[$_] eq "Source/WebKit" } 0..$#projects;
+        splice(@projects, $webKitIndex, 0, "Source/WebKit2");
     }
 
     # ANGLE must come before WebCore
     splice @projects, 0, 0, "Source/ThirdParty/ANGLE";
 
     if (!isIOSWebKit()) {
-        # WebKit2 is only supported in SnowLeopard and later at present.
-        push @projects, ("Source/WebKit2", "Tools/MiniBrowser") if osXVersion()->{"minor"} >= 6 and !$noWebKit2;
+        push @projects, ("Tools/MiniBrowser");
 
         # WebInspectorUI must come before WebKit and WebKit2
         unshift @projects, ("Source/WebInspectorUI");
@@ -224,7 +227,7 @@ if (isAppleMacWebKit()) {
         print(join(" ", @copyLibrariesArgs) . "\n");
         (system(@copyLibrariesArgs) == 0) or die;
     } else {
-        push @projects, ("Source/WebKit2") if !$noWebKit2;
+        push @projects, ("Source/WebKit2");
     }
 
     # Build Tools needed for Apple ports
index 72d60ef..ef75029 100644 (file)
             buildForAnalyzing = "YES">
             <BuildableReference
                BuildableIdentifier = "primary"
-               BlueprintIdentifier = "9398100A0824BF01008DF038"
-               BuildableName = "WebKit.framework"
-               BlueprintName = "WebKit"
-               ReferencedContainer = "container:Source/WebKit/WebKit.xcodeproj">
+               BlueprintIdentifier = "1A50DB38110A3C13000D3FE5"
+               BuildableName = "All"
+               BlueprintName = "All"
+               ReferencedContainer = "container:Source/WebKit2/WebKit2.xcodeproj">
             </BuildableReference>
          </BuildActionEntry>
          <BuildActionEntry
             buildForAnalyzing = "YES">
             <BuildableReference
                BuildableIdentifier = "primary"
-               BlueprintIdentifier = "1A50DB38110A3C13000D3FE5"
-               BuildableName = "All"
-               BlueprintName = "All"
-               ReferencedContainer = "container:Source/WebKit2/WebKit2.xcodeproj">
+               BlueprintIdentifier = "9398100A0824BF01008DF038"
+               BuildableName = "WebKit.framework"
+               BlueprintName = "WebKit"
+               ReferencedContainer = "container:Source/WebKit/WebKit.xcodeproj">
             </BuildableReference>
          </BuildActionEntry>
       </BuildActionEntries>
index fd2cca7..5b60fab 100644 (file)
             buildForAnalyzing = "YES">
             <BuildableReference
                BuildableIdentifier = "primary"
-               BlueprintIdentifier = "9398100A0824BF01008DF038"
-               BuildableName = "WebKit.framework"
-               BlueprintName = "WebKit"
-               ReferencedContainer = "container:Source/WebKit/WebKit.xcodeproj">
+               BlueprintIdentifier = "1A50DB38110A3C13000D3FE5"
+               BuildableName = "All"
+               BlueprintName = "All"
+               ReferencedContainer = "container:Source/WebKit2/WebKit2.xcodeproj">
             </BuildableReference>
          </BuildActionEntry>
          <BuildActionEntry
             buildForAnalyzing = "YES">
             <BuildableReference
                BuildableIdentifier = "primary"
-               BlueprintIdentifier = "1A50DB38110A3C13000D3FE5"
-               BuildableName = "All"
-               BlueprintName = "All"
-               ReferencedContainer = "container:Source/WebKit2/WebKit2.xcodeproj">
+               BlueprintIdentifier = "9398100A0824BF01008DF038"
+               BuildableName = "WebKit.framework"
+               BlueprintName = "WebKit"
+               ReferencedContainer = "container:Source/WebKit/WebKit.xcodeproj">
             </BuildableReference>
          </BuildActionEntry>
       </BuildActionEntries>