Changeset 46597 in webkit


Ignore:
Timestamp:
Jul 30, 2009 1:57:28 PM (15 years ago)
Author:
treat@webkit.org
Message:

2009-07-30 Jakob Petsovits <jakob.petsovits@torchmobile.com>

Reviewed by Adam Roben.

Add --minimal option to webkit-build.
https://bugs.webkit.org/show_bug.cgi?id=27852

This option disables all optional build features unless
they are explicitly enabled.

  • Scripts/build-webkit:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r46585 r46597  
     12009-07-30  Jakob Petsovits  <jakob.petsovits@torchmobile.com>
     2
     3         Reviewed by Adam Roben.
     4
     5         Add --minimal option to webkit-build.
     6         https://bugs.webkit.org/show_bug.cgi?id=27852
     7
     8         This option disables all optional build features unless
     9         they are explicitly enabled.
     10
     11         * Scripts/build-webkit:
     12
    1132009-07-30  Jakub Wieczorek  <faw217@gmail.com>
    214
  • trunk/WebKitTools/Scripts/build-webkit

    r46159 r46597  
    4343my $showHelp = 0;
    4444my $clean = 0;
     45my $minimal = 0;
    4546my $makeArgs;
    4647
     
    141142
    142143# Initialize values from defaults
     144foreach (@ARGV) {
     145    if ($_ eq '--minimal') {
     146        $minimal = 1;
     147        last;
     148    }
     149}
     150
     151# Initialize values from defaults
    143152foreach (@features) {
    144     ${$_->{value}} = $_->{default} || 0;
     153    ${$_->{value}} = ($_->{default} && !$minimal) || 0;
    145154}
    146155
     
    163172  --makeargs=<arguments>            Optional Makefile flags
    164173
     174  --minimal                         No optional features, unless explicitly enabled.
     175
    165176EOF
    166177
     
    169180    'clean' => \$clean,
    170181    'makeargs=s' => \$makeArgs,
     182    'minimal' => \$minimal,
    171183);
    172184
     
    174186foreach (@features) {
    175187    my $opt = sprintf("%-35s", "  --[no-]$_->{option}");
    176     $usage .= "$opt $_->{desc} (default: ${$_->{value}})\n";
    177     $options{"$_->{option}!"} =  $_->{value};
     188    $usage .= "$opt $_->{desc} (default: $_->{default})\n";
     189    $options{"$_->{option}!"} = $_->{value};
    178190}
    179191
Note: See TracChangeset for help on using the changeset viewer.