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> 2009-07-30 Jakub Wieczorek <faw217@gmail.com>
[Qt] Fix build with GCC 4.4. [Qt] Fix build with GCC 4.4.
......
...@@ -42,6 +42,7 @@ chdirWebKit(); ...@@ -42,6 +42,7 @@ chdirWebKit();
my $showHelp = 0; my $showHelp = 0;
my $clean = 0; my $clean = 0;
my $minimal = 0;
my $makeArgs; my $makeArgs;
my ($threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $domStorageSupport, my ($threeDRenderingSupport, $channelMessagingSupport, $databaseSupport, $domStorageSupport,
...@@ -139,9 +140,17 @@ if (isQt()) { ...@@ -139,9 +140,17 @@ if (isQt()) {
} }
} }
# Initialize values from defaults
foreach (@ARGV) {
if ($_ eq '--minimal') {
$minimal = 1;
last;
}
}
# Initialize values from defaults # Initialize values from defaults
foreach (@features) { foreach (@features) {
${$_->{value}} = $_->{default} || 0; ${$_->{value}} = ($_->{default} && !$minimal) || 0;
} }
$svgSupport = $svgSupport || $svgAnimationSupport || $svgAsImageSupport $svgSupport = $svgSupport || $svgAnimationSupport || $svgAsImageSupport
...@@ -162,19 +171,22 @@ Usage: $programName [options] [options to pass to build system] ...@@ -162,19 +171,22 @@ Usage: $programName [options] [options to pass to build system]
--makeargs=<arguments> Optional Makefile flags --makeargs=<arguments> Optional Makefile flags
--minimal No optional features, unless explicitly enabled.
EOF EOF
my %options = ( my %options = (
'help' => \$showHelp, 'help' => \$showHelp,
'clean' => \$clean, 'clean' => \$clean,
'makeargs=s' => \$makeArgs, 'makeargs=s' => \$makeArgs,
'minimal' => \$minimal,
); );
# Build usage text and options list from features # Build usage text and options list from features
foreach (@features) { foreach (@features) {
my $opt = sprintf("%-35s", " --[no-]$_->{option}"); my $opt = sprintf("%-35s", " --[no-]$_->{option}");
$usage .= "$opt $_->{desc} (default: ${$_->{value}})\n"; $usage .= "$opt $_->{desc} (default: $_->{default})\n";
$options{"$_->{option}!"} = $_->{value}; $options{"$_->{option}!"} = $_->{value};
} }
GetOptions(%options); 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