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

Issue 1342183003: Allow GN configs to have sub-configs. (Closed)

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

Description

Allow GN configs to have sub-configs. Some of the configs are getting unwieldy (the "compiler" one) and some are used to just forward to other variants like default_symbols and default_optimization. This adds the ability for a config to have configs to add flags by reference. This allows large configs to be split apart into more logical units, and allows forwarding configs like default_optimization to be written in the obvious way. An example of what this enables is https://codereview.chromium.org/1341373002/ Committed: https://crrev.com/bd14442c3ff59815f01abea3a32db6c017f895dd Cr-Commit-Position: refs/heads/master@{#349258}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : Review comments #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -61 lines) Patch
M tools/gn/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/builder.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/builder.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M tools/gn/command_desc.cc View 1 2 3 chunks +26 lines, -18 lines 0 comments Download
M tools/gn/config.h View 1 2 1 chunk +38 lines, -3 lines 0 comments Download
M tools/gn/config.cc View 1 2 3 2 chunks +28 lines, -1 line 0 comments Download
A tools/gn/config_unittest.cc View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
M tools/gn/config_values.h View 3 chunks +5 lines, -2 lines 0 comments Download
M tools/gn/config_values.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M tools/gn/config_values_extractors.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/config_values_extractors_unittest.cc View 1 2 5 chunks +29 lines, -18 lines 0 comments Download
M tools/gn/functions.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M tools/gn/gn.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/target.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/target_unittest.cc View 4 chunks +10 lines, -4 lines 0 comments Download
M tools/gn/variables.cc View 2 chunks +61 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
brettw
5 years, 3 months ago (2015-09-15 20:13:35 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342183003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342183003/20001
5 years, 3 months ago (2015-09-15 20:14:25 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-15 20:56:42 UTC) #6
Dirk Pranke
this mostly looks okay, but I'd like to be consistent on the terminology. "nested configs" ...
5 years, 3 months ago (2015-09-15 21:31:31 UTC) #7
brettw
I standardized on "subconfig" to avoid confusion with "all dependent configs". New snap up. https://codereview.chromium.org/1342183003/diff/20001/tools/gn/variables.cc ...
5 years, 3 months ago (2015-09-16 19:26:33 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342183003/40001
5 years, 3 months ago (2015-09-16 19:27:28 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/114450)
5 years, 3 months ago (2015-09-16 20:43:00 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342183003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342183003/40001
5 years, 3 months ago (2015-09-16 20:46:52 UTC) #14
Dirk Pranke
lgtm, thanks https://codereview.chromium.org/1342183003/diff/40001/tools/gn/config.cc File tools/gn/config.cc (right): https://codereview.chromium.org/1342183003/diff/40001/tools/gn/config.cc#newcode41 tools/gn/config.cc:41: // list. To the same for Target.configs_ ...
5 years, 3 months ago (2015-09-16 21:03:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342183003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342183003/60001
5 years, 3 months ago (2015-09-16 21:34:08 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-16 22:31:39 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-16 22:32:10 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bd14442c3ff59815f01abea3a32db6c017f895dd
Cr-Commit-Position: refs/heads/master@{#349258}

Powered by Google App Engine
This is Rietveld 408576698