Title: [93515] trunk/Tools
Revision
93515
Author
[email protected]
Date
2011-08-22 10:49:24 -0700 (Mon, 22 Aug 2011)

Log Message

Pass --makeargs of build-webkit to chromium linux builder
https://bugs.webkit.org/show_bug.cgi?id=66361

Patch by Xianzhu Wang <[email protected]> on 2011-08-22
Reviewed by Tony Chang.

* Scripts/build-webkit:
* Scripts/webkitdirs.pm:
(buildChromiumMakefile):
(buildChromium):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (93514 => 93515)


--- trunk/Tools/ChangeLog	2011-08-22 17:33:59 UTC (rev 93514)
+++ trunk/Tools/ChangeLog	2011-08-22 17:49:24 UTC (rev 93515)
@@ -1,3 +1,15 @@
+2011-08-22  Xianzhu Wang  <[email protected]>
+
+        Pass --makeargs of build-webkit to chromium linux builder
+        https://bugs.webkit.org/show_bug.cgi?id=66361
+
+        Reviewed by Tony Chang.
+
+        * Scripts/build-webkit:
+        * Scripts/webkitdirs.pm:
+        (buildChromiumMakefile):
+        (buildChromium):
+
 2011-08-22  Peter Beverloo  <[email protected]>
 
         Add myself to the contributor list.

Modified: trunk/Tools/Scripts/build-webkit (93514 => 93515)


--- trunk/Tools/Scripts/build-webkit	2011-08-22 17:33:59 UTC (rev 93514)
+++ trunk/Tools/Scripts/build-webkit	2011-08-22 17:49:24 UTC (rev 93515)
@@ -578,6 +578,7 @@
     @options = @ARGV;
     # Chromium doesn't build by project directories.
     @projects = ();
+    push @options, "--makeargs=" . $makeArgs if $makeArgs;
     my $result = buildChromium($clean, @options);
     exit exitStatus($result) if exitStatus($result);
 }

Modified: trunk/Tools/Scripts/webkitdirs.pm (93514 => 93515)


--- trunk/Tools/Scripts/webkitdirs.pm	2011-08-22 17:33:59 UTC (rev 93514)
+++ trunk/Tools/Scripts/webkitdirs.pm	2011-08-22 17:49:24 UTC (rev 93515)
@@ -1823,17 +1823,22 @@
     return buildAutotoolsProject($project, $clean, @buildArgs);
 }
 
-sub buildChromiumMakefile($$)
+sub buildChromiumMakefile($$@)
 {
-    my ($target, $clean) = @_;
+    my ($target, $clean, @options) = @_;
     if ($clean) {
         return system qw(rm -rf out);
     }
     my $config = configuration();
     my $numCpus = numberOfCPUs();
-    my @command = ("make", "-fMakefile.chromium", "-j$numCpus", "BUILDTYPE=$config", $target);
-    print join(" ", @command) . "\n";
-    return system @command;
+    my $makeArgs;
+    for (@options) {
+        $makeArgs = $1 if /^--makeargs=(.*)/i;
+    }
+    $makeArgs = "-j$numCpus" if not $makeArgs;
+    my $command = "make -fMakefile.chromium $makeArgs BUILDTYPE=$config $target";
+    print "$command\n";
+    return system $command;
 }
 
 sub buildChromiumVisualStudioProject($$)
@@ -1894,7 +1899,7 @@
         $result = buildChromiumVisualStudioProject("Source/WebKit/chromium/WebKit.sln", $clean);
     } elsif (isLinux()) {
         # Linux build - build using make.
-        $ result = buildChromiumMakefile("all", $clean);
+        $result = buildChromiumMakefile("all", $clean, @options);
     } else {
         print STDERR "This platform is not supported by chromium.\n";
     }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to