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

Issue 1518313002: ninja: Correctly handle copies steps in sourceless shared_library targets. (Closed)

Created:
5 years ago by Nico
Modified:
5 years ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

ninja: Correctly handle copies steps in sourceless shared_library targets. The other generators I tested (make, xcode) all get this right already. BUG=chromium:552692 R=sbaig1@bloomberg.net, scottmg@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/b85ad3e578da830377dbc1843aa4fbc5af17a192

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : forgot to add a file #

Patch Set 4 : static #

Patch Set 5 : win #

Total comments: 2

Patch Set 6 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -5 lines) Patch
M pylib/gyp/generator/ninja.py View 1 4 chunks +14 lines, -5 lines 0 comments Download
A test/copies/gyptest-sourceless-shared-lib.py View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A test/copies/src/copies-sourceless-shared-lib.gyp View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A test/copies/src/foo.c View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Nico
`time python gyptest.py -f ninja` takes a _lot_ longer to run that I remembered (but ...
5 years ago (2015-12-12 19:51:32 UTC) #2
Nico
Shezan, can you review this maybe? Scott is out sick, and you already helped me ...
5 years ago (2015-12-14 19:11:25 UTC) #4
scottmg
lgtm https://codereview.chromium.org/1518313002/diff/80001/test/copies/gyptest-sourceless-shared-lib.py File test/copies/gyptest-sourceless-shared-lib.py (right): https://codereview.chromium.org/1518313002/diff/80001/test/copies/gyptest-sourceless-shared-lib.py#newcode15 test/copies/gyptest-sourceless-shared-lib.py:15: chdir='src') It looks like this would fit on ...
5 years ago (2015-12-14 19:24:52 UTC) #5
Shezan Baig (Bloomberg)
LGTM But instead of having to specify TargetMachine in the gyp file, we could probably ...
5 years ago (2015-12-14 19:26:11 UTC) #6
Nico
Committed patchset #6 (id:100001) manually as b85ad3e578da830377dbc1843aa4fbc5af17a192 (presubmit successful).
5 years ago (2015-12-14 19:53:41 UTC) #8
Nico
5 years ago (2015-12-14 19:54:53 UTC) #9
Message was sent while issue was closed.
Thanks!

We can make msvs_emulation smarter/more complicated if another 2 tests need this
too :-)

https://codereview.chromium.org/1518313002/diff/80001/test/copies/gyptest-sou...
File test/copies/gyptest-sourceless-shared-lib.py (right):

https://codereview.chromium.org/1518313002/diff/80001/test/copies/gyptest-sou...
test/copies/gyptest-sourceless-shared-lib.py:15: chdir='src')
On 2015/12/14 19:24:51, scottmg (out) wrote:
> It looks like this would fit on the line above.

Done.

Powered by Google App Engine
This is Rietveld 408576698