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

Issue 264773014: Add get_target_gen_path function (Closed)

Created:
6 years, 7 months ago by cjhopman
Modified:
6 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina, gn-dev_chromium.org
Visibility:
Public.

Description

Add get_target_gen_path function This function is used to generate a path in a target's target_gen_dir based on that target_name. This provides a way to essentially get the path to an output of a target in the context of another target based on the first target's name. Then, users (of a template, for instance) are not required to know about and explicitly construct these paths themselves and can deal with just target names. See http://crrev.com/269943005 for an example of using this across multiple targets (i.e. where one target finds the output of another). BUG=359249

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -0 lines) Patch
M tools/gn/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A tools/gn/function_get_target_gen_path.cc View 1 chunk +139 lines, -0 lines 0 comments Download
A tools/gn/function_get_target_gen_path_unittest.cc View 1 chunk +156 lines, -0 lines 0 comments Download
M tools/gn/functions.h View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/functions.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
cjhopman
brettw: *
6 years, 7 months ago (2014-05-05 20:38:47 UTC) #1
cjhopman
ping. This is similar to get_target_outputs that was recently added but is particularly intended to ...
6 years, 7 months ago (2014-05-07 21:12:30 UTC) #2
brettw
6 years, 7 months ago (2014-05-08 16:19:57 UTC) #3
Sorry I forgot about this, looking now.

Powered by Google App Engine
This is Rietveld 408576698