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

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

Issue 21114002: Add initial prototype for the GN meta-buildsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add owners and readme Created 7 years, 4 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 | « tools/gn/commands.h ('k') | tools/gn/config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef TOOLS_GN_CONFIG_H_
6 #define TOOLS_GN_CONFIG_H_
7
8 #include "base/compiler_specific.h"
9 #include "tools/gn/config_values.h"
10 #include "tools/gn/item.h"
11
12 class Err;
13 class ItemTree;
14 class LocationRange;
15 class Settings;
16
17 // Represents a named config in the dependency graph.
18 class Config : public Item {
19 public:
20 Config(const Label& label);
21 virtual ~Config();
22
23 virtual Config* AsConfig() OVERRIDE;
24 virtual const Config* AsConfig() const OVERRIDE;
25
26 ConfigValues& config_values() { return config_values_; }
27 const ConfigValues& config_values() const { return config_values_; }
28
29 // Gets or creates a config.
30 //
31 // This is like the TargetManager is for Targets, but Configs are so much
32 // simpler that this one function is all we need.
33 static Config* GetConfig(const Settings* settings,
34 const LocationRange& specified_from_here,
35 const Label& label,
36 Item* dep_from,
37 Err* err);
38
39 private:
40 ConfigValues config_values_;
41
42 DISALLOW_COPY_AND_ASSIGN(Config);
43 };
44
45 #endif // TOOLS_GN_CONFIG_H_
OLDNEW
« no previous file with comments | « tools/gn/commands.h ('k') | tools/gn/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698