Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Issue 282843002: Don't exclude sources for 'none' targets (Closed)

Created:
6 years, 7 months ago by Shezan Baig (Bloomberg)
Modified:
6 years, 6 months ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Don't exclude sources for 'none' targets MSVS doesn't compile files for 'none' targets, so there is no need to "exclude" them. BUG= R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1920

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M pylib/gyp/generator/msvs.py View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Shezan Baig (Bloomberg)
Hey Scott, Pretty simple change, but it removes one extra level of unnecessary folders in ...
6 years, 7 months ago (2014-05-13 17:07:28 UTC) #1
scottmg
lgtm
6 years, 7 months ago (2014-05-13 18:06:34 UTC) #2
Shezan Baig (Bloomberg)
Committed patchset #1 manually as r1920 (presubmit successful).
6 years, 7 months ago (2014-05-14 13:17:43 UTC) #3
Nico
(for generator-specific things, consider prepending the first line of the description with the generator name, ...
6 years, 7 months ago (2014-05-19 18:13:53 UTC) #4
Romain Pokrzywka
On 2014/05/13 17:07:28, Shezan Baig (Bloomberg) wrote: > Hey Scott, > Pretty simple change, but ...
6 years, 7 months ago (2014-05-28 01:12:38 UTC) #5
Shezan Baig (Bloomberg)
On 2014/05/28 01:12:38, Romain Pokrzywka wrote: > Hi Shezan, > > that change makes Blink's ...
6 years, 6 months ago (2014-05-28 13:23:27 UTC) #6
Shezan Baig (Bloomberg)
Looking at this a bit more, it seems like the msvs generator already has logic ...
6 years, 6 months ago (2014-05-28 14:00:43 UTC) #7
Romain Pokrzywka
6 years, 6 months ago (2014-05-28 18:22:31 UTC) #8
Message was sent while issue was closed.
On 2014/05/28 14:00:43, Shezan Baig (Bloomberg) wrote:
> Looking at this a bit more, it seems like the msvs generator already has logic
> to specifically exclude idl files (see '_IdlFilesHandledNonNatively'), but it
> only looks at rules, not actions.  Perhaps it should look at actions as well.
> 
> So I could either post a CL to revert this, or post a CL to make
> '_IdlFilesHandledNonNatively' also return idl files used in actions.  In
either
> case, I'll make a test for this because it seems like this currently isn't
being
> tested at all.

Adding the fix inside _IdlFilesHandledNonNatively could work, but I'm afraid
that would make things quite complicated, given all the different use cases
(action only, rule only, action+rule).
I would favor a simpler fix, basically just take the if block out into its own
function, and add the extra check for c/cpp sources there.
That said there's a few other places where action inputs are excluded/included
in the generator code (e.g. _FilterActionsFromExcluded), so maybe there's some
cleanup and/or simplification to be done at the same time.

I agree that adding tests is the right way to go before making more changes. I
can help with that. For the rest there's no rush on my side so feel free to look
at this at you convenience.

Thanks,
Romain

Powered by Google App Engine
This is Rietveld 408576698