summaryrefslogtreecommitdiff
path: root/rebuild.h
blob: d7720c94f42cdb5961f11f338382e68e4b6dbbd9 (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
// -*- c++ -*-
#pragma once

#include <vector>
#include <array>

#include "libcppbuild.h"

class Settings;

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

extern std::array<BuildConfigurationEntry, 1024> configFiles;
extern std::size_t numConfigFiles;

//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);