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

Issue 1095613002: cr: Add support for GN build file generation (Closed)

Created:
5 years, 8 months ago by Sami
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cr: Add support for GN build file generation To use, invoke cr init with --generator gn: $ cr init -o out_linux/Debug --generator gn $ cr build ... $ cr run ... $ etc. You can also pass in additional arguments: $ cr init -o out_linux/Debug --generator gn -s GN_ARG_foo=bar Note that gn args works normally, although you need to specify the out directory manually: $ gn args out_linux/Debug Committed: https://crrev.com/1c0cfffc940e5b4dfed4a528e2f8ee3d8157bc56 Cr-Commit-Position: refs/heads/master@{#325664}

Patch Set 1 #

Patch Set 2 : Remember generator choice. #

Total comments: 10

Patch Set 3 : Review comments. #

Total comments: 6

Patch Set 4 : Nits addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -8 lines) Patch
A tools/cr/cr/actions/gn.py View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
M tools/cr/cr/actions/gyp.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/cr/cr/base/android.py View 1 chunk +2 lines, -1 line 0 comments Download
M tools/cr/cr/commands/init.py View 1 3 chunks +11 lines, -2 lines 0 comments Download
M tools/cr/cr/commands/prepare.py View 1 2 3 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Sami
5 years, 8 months ago (2015-04-16 17:32:17 UTC) #2
Sami
5 years, 8 months ago (2015-04-17 15:55:53 UTC) #4
petrcermak
Looks good overall. Just a couple of comments. Petr https://codereview.chromium.org/1095613002/diff/20001/tools/cr/cr/actions/gn.py File tools/cr/cr/actions/gn.py (right): https://codereview.chromium.org/1095613002/diff/20001/tools/cr/cr/actions/gn.py#newcode15 tools/cr/cr/actions/gn.py:15: ...
5 years, 8 months ago (2015-04-17 16:14:54 UTC) #5
Sami
Thanks, all addressed. https://codereview.chromium.org/1095613002/diff/20001/tools/cr/cr/actions/gn.py File tools/cr/cr/actions/gn.py (right): https://codereview.chromium.org/1095613002/diff/20001/tools/cr/cr/actions/gn.py#newcode15 tools/cr/cr/actions/gn.py:15: """A prepare action that runs gyp ...
5 years, 8 months ago (2015-04-17 16:20:34 UTC) #6
petrcermak
LGTM % 3 nits. Thanks :-) https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/actions/gn.py File tools/cr/cr/actions/gn.py (right): https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/actions/gn.py#newcode33 tools/cr/cr/actions/gn.py:33: gn_args += ' ...
5 years, 8 months ago (2015-04-17 16:53:14 UTC) #7
Sami
Thanks! https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/actions/gn.py File tools/cr/cr/actions/gn.py (right): https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/actions/gn.py#newcode33 tools/cr/cr/actions/gn.py:33: gn_args += ' is_debug=%s' % \ On 2015/04/17 ...
5 years, 8 months ago (2015-04-17 16:57:17 UTC) #8
Sami
https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/commands/prepare.py File tools/cr/cr/commands/prepare.py (right): https://codereview.chromium.org/1095613002/diff/40001/tools/cr/cr/commands/prepare.py#newcode56 tools/cr/cr/commands/prepare.py:56: help='Sets the build file generator to use. ' + ...
5 years, 8 months ago (2015-04-17 16:57:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095613002/60001
5 years, 8 months ago (2015-04-17 16:58:01 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-17 17:35:17 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 17:36:58 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1c0cfffc940e5b4dfed4a528e2f8ee3d8157bc56
Cr-Commit-Position: refs/heads/master@{#325664}

Powered by Google App Engine
This is Rietveld 408576698