Title: [212306] trunk/Tools
Revision
212306
Author
[email protected]
Date
2017-02-14 10:07:39 -0800 (Tue, 14 Feb 2017)

Log Message

[CMake] build-webkit should allow building with the default cmake configuration
https://bugs.webkit.org/show_bug.cgi?id=168323

Reviewed by Michael Catanzaro.

Add a --default-cmake-features switch that makes the script pass
no value for any of the features defined by build-webkit, that
way the default values from the port cmake config will be used.

* Scripts/build-webkit:
(cMakeArgsFromFeatures):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (212305 => 212306)


--- trunk/Tools/ChangeLog	2017-02-14 17:51:25 UTC (rev 212305)
+++ trunk/Tools/ChangeLog	2017-02-14 18:07:39 UTC (rev 212306)
@@ -1,3 +1,17 @@
+2017-02-14  Carlos Alberto Lopez Perez  <[email protected]>
+
+        [CMake] build-webkit should allow building with the default cmake configuration
+        https://bugs.webkit.org/show_bug.cgi?id=168323
+
+        Reviewed by Michael Catanzaro.
+
+        Add a --default-cmake-features switch that makes the script pass
+        no value for any of the features defined by build-webkit, that
+        way the default values from the port cmake config will be used.
+
+        * Scripts/build-webkit:
+        (cMakeArgsFromFeatures):
+
 2017-02-14  Jonathan Bedard  <[email protected]>
 
         Unreviewed build-fix after r212297.

Modified: trunk/Tools/Scripts/build-webkit (212305 => 212306)


--- trunk/Tools/Scripts/build-webkit	2017-02-14 17:51:25 UTC (rev 212305)
+++ trunk/Tools/Scripts/build-webkit	2017-02-14 18:07:39 UTC (rev 212306)
@@ -52,6 +52,7 @@
 
 my $showHelp = 0;
 my $clean = 0;
+my $defaultCMakeFeatures = 0;
 my $minimal = 0;
 my $installHeaders;
 my $installLibs;
@@ -104,6 +105,7 @@
   --cmakeargs=<arguments>           One or more optional CMake flags (e.g. --cmakeargs="-DFOO=bar -DCMAKE_PREFIX_PATH=/usr/local")
 
   --minimal                         No optional features, unless explicitly enabled
+  --default-cmake-features          Use the default CMake features enabled for the port (CMake based ports)
 
   --only-webkit                     Build only the WebKit project
 
@@ -121,6 +123,7 @@
     'only-webkit' => \$onlyWebKitProject,
     'coverage' => \$coverageSupport,
     'analyze' => \$shouldRunStaticAnalyzer,
+    'default-cmake-features' => \$defaultCMakeFeatures,
 );
 
 # Build usage text and options list from features
@@ -306,11 +309,13 @@
 sub cMakeArgsFromFeatures()
 {
     my @args;
-    foreach (@features) {
-        my $featureName = $_->{define};
-        if ($featureName) {
-            my $featureEnabled = ${$_->{value}} ? "ON" : "OFF";
-            push @args, "-D$featureName=$featureEnabled";
+    if (!$defaultCMakeFeatures) {
+        foreach (@features) {
+            my $featureName = $_->{define};
+            if ($featureName) {
+                my $featureEnabled = ${$_->{value}} ? "ON" : "OFF";
+                push @args, "-D$featureName=$featureEnabled";
+            }
         }
     }
     return @args;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to