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

Issue 23601020: Add ninja generator flag for writing library deps. (Closed)

Created:
7 years, 3 months ago by brettw
Modified:
7 years, 3 months ago
Reviewers:
Nico, Evan Martin
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Visibility:
Public.

Description

Add ninja generator flag for writing library deps. This adds a flag to the ninja generator to specify a file to write library deps to as generation proceeds. This is so GN can suck the deps out. BUG=288991

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review comments #

Total comments: 3

Patch Set 3 : review comments #

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

Messages

Total messages: 8 (0 generated)
brettw
I open the file for appending each time. I thought some portion of GYP was ...
7 years, 3 months ago (2013-09-05 19:28:45 UTC) #1
Nico
I think this change is fine (minor comments below), but there should probably be some ...
7 years, 3 months ago (2013-09-09 23:27:27 UTC) #2
Evan Martin
https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py#newcode255 pylib/gyp/generator/ninja.py:255: self.link_deps_file = False Why not "None" (also above in ...
7 years, 3 months ago (2013-09-09 23:49:34 UTC) #3
brettw
New snap up, PTAL. https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py#newcode213 pylib/gyp/generator/ninja.py:213: generator_flags, toplevel_dir=None): On 2013/09/09 23:27:27, ...
7 years, 3 months ago (2013-09-10 21:12:13 UTC) #4
Nico
https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23601020/diff/1/pylib/gyp/generator/ninja.py#newcode253 pylib/gyp/generator/ninja.py:253: self.link_deps_file = open(generator_flags.get(LINK_DEPS_FILE), 'ab') On 2013/09/10 21:12:13, brettw wrote: ...
7 years, 3 months ago (2013-09-10 21:56:55 UTC) #5
Nico
https://codereview.chromium.org/23601020/diff/7001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23601020/diff/7001/pylib/gyp/generator/ninja.py#newcode213 pylib/gyp/generator/ninja.py:213: deps_file_name=None, toplevel_dir=None): rename to deps_file https://codereview.chromium.org/23601020/diff/7001/pylib/gyp/generator/ninja.py#newcode254 pylib/gyp/generator/ninja.py:254: self.link_deps_file = ...
7 years, 3 months ago (2013-09-10 21:58:02 UTC) #6
brettw
I see, I didn't have the right picture of how it works. I moved the ...
7 years, 3 months ago (2013-09-11 20:05:01 UTC) #7
Nico
7 years, 3 months ago (2013-09-11 20:06:00 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698