Add ICU message format support
[chromium-blink-merge.git] / tools / gn / config_values_generator.h
blob4e58010eefda6a090311d6ed5650487eb4cfdd91
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.
5 #ifndef TOOLS_GN_CONFIG_VALUES_GENERATOR_H_
6 #define TOOLS_GN_CONFIG_VALUES_GENERATOR_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "tools/gn/source_dir.h"
14 class ConfigValues;
15 class Err;
16 class Scope;
17 class Token;
19 // This class fills in the config values from a given scope. It's shared
20 // between the "config" function call and all the different binary target types
21 // (shared library, static library, etc.) since all of these support the
22 // various flags stored in the ConfigValues class.
23 class ConfigValuesGenerator {
24 public:
25 ConfigValuesGenerator(ConfigValues* dest_values,
26 Scope* scope,
27 const SourceDir& input_dir,
28 Err* err);
29 ~ConfigValuesGenerator();
31 // Sets the error passed to the constructor on failure.
32 void Run();
34 private:
35 ConfigValues* config_values_;
36 Scope* scope_;
37 const SourceDir input_dir_;
38 Err* err_;
40 DISALLOW_COPY_AND_ASSIGN(ConfigValuesGenerator);
43 // For using in documentation for functions which use this.
44 #define CONFIG_VALUES_VARS_HELP \
45 " Flags: cflags, cflags_c, cflags_cc, cflags_objc, cflags_objcc,\n" \
46 " defines, include_dirs, ldflags, lib_dirs, libs\n" \
47 " precompiled_header, precompiled_source\n"
49 #endif // TOOLS_GN_CONFIG_VALUES_GENERATOR_H_