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

Issue 1887533003: Add an output_dir override to GN. (Closed)

Created:
4 years, 8 months ago by brettw
Modified:
4 years, 8 months ago
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an output_dir override to GN. This adds support for the ability for targets to override their output directory. The tool defines a default output directory in terms of the normal patterns. The target can optionally supply an override, and the tool uses the new {{output_dir}} pattern when specifying tool output to express the result of the default-or-override. Committed: https://crrev.com/f2eba7f76b6effb82ddce70d2bb227f4e25b1f69 Cr-Commit-Position: refs/heads/master@{#387366}

Patch Set 1 #

Patch Set 2 : Docs #

Total comments: 2

Patch Set 3 : const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -49 lines) Patch
M tools/gn/binary_target_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/binary_target_generator.cc View 3 chunks +28 lines, -0 lines 0 comments Download
M tools/gn/docs/reference.md View 1 9 chunks +74 lines, -13 lines 0 comments Download
M tools/gn/example/build/toolchain/BUILD.gn View 3 chunks +10 lines, -4 lines 0 comments Download
M tools/gn/function_toolchain.cc View 8 chunks +42 lines, -13 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 11 chunks +27 lines, -16 lines 0 comments Download
M tools/gn/substitution_type.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/substitution_type.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/substitution_writer.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M tools/gn/substitution_writer_unittest.cc View 1 chunk +42 lines, -0 lines 0 comments Download
M tools/gn/target.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M tools/gn/tool.h View 2 chunks +9 lines, -0 lines 0 comments Download
M tools/gn/variables.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 1 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
brettw
4 years, 8 months ago (2016-04-13 21:22:06 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1887533003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1887533003/20001
4 years, 8 months ago (2016-04-13 21:22:46 UTC) #4
brettw
See https://codereview.chromium.org/1882973002 for the Posix implementation for the toolchain. That will have to be landed ...
4 years, 8 months ago (2016-04-13 21:25:44 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 22:04:38 UTC) #7
Dirk Pranke
lgtm, though I didn't stare at this too closely.
4 years, 8 months ago (2016-04-14 01:38:40 UTC) #9
Robert Sesek
LGTM https://codereview.chromium.org/1887533003/diff/20001/tools/gn/target.h File tools/gn/target.h (right): https://codereview.chromium.org/1887533003/diff/20001/tools/gn/target.h#newcode106 tools/gn/target.h:106: SourceDir output_dir() const { return output_dir_; } Looks ...
4 years, 8 months ago (2016-04-14 17:23:20 UTC) #10
brettw
const
4 years, 8 months ago (2016-04-14 17:26:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1887533003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1887533003/40001
4 years, 8 months ago (2016-04-14 17:26:57 UTC) #14
brettw
https://codereview.chromium.org/1887533003/diff/20001/tools/gn/target.h File tools/gn/target.h (right): https://codereview.chromium.org/1887533003/diff/20001/tools/gn/target.h#newcode106 tools/gn/target.h:106: SourceDir output_dir() const { return output_dir_; } On 2016/04/14 ...
4 years, 8 months ago (2016-04-14 17:27:47 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-14 18:14:56 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 18:16:43 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f2eba7f76b6effb82ddce70d2bb227f4e25b1f69
Cr-Commit-Position: refs/heads/master@{#387366}

Powered by Google App Engine
This is Rietveld 408576698