blob: 60124421a6f2a545828805ddf1de9ddfd58dde9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// file : build2/config/module -*- C++ -*-
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BUILD2_CONFIG_MODULE
#define BUILD2_CONFIG_MODULE
#include <butl/prefix-map>
#include <build2/types>
#include <build2/utility>
#include <build2/module>
#include <build2/variable>
namespace build2
{
namespace config
{
struct module: module_base
{
// A sorted list of config.* variables and flags (currently unused) that
// are used (as opposed to just specified) in this configuration.
// Populated by the config utility functions (required(), optional())
//
butl::prefix_map<variable_cref, uint64_t, '.'> vars;
static const string name;
};
extern "C" void
config_boot (scope&, const location&, unique_ptr<module_base>&);
extern "C" bool
config_init (
scope&, scope&, const location&, unique_ptr<module_base>&, bool, bool);
}
}
#endif // BUILD2_CONFIG_MODULE
|