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