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

Issue 23606031: GN: Use build directory for CD for scripts (Closed)

Created:
7 years, 3 months ago by brettw
Modified:
7 years, 3 months ago
Reviewers:
scottmg
CC:
chromium-reviews
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : revert all.gyp #

Total comments: 1

Patch Set 3 : iFix docs, base build #

Total comments: 4

Patch Set 4 : merge #

Patch Set 5 : #

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

Messages

Total messages: 4 (0 generated)
brettw
7 years, 3 months ago (2013-09-13 22:50:03 UTC) #1
scottmg
ps3 didn't upload, but not much diff from ps2 i guess lgtm https://codereview.chromium.org/23606031/diff/3001/tools/gn/secondary/build/config/compiler/BUILD.gn File tools/gn/secondary/build/config/compiler/BUILD.gn ...
7 years, 3 months ago (2013-09-14 04:53:16 UTC) #2
brettw
https://codereview.chromium.org/23606031/diff/2/tools/gn/function_to_build_path.cc File tools/gn/function_to_build_path.cc (right): https://codereview.chromium.org/23606031/diff/2/tools/gn/function_to_build_path.cc#newcode67 tools/gn/function_to_build_path.cc:67: const char kToBuildPath[] = "to_build_path"; This is my own ...
7 years, 3 months ago (2013-09-16 17:59:01 UTC) #3
brettw
7 years, 3 months ago (2013-09-17 16:54:28 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r223622 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698