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

Unified Diff: tools/gn/args.cc

Issue 149163005: Work on GN iOS build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/args.h ('k') | tools/gn/command_gyp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/args.cc
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
index 795c1495669c0f444b5dd32670059fdfdea97a75..ca55b3d19cc2274a495737eb3770e7bd59dac226 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -79,6 +79,14 @@ void Args::AddArgOverrides(const Scope::KeyValueMap& overrides) {
}
}
+const Value* Args::GetArgOverride(const char* name) const {
+ Scope::KeyValueMap::const_iterator found =
+ all_overrides_.find(base::StringPiece(name));
+ if (found == all_overrides_.end())
+ return NULL;
+ return &found->second;
+}
+
void Args::SetupRootScope(Scope* dest,
const Scope::KeyValueMap& toolchain_overrides) const {
SetSystemVars(dest);
@@ -235,7 +243,6 @@ void Args::SetSystemVars(Scope* dest) const {
dest->MarkUsed(variables::kOs);
}
-
void Args::ApplyOverrides(const Scope::KeyValueMap& values,
Scope* scope) const {
for (Scope::KeyValueMap::const_iterator i = values.begin();
« no previous file with comments | « tools/gn/args.h ('k') | tools/gn/command_gyp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698