summaryrefslogtreecommitdiff
path: root/src/rebuild.h
blob: ae3e408440f97c5889b40d7791df62443f9dc120 (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
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#include <vector>
#include <array>

#include "libctor.h"

class Settings;

struct BuildConfigurationEntry
{
	const char* file;
	std::vector<BuildConfiguration> (*cb)();
};

struct ExternalConfigurationEntry
{
	const char* file;
	std::vector<ExternalConfiguration> (*cb)();
};

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, std::vector<BuildConfiguration> (*cb)());
int unreg(const char* location);

void recompileCheck(const Settings& settings, int argc, char* argv[],
                    bool force = false, bool relaunch_allowed = true);