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

Issue 2514333005: Add support for customizing GN's args text. (Closed)

Created:
4 years, 1 month ago by Dirk Pranke
Modified:
3 years, 9 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for customizing GN's args text. It would be nice if, when you ran `gn args out/foo`, you could get some sample text that was actually customized to the build that you have, rather than referencing dummy arguments like 'enable_doom_melon'. This CL adds support for that. If you set `arg_file_template_path` in your dotfile, then GN will use the contents of that file as the sample text that it passes to the editor. R=brettw@chromium.org BUG= Review-Url: https://codereview.chromium.org/2514333005 Cr-Commit-Position: refs/heads/master@{#454750} Committed: https://chromium.googlesource.com/chromium/src/+/eacf0f430d80615f07da8bc4094bb981771a155c

Patch Set 1 #

Total comments: 21

Patch Set 2 : update with review feedback #

Patch Set 3 : patch for landing (remove .gn change, update reference docs) #

Patch Set 4 : merge #

Patch Set 5 : update docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -17 lines) Patch
A build/sample_arg_file.gn View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tools/gn/build_settings.h View 2 chunks +9 lines, -0 lines 0 comments Download
M tools/gn/build_settings.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tools/gn/command_args.cc View 1 2 3 1 chunk +21 lines, -5 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 4 6 chunks +32 lines, -9 lines 0 comments Download
M tools/gn/setup.cc View 1 2 3 2 chunks +16 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (5 generated)
Dirk Pranke
What do you think? https://codereview.chromium.org/2514333005/diff/1/.gn File .gn (right): https://codereview.chromium.org/2514333005/diff/1/.gn#newcode12 .gn:12: arg_file_template = "//build/sample_arg_file.gn" We don't ...
4 years, 1 month ago (2016-11-22 04:27:39 UTC) #1
brettw
https://codereview.chromium.org/2514333005/diff/1/build/sample_arg_file.gn File build/sample_arg_file.gn (right): https://codereview.chromium.org/2514333005/diff/1/build/sample_arg_file.gn#newcode2 build/sample_arg_file.gn:2: # and their default values (as of when `gn ...
4 years, 1 month ago (2016-11-22 16:14:33 UTC) #2
Dirk Pranke
Updated. Please take another look? https://codereview.chromium.org/2514333005/diff/1/build/sample_arg_file.gn File build/sample_arg_file.gn (right): https://codereview.chromium.org/2514333005/diff/1/build/sample_arg_file.gn#newcode2 build/sample_arg_file.gn:2: # and their default ...
4 years, 1 month ago (2016-11-22 18:41:52 UTC) #4
brettw
lgtm
4 years ago (2016-12-05 18:10:35 UTC) #5
Dirk Pranke
I wonder what the odds are that this still applies and builds ...
3 years, 9 months ago (2017-03-02 01:22:08 UTC) #6
Dirk Pranke
On 2017/03/02 01:22:08, Dirk Pranke wrote: > I wonder what the odds are that this ...
3 years, 9 months ago (2017-03-02 01:46:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2514333005/100001
3 years, 9 months ago (2017-03-04 01:39:53 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-04 02:33:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/eacf0f430d80615f07da8bc4094b...

Powered by Google App Engine
This is Rietveld 408576698