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

Unified Diff: tools/gn/functions.cc

Issue 46313003: Implement target visibility in GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/gn.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index 393672c2c51a301ffd402a4b741ffc65baf38575..ac1c29492d15be5817f560f9ba02066c1dc99f0e 100644
--- a/tools/gn/functions.cc
+++ b/tools/gn/functions.cc
@@ -233,6 +233,8 @@ Value RunConfig(const FunctionCallNode* function,
// Create the new config.
scoped_ptr<Config> config(new Config(scope->settings(), label));
config->set_defined_from(function);
+ if (!Visibility::FillItemVisibility(config.get(), scope, err))
+ return Value();
// Fill it.
const SourceDir& input_dir = scope->GetSourceDir();
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/gn.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698