blob: ff9cd03d692f328afa082608e30e241410ce347e [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gn/source_dir.h"
class ConfigValues;
class Err;
class Scope;
// This class fills in the config values from a given scope. It's shared
// between the "config" function call and all the different binary target types
// (shared library, static library, etc.) since all of these support the
// various flags stored in the ConfigValues class.
class ConfigValuesGenerator {
ConfigValuesGenerator(ConfigValues* dest_values,
Scope* scope,
const SourceDir& input_dir,
Err* err);
// Sets the error passed to the constructor on failure.
void Run();
ConfigValues* config_values_;
Scope* scope_;
const SourceDir input_dir_;
Err* err_;
ConfigValuesGenerator(const ConfigValuesGenerator&) = delete;
ConfigValuesGenerator& operator=(const ConfigValuesGenerator&) = delete;
// For using in documentation for functions which use this.
" Flags: asmflags, cflags, cflags_c, cflags_cc, cflags_objc,\n" \
" cflags_objcc, defines, include_dirs, inputs, ldflags,\n" \
" lib_dirs, libs, precompiled_header, precompiled_source,\n" \
" rustenv, rustflags, swiftflags, testonly\n"