Bug 62399 - [chromium] make features.gypi the same as features_override.gypi
Summary: [chromium] make features.gypi the same as features_override.gypi
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tony Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 13:39 PDT by Tony Chang
Modified: 2011-06-10 10:31 PDT (History)
5 users (show)

See Also:


Attachments
Patch (8.53 KB, patch)
2011-06-09 13:41 PDT, Tony Chang
no flags Details | Formatted Diff | Diff
Patch (8.56 KB, patch)
2011-06-09 14:10 PDT, Tony Chang
no flags Details | Formatted Diff | Diff
Patch (8.55 KB, patch)
2011-06-10 09:50 PDT, Tony Chang
dglazkov: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chang 2011-06-09 13:39:50 PDT
[chromium] make features.gypi the same as features_override.gypi
Comment 1 Tony Chang 2011-06-09 13:41:05 PDT
Created attachment 96630 [details]
Patch
Comment 2 Tony Chang 2011-06-09 14:00:12 PDT
This removes the nesting in features.gypi.  Instead, the two feature_defines lists are now merged together.  As far as I can tell, duplicate values are removed so we don't get -D listed twice on the command line.

I tried to find the code in gyp that's removing the duplicates, but I couldn't seem to find it.  Maybe Mark knows where that is so I can be more confident?
Comment 3 James Robinson 2011-06-09 14:02:51 PDT
Comment on attachment 96630 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96630&action=review

> Source/WebKit/chromium/features.gypi:51
> +      'ENABLE_FULLSCREEN_API=1',

you need to remove this too - see https://bugs.webkit.org/show_bug.cgi?id=62397
Comment 4 Mark Mentovai 2011-06-09 14:07:18 PDT
Tony, look for the word “singleton” in input.py.
Comment 5 Tony Chang 2011-06-09 14:10:20 PDT
Created attachment 96639 [details]
Patch
Comment 6 Tony Chang 2011-06-09 14:11:46 PDT
Removed ENABLE_FULLSCREEN_API and found singleton in the gyp source :)  We remove duplicate values that don't start with a -.
Comment 7 WebKit Review Bot 2011-06-09 15:25:09 PDT
Comment on attachment 96639 [details]
Patch

Attachment 96639 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/8810060
Comment 8 James Robinson 2011-06-09 15:30:39 PDT
This should compile after http://trac.webkit.org/changeset/88490
Comment 9 James Robinson 2011-06-09 15:31:18 PDT
Comment on attachment 96639 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96639&action=review

> Source/WebKit/chromium/features.gypi:158
> +# Local Variables:

did you mean to check this section in?
Comment 10 Tony Chang 2011-06-09 15:36:43 PDT
Comment on attachment 96639 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96639&action=review

>> Source/WebKit/chromium/features.gypi:158
>> +# Local Variables:
> 
> did you mean to check this section in?

It's in features_override.gypi and I just copied the whole file over.  I don't care about it one way or the other.  We should probably decide whether or not we need this and update all our .gyp(i) files.
Comment 11 James Robinson 2011-06-09 15:38:26 PDT
I don't know what it is or what it does
Comment 12 Tony Chang 2011-06-09 15:41:51 PDT
(In reply to comment #11)
> I don't know what it is or what it does

Oh, it's for vim.  It lets vim users get the proper indenting and tab behavior when they open the file (I think this is normally done based on file extension?).  I'm not actually a vim user, so I don't care :)
Comment 13 WebKit Review Bot 2011-06-09 18:32:05 PDT
Comment on attachment 96639 [details]
Patch

Attachment 96639 [details] did not pass cr-mac-ews (chromium):
Output: http://queues.webkit.org/results/8826214
Comment 14 Tony Chang 2011-06-10 09:50:25 PDT
Created attachment 96753 [details]
Patch
Comment 15 Dimitri Glazkov (Google) 2011-06-10 09:52:13 PDT
Comment on attachment 96753 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96753&action=review

> Source/WebKit/chromium/features.gypi:162
> +# Local Variables:
> +# tab-width:2
> +# indent-tabs-mode:nil
> +# End:
> +# vim: set expandtab tabstop=2 shiftwidth=2:

What's that?!
Comment 16 Tony Chang 2011-06-10 10:29:41 PDT
(In reply to comment #15)
> (From update of attachment 96753 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=96753&action=review
> 
> > Source/WebKit/chromium/features.gypi:162
> > +# Local Variables:
> > +# tab-width:2
> > +# indent-tabs-mode:nil
> > +# End:
> > +# vim: set expandtab tabstop=2 shiftwidth=2:
> 
> What's that?!

Ok, I'll remove it before landing.  I'm also working on removing this from all our gyp(i) files.
Comment 17 Tony Chang 2011-06-10 10:31:24 PDT
Committed r88548: <http://trac.webkit.org/changeset/88548>