OLD | NEW |
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_CONFIG_VALUES_GENERATOR_H_ | 5 #ifndef TOOLS_GN_CONFIG_VALUES_GENERATOR_H_ |
6 #define TOOLS_GN_CONFIG_VALUES_GENERATOR_H_ | 6 #define TOOLS_GN_CONFIG_VALUES_GENERATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "tools/gn/source_dir.h" | 12 #include "tools/gn/source_dir.h" |
13 | 13 |
14 class ConfigValues; | 14 class ConfigValues; |
15 class Err; | 15 class Err; |
16 class Scope; | 16 class Scope; |
17 class Token; | 17 class Token; |
18 | 18 |
19 class ConfigValuesGenerator { | 19 class ConfigValuesGenerator { |
20 public: | 20 public: |
21 ConfigValuesGenerator(ConfigValues* dest_values, | 21 ConfigValuesGenerator(ConfigValues* dest_values, |
22 const Scope* scope, | 22 Scope* scope, |
23 const Token& function_token, | 23 const Token& function_token, |
24 const SourceDir& input_dir, | 24 const SourceDir& input_dir, |
25 Err* err); | 25 Err* err); |
26 ~ConfigValuesGenerator(); | 26 ~ConfigValuesGenerator(); |
27 | 27 |
28 // Sets the error passed to the constructor on failure. | 28 // Sets the error passed to the constructor on failure. |
29 void Run(); | 29 void Run(); |
30 | 30 |
31 private: | 31 private: |
32 void FillDefines(); | |
33 void FillIncludes(); | 32 void FillIncludes(); |
34 void FillCflags(); | |
35 void FillCflags_C(); | |
36 void FillCflags_CC(); | |
37 void FillLdflags(); | |
38 | 33 |
39 ConfigValues* config_values_; | 34 ConfigValues* config_values_; |
40 const Scope* scope_; | 35 Scope* scope_; |
41 const Token& function_token_; | 36 const Token& function_token_; |
42 const SourceDir input_dir_; | 37 const SourceDir input_dir_; |
43 Err* err_; | 38 Err* err_; |
44 | 39 |
45 DISALLOW_COPY_AND_ASSIGN(ConfigValuesGenerator); | 40 DISALLOW_COPY_AND_ASSIGN(ConfigValuesGenerator); |
46 }; | 41 }; |
47 | 42 |
48 #endif // TOOLS_GN_CONFIG_VALUES_GENERATOR_H_ | 43 #endif // TOOLS_GN_CONFIG_VALUES_GENERATOR_H_ |
OLD | NEW |