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

Side by Side Diff: tools/gn/args.h

Issue 149163005: Work on GN iOS build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/gyp_chromium ('k') | tools/gn/args.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_ARGS_H_ 5 #ifndef TOOLS_GN_ARGS_H_
6 #define TOOLS_GN_ARGS_H_ 6 #define TOOLS_GN_ARGS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 Args(); 25 Args();
26 Args(const Args& other); 26 Args(const Args& other);
27 ~Args(); 27 ~Args();
28 28
29 // Specifies overrides of the build arguments. These are normally specified 29 // Specifies overrides of the build arguments. These are normally specified
30 // on the command line. 30 // on the command line.
31 void AddArgOverride(const char* name, const Value& value); 31 void AddArgOverride(const char* name, const Value& value);
32 void AddArgOverrides(const Scope::KeyValueMap& overrides); 32 void AddArgOverrides(const Scope::KeyValueMap& overrides);
33 33
34 // Returns the value corresponding to the given argument name, or NULL if no
35 // argument is set.
36 const Value* GetArgOverride(const char* name) const;
37
34 // Sets up the root scope for a toolchain. This applies the default system 38 // Sets up the root scope for a toolchain. This applies the default system
35 // flags, then any overrides stored in this object, then applies any 39 // flags, then any overrides stored in this object, then applies any
36 // toolchain overrides specified in the argument. 40 // toolchain overrides specified in the argument.
37 void SetupRootScope(Scope* dest, 41 void SetupRootScope(Scope* dest,
38 const Scope::KeyValueMap& toolchain_overrides) const; 42 const Scope::KeyValueMap& toolchain_overrides) const;
39 43
40 // Sets up the given scope with arguments passed in. 44 // Sets up the given scope with arguments passed in.
41 // 45 //
42 // If the values specified in the args are not already set, the values in 46 // If the values specified in the args are not already set, the values in
43 // the args list will be used (which are assumed to be the defaults), but 47 // the args list will be used (which are assumed to be the defaults), but
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 mutable Scope::KeyValueMap all_overrides_; 85 mutable Scope::KeyValueMap all_overrides_;
82 86
83 // Tracks all variables declared in any buildfile. This is so we can see if 87 // Tracks all variables declared in any buildfile. This is so we can see if
84 // the user set variables on the command line that are not used anywhere. 88 // the user set variables on the command line that are not used anywhere.
85 mutable Scope::KeyValueMap declared_arguments_; 89 mutable Scope::KeyValueMap declared_arguments_;
86 90
87 Args& operator=(const Args& other); // Disallow assignment. 91 Args& operator=(const Args& other); // Disallow assignment.
88 }; 92 };
89 93
90 #endif // TOOLS_GN_ARGS_H_ 94 #endif // TOOLS_GN_ARGS_H_
OLDNEW
« no previous file with comments | « build/gyp_chromium ('k') | tools/gn/args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698