summaryrefslogtreecommitdiff
path: root/libcppbuild.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcppbuild.h')
-rw-r--r--libcppbuild.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libcppbuild.h b/libcppbuild.h
index 81e7a9e..9ea3fb1 100644
--- a/libcppbuild.h
+++ b/libcppbuild.h
@@ -54,6 +54,22 @@ int reg(const char* location, BuildConfigurations (*cb)());
#define UNIQUE_NAME(base) CONCAT(base, __LINE__)
#define REG(cb) namespace { int UNIQUE_NAME(unique) = reg(__FILE__, cb); }
+// Predefined configuration keys
+namespace cfg
+{
+constexpr auto builddir = "builddir";
+
+constexpr auto target_cc = "target-cc";
+constexpr auto target_cpp = "target-cpp";
+constexpr auto target_ar = "target-ar";
+constexpr auto target_ld = "target-ld";
+
+constexpr auto host_cc = "host-cc";
+constexpr auto host_cpp = "host-cpp";
+constexpr auto host_ar = "host-ar";
+constexpr auto host_ld = "host-ld";
+}
+
const std::map<std::string, std::string>& configuration();
bool hasConfiguration(const std::string& key);
const std::string& getConfiguration(const std::string& key,