Bug 50888 - build-webkit --minimal --enable-video doesn't enable video
Summary: build-webkit --minimal --enable-video doesn't enable video
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 03:33 PST by Philippe Normand
Modified: 2010-12-13 03:16 PST (History)
4 users (show)

See Also:


Attachments
proposed patch (1.57 KB, patch)
2010-12-12 04:20 PST, Philippe Normand
ossy: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2010-12-12 03:33:27 PST
Because configure is called with these options in order: --enable-video --disable-video (because of --minimal)
Comment 1 Philippe Normand 2010-12-12 04:20:33 PST
Created attachment 76321 [details]
proposed patch
Comment 2 Xan Lopez 2010-12-12 11:01:52 PST
Not really GTK specific.
Comment 3 Csaba Osztrogonác 2010-12-13 03:15:54 PST
Comment on attachment 76321 [details]
proposed patch

It doesn't work, because there isn't --enable-video option in build-webkit script.
You can use --video to enable and --no-video to disable video support.

This code sets the default value or 0 if you passed --minimal option :
...
# Initialize values from defaults
foreach (@features) {
    ${$_->{value}} = ($_->{default} && !$minimal) || 0;
}
...

But the script processes the command line arguments later:
...
# Build usage text and options list from features
foreach (@features) {
    my $opt = sprintf("%-35s", "  --[no-]$_->{option}");
    $usage .= "$opt $_->{desc} (default: $_->{default})\n";
    $options{"$_->{option}!"} = $_->{value};
}
...

So "build-webkit --minimal --video" will work for you and it isn't a bug.