summaryrefslogtreecommitdiff
path: root/rebuild.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 07:37:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 07:37:08 +0200
commite4c0168e4e8834aea0cfe06b8b2fc8bd63f591bb (patch)
treeaa8060de3abd73dfbf89ed35d054fc470cf445ea /rebuild.h
parent68bf2848332fd15a2b6dfa49f3a58fccd899dbd7 (diff)
Split libcppbuild.cc into multiple files/modules.
Diffstat (limited to 'rebuild.h')
-rw-r--r--rebuild.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/rebuild.h b/rebuild.h
new file mode 100644
index 0000000..d7720c9
--- /dev/null
+++ b/rebuild.h
@@ -0,0 +1,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);