|
Add public deps to GN.
Renamed datadeps to data_deps for consistency.
Renamed direct_dependent_configs to public_configs for consistency with the public deps. This is also easier to understand and hopefully will encourage people to do this instead of use all_dependent_configs.
Now that there are so many types of deps, added a DepsIterator that allows easy iterating over all of them (or only the linked ones). This simplified some code.
This simplified the header checker significantly since it had complicated logic to find direct_dependent_configs and prefer paths with those forwarded.
Removed a bunch of weird group special-casing. Groups no longer have their deps copied into the target, but are dependents like everything else. For now, unless you explicitly specify public_deps, all group deps will default to public. I'd like to change this in a future pass.
Added a bool return value to the target generator functions that fill values. Since I originally did that, I've started both returning a bool and setting an Err, which makes checking for the error and early-returning easier to remember. I did this because I found yet another case of forgetting to check err, which gives very strange results.
Committed: https://crrev.com/c2e821a33bf4ffdf9d325bb0876bd9924284e228
Cr-Commit-Position: refs/heads/master@{#295203}
Total comments: 7
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+754 lines, -863 lines) |
Patch |
 |
M |
tools/gn/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/action_target_generator.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tools/gn/action_target_generator.cc
|
View
|
1
2
3
4
|
4 chunks |
+25 lines, -31 lines |
0 comments
|
Download
|
 |
M |
tools/gn/binary_target_generator.h
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/gn/binary_target_generator.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+34 lines, -37 lines |
0 comments
|
Download
|
 |
M |
tools/gn/builder.cc
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/builder_unittest.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/gn/command_desc.cc
|
View
|
1
2
3
4
|
11 chunks |
+23 lines, -39 lines |
0 comments
|
Download
|
 |
M |
tools/gn/command_refs.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/config_values_extractors_unittest.cc
|
View
|
1
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/gn/copy_target_generator.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A |
tools/gn/deps_iterator.h
|
View
|
1
2
3
4
5
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/gn/deps_iterator.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/function_toolchain.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/functions.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/gn/functions_target.cc
|
View
|
1
|
5 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
tools/gn/gn.gyp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/group_target_generator.cc
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/header_checker.h
|
View
|
1
|
1 chunk |
+8 lines, -21 lines |
0 comments
|
Download
|
 |
M |
tools/gn/header_checker.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+62 lines, -153 lines |
0 comments
|
Download
|
 |
M |
tools/gn/header_checker_unittest.cc
|
View
|
|
5 chunks |
+60 lines, -128 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_action_target_writer.cc
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_action_target_writer_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_binary_target_writer.cc
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_binary_target_writer_unittest.cc
|
View
|
|
5 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_group_target_writer.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_group_target_writer_unittest.cc
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_target_writer_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target.h
|
View
|
1
2
3
4
|
5 chunks |
+22 lines, -29 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target.cc
|
View
|
1
2
3
4
|
8 chunks |
+48 lines, -92 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target_generator.h
|
View
|
|
2 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target_generator.cc
|
View
|
1
|
6 chunks |
+72 lines, -50 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target_unittest.cc
|
View
|
1
2
3
4
5
6
|
16 chunks |
+39 lines, -122 lines |
0 comments
|
Download
|
 |
M |
tools/gn/variables.h
|
View
|
1
|
3 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tools/gn/variables.cc
|
View
|
1
2
3
4
|
10 chunks |
+112 lines, -54 lines |
0 comments
|
Download
|
Total messages: 10 (2 generated)
|