|
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}
Total comments: 9
Total comments: 1
|
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
|
Total messages: 20 (8 generated)
|