|
Add directory extraction to GN path handling.
Some of the mojo templates want to put generated files in the directory
corresponding to the source file, rather than the directory containing the
BUILD file. Previously, this required putting the BUILD files in the same
directory.
This patch adds the ability to specify the generated file directory
corresponding to the input file in the action_foreach file templates so this
can be expressed naturally.
For parity, it also adds qquerying for this information via get_path_info.
BUG=
R=cjhopman@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278402
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+333 lines, -137 lines) |
Patch |
 |
M |
tools/gn/command_desc.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/file_template.h
|
View
|
|
7 chunks |
+26 lines, -28 lines |
0 comments
|
Download
|
 |
M |
tools/gn/file_template.cc
|
View
|
1
2
3
|
9 chunks |
+127 lines, -62 lines |
0 comments
|
Download
|
 |
M |
tools/gn/file_template_unittest.cc
|
View
|
1
|
2 chunks |
+63 lines, -16 lines |
0 comments
|
Download
|
 |
M |
tools/gn/filesystem_utils.cc
|
View
|
|
2 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tools/gn/function_get_path_info.cc
|
View
|
1
2
3
|
5 chunks |
+45 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/gn/function_get_path_info_unittest.cc
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/gn/function_get_target_outputs.cc
|
View
|
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tools/gn/function_process_file_template.cc
|
View
|
|
2 chunks |
+20 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_action_target_writer.cc
|
View
|
|
5 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_action_target_writer_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_copy_target_writer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tools/gn/ninja_target_writer.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|