|
This changes the current directory for script execution to be the build directory rather than the current BUILDfile directory. This makes things more consistent and simplifies some implementation.
It adds a new function to_build_path() for buildfiles to convert files to the build directory for this kind of call.
I removed all of the built-in relative* variables that were required to support this, and added one for target_out_dir and root_out_dir.
I added some tests and a test helper object since I was doing this kind of Scope setup a lot.
R=scottmg@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223622
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+477 lines, -341 lines) |
Patch |
|
M |
tools/gn/BUILD.gn
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/function_exec_script.cc
|
View
|
|
4 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
A |
tools/gn/function_to_build_path.cc
|
View
|
|
1 chunk |
+140 lines, -0 lines |
0 comments
|
Download
|
|
A |
tools/gn/function_to_build_path_unittest.cc
|
View
|
|
1 chunk |
+110 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/functions.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/functions.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/functions_target.cc
|
View
|
1
2
|
3 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
|
M |
tools/gn/gn.gyp
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/ninja_script_target_writer.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
tools/gn/ninja_script_target_writer.cc
|
View
|
|
8 chunks |
+13 lines, -40 lines |
0 comments
|
Download
|
|
M |
tools/gn/scope_per_file_provider.h
|
View
|
|
1 chunk |
+4 lines, -17 lines |
0 comments
|
Download
|
|
M |
tools/gn/scope_per_file_provider.cc
|
View
|
|
5 chunks |
+22 lines, -81 lines |
0 comments
|
Download
|
|
M |
tools/gn/scope_per_file_provider_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -12 lines |
0 comments
|
Download
|
|
M |
tools/gn/secondary/base/BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/secondary/build/config/compiler/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/gn/secondary/build/toolchain/mac/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
tools/gn/secondary/chrome/BUILD.gn
|
View
|
|
5 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
tools/gn/secondary/tools/grit/grit_rule.gni
|
View
|
|
2 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
|
A |
tools/gn/test_with_scope.h
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
tools/gn/test_with_scope.cc
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/variables.h
|
View
|
|
1 chunk |
+8 lines, -24 lines |
0 comments
|
Download
|
|
M |
tools/gn/variables.cc
|
View
|
|
2 chunks |
+67 lines, -132 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|