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

Issue 2581193003: GN: Add optional default_args variable to .gn. (Closed)

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

Description

GN: Add optional default_args variable to .gn. Allows a project to specify default overrides for declared arguments. This is useful for subprojects which might declare arguments with default values that need to be changed for this project. BUG=588513 Review-Url: https://codereview.chromium.org/2581193003 Cr-Commit-Position: refs/heads/master@{#445259} Committed: https://chromium.googlesource.com/chromium/src/+/adbf15668dc1beadf9ee73fe1d7784a5aba207c3

Patch Set 1 #

Patch Set 2 : GN: Add default_args variable to .gn. #

Total comments: 2

Patch Set 3 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
M tools/gn/args.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/setup.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/setup.cc View 1 5 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
timn
There's now some duplicated code for parsing/executing files between .gn, args.gn and default_args.gn. This could ...
4 years ago (2016-12-16 21:14:35 UTC) #2
timn
ping?
3 years, 11 months ago (2017-01-03 22:14:14 UTC) #3
Dirk Pranke
Sorry for the long delay here :( ... I think the way I was picturing ...
3 years, 11 months ago (2017-01-04 03:38:19 UTC) #4
Dirk Pranke
Oh, and thanks for working on this! It'll definitely clean up some things.
3 years, 11 months ago (2017-01-04 03:38:45 UTC) #5
timn
On 2017/01/04 03:38:19, Dirk Pranke wrote: > Sorry for the long delay here :( ...
3 years, 11 months ago (2017-01-04 05:42:18 UTC) #6
Dirk Pranke
On 2017/01/04 05:42:18, timn wrote: > On 2017/01/04 03:38:19, Dirk Pranke wrote: > > Sorry ...
3 years, 11 months ago (2017-01-05 02:59:09 UTC) #7
Dirk Pranke
I haven't had time to think about this enough yet, but it's still on my ...
3 years, 11 months ago (2017-01-09 05:06:37 UTC) #8
Dirk Pranke
Having thought about this more ... I feel like, ideally, there shouldn't be a need ...
3 years, 11 months ago (2017-01-16 02:56:33 UTC) #9
brettw
My original reason for not doing a separate file was just performance (I didn't want ...
3 years, 11 months ago (2017-01-17 20:34:25 UTC) #10
timn
On 2017/01/17 20:34:25, brettw (ping after 24h) wrote: > I don't think the "sharing between ...
3 years, 11 months ago (2017-01-17 21:53:26 UTC) #11
brettw
Yeah, V8 will configure the defaults for its own args in the declarations for the ...
3 years, 11 months ago (2017-01-18 23:18:31 UTC) #12
Dirk Pranke
On 2017/01/18 23:18:31, brettw (ping after 24h) wrote: > Yeah, V8 will configure the defaults ...
3 years, 11 months ago (2017-01-19 01:43:49 UTC) #13
timn
PTAL, default_args is now a scope.
3 years, 11 months ago (2017-01-19 10:12:16 UTC) #14
brettw
lgtm https://codereview.chromium.org/2581193003/diff/20001/tools/gn/setup.h File tools/gn/setup.h (right): https://codereview.chromium.org/2581193003/diff/20001/tools/gn/setup.h#newcode153 tools/gn/setup.h:153: // Default overrides, specified in the dotfile. Can ...
3 years, 11 months ago (2017-01-19 18:47:08 UTC) #15
timn
https://codereview.chromium.org/2581193003/diff/20001/tools/gn/setup.h File tools/gn/setup.h (right): https://codereview.chromium.org/2581193003/diff/20001/tools/gn/setup.h#newcode153 tools/gn/setup.h:153: // Default overrides, specified in the dotfile. On 2017/01/19 ...
3 years, 11 months ago (2017-01-21 02:52:45 UTC) #16
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/2581193003/40001
3 years, 11 months ago (2017-01-21 02:53:21 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/adbf15668dc1beadf9ee73fe1d7784a5aba207c3
3 years, 11 months ago (2017-01-21 03:07:16 UTC) #22
brettw
3 years, 11 months ago (2017-01-23 21:01:34 UTC) #23
Message was sent while issue was closed.
I just landed the roll for this in https://codereview.chromium.org/2647423002

Powered by Google App Engine
This is Rietveld 408576698