Commit 0eb529f4 authored by treat@webkit.org's avatar treat@webkit.org

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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 22bf6875
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:
2009-07-30 Jakub Wieczorek <faw217@gmail.com>
[Qt] Fix build with GCC 4.4.
......
......@@ -42,6 +42,7 @@ chdirWebKit();
my $showHelp = 0;
my $clean = 0;
my $minimal = 0;
my $makeArgs;
my ($threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $domStorageSupport,
......@@ -139,9 +140,17 @@ if (isQt()) {
}
}
# Initialize values from defaults
foreach (@ARGV) {
if ($_ eq '--minimal') {
$minimal = 1;
last;
}
}
# Initialize values from defaults
foreach (@features) {
${$_->{value}} = $_->{default} || 0;
${$_->{value}} = ($_->{default} && !$minimal) || 0;
}
$svgSupport = $svgSupport || $svgAnimationSupport || $svgAsImageSupport
......@@ -162,19 +171,22 @@ Usage: $programName [options] [options to pass to build system]
--makeargs=<arguments> Optional Makefile flags
--minimal No optional features, unless explicitly enabled.
EOF
my %options = (
'help' => \$showHelp,
'clean' => \$clean,
'makeargs=s' => \$makeArgs,
'minimal' => \$minimal,
);
# Build usage text and options list from features
foreach (@features) {
my $opt = sprintf("%-35s", " --[no-]$_->{option}");
$usage .= "$opt $_->{desc} (default: ${$_->{value}})\n";
$options{"$_->{option}!"} = $_->{value};
$usage .= "$opt $_->{desc} (default: $_->{default})\n";
$options{"$_->{option}!"} = $_->{value};
}
GetOptions(%options);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment