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

Issue 1868023002: Add GN output prefix override and allow empty output extensions. (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 GN output prefix override and allow empty output extensions. Previously setting the output extension to an empty string would give the default extension. This patch differentiates unset (default extension) from set-to-empty-string (which can now mean "no extension"). A flag is added to out-out of the target output prefix application for targets that don't want to have "lib" at the beginning on Posix systems. Even though the flag might more naturally be called "override_output_prefix" I called it "output_prefix_override" so that all of the output-name-related variables are called "output_....". Committed: https://crrev.com/2a642a10300c49bcd33b6246e16650cf61a42d3b Cr-Commit-Position: refs/heads/master@{#385927}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 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 2 chunks +13 lines, -0 lines 0 comments Download
M tools/gn/docs/reference.md View 5 chunks +63 lines, -5 lines 0 comments Download
M tools/gn/function_toolchain.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 1 chunk +3 lines, -9 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M tools/gn/substitution_writer.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M tools/gn/substitution_writer_unittest.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M tools/gn/target.h View 1 2 chunks +18 lines, -3 lines 0 comments Download
M tools/gn/target.cc View 1 4 chunks +12 lines, -10 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 1 chunk +10 lines, -8 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 3 chunks +33 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
brettw
4 years, 8 months ago (2016-04-07 21:08:51 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868023002/1
4 years, 8 months ago (2016-04-07 21:10:02 UTC) #5
Robert Sesek
LGTM. Thanks for doing this! https://codereview.chromium.org/1868023002/diff/1/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/1868023002/diff/1/tools/gn/target.cc#newcode363 tools/gn/target.cc:363: std::string Target::GetComputedOutputName(bool include_prefix) const ...
4 years, 8 months ago (2016-04-07 21:34:47 UTC) #6
Dirk Pranke
Do we want to explicitly allow (and test for) output_names that contain directories as part ...
4 years, 8 months ago (2016-04-07 21:43:54 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 21:50:00 UTC) #10
brettw
If we want to change the path thing, we would need to first update the ...
4 years, 8 months ago (2016-04-07 23:12:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868023002/20001
4 years, 8 months ago (2016-04-07 23:13:26 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-07 23:51:29 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 23:52:58 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2a642a10300c49bcd33b6246e16650cf61a42d3b
Cr-Commit-Position: refs/heads/master@{#385927}

Powered by Google App Engine
This is Rietveld 408576698