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

Issue 2387763002: Support for source_target_relative expansion in GN (Closed)

Created:
4 years, 2 months ago by Petr Hosek
Modified:
4 years ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support for source_target_relative expansion in GN This can be used to get a path to the source file relative to the target's directory. Committed: https://crrev.com/7d88638248b10cec98364cf561f268cbed62587e Cr-Commit-Position: refs/heads/master@{#439541}

Patch Set 1 #

Patch Set 2 : Reimplemented as source_target_relative #

Total comments: 12

Patch Set 3 : Code review comments addressed #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -25 lines) Patch
M tools/gn/action_values.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/bundle_file_rule.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/desc_builder.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M tools/gn/function_process_file_template.cc View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M tools/gn/ninja_action_target_writer.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M tools/gn/ninja_copy_target_writer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/substitution_type.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/substitution_type.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M tools/gn/substitution_writer.h View 1 2 6 chunks +25 lines, -0 lines 0 comments Download
M tools/gn/substitution_writer.cc View 1 2 3 9 chunks +43 lines, -11 lines 0 comments Download
M tools/gn/substitution_writer_unittest.cc View 1 6 chunks +17 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Petr Hosek
We already discussed this briefly with Brett over IM. The primary use case is the ...
4 years, 2 months ago (2016-09-30 19:10:20 UTC) #3
brettw
Does this work? In looking at the structure everything has been converted to SourceFile's by ...
4 years, 2 months ago (2016-09-30 21:06:18 UTC) #4
Petr Hosek
On 2016/09/30 21:06:18, brettw (ping on IM after 24h) wrote: > Does this work? In ...
4 years, 2 months ago (2016-10-05 16:51:23 UTC) #7
brettw
This looks great, just some minor tweaks. https://codereview.chromium.org/2387763002/diff/20001/tools/gn/function_process_file_template.cc File tools/gn/function_process_file_template.cc (right): https://codereview.chromium.org/2387763002/diff/20001/tools/gn/function_process_file_template.cc#newcode94 tools/gn/function_process_file_template.cc:94: Here can ...
4 years, 2 months ago (2016-10-05 19:47:50 UTC) #8
Petr Hosek
https://codereview.chromium.org/2387763002/diff/20001/tools/gn/function_process_file_template.cc File tools/gn/function_process_file_template.cc (right): https://codereview.chromium.org/2387763002/diff/20001/tools/gn/function_process_file_template.cc#newcode94 tools/gn/function_process_file_template.cc:94: On 2016/10/05 19:47:50, brettw (ping on IM after 24h) ...
4 years, 2 months ago (2016-10-11 00:59:50 UTC) #10
brettw
lgtm
4 years, 2 months ago (2016-10-11 22:35:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2387763002/60001
4 years ago (2016-12-19 20:25:47 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-19 20:39:20 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-19 20:41:09 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7d88638248b10cec98364cf561f268cbed62587e
Cr-Commit-Position: refs/heads/master@{#439541}

Powered by Google App Engine
This is Rietveld 408576698