blob: 6d0f6a87dc807def0259989011bf4bf332578a09 (
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
|
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once
#include <vector>
#include <array>
#include "ctor.h"
struct BuildConfigurationEntry
{
const char* file;
ctor::BuildConfigurations (*cb)(const ctor::Settings&);
};
struct ExternalConfigurationEntry
{
const char* file;
ctor::ExternalConfigurations (*cb)(const ctor::Settings&);
};
extern std::array<BuildConfigurationEntry, 1024> configFiles;
extern std::size_t numConfigFiles;
extern std::array<ExternalConfigurationEntry, 1024> externalConfigFiles;
extern std::size_t numExternalConfigFiles;
int reg(const char* location);
int unreg(const char* location);
//! Returns true of recompilation was needed.
bool recompileCheck(const ctor::Settings& settings, int argc, char* argv[],
bool relaunch_allowed = true);
|