summaryrefslogtreecommitdiff
path: root/libcppbuild.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 21:13:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 21:13:39 +0200
commitf834093a8904a076f248d0f7034b66bbe0a5087f (patch)
tree2b4deb11ecadc54c74fcd6c0ad03c1616e3d2bf6 /libcppbuild.h
parentc21a9c55382b930ffeea5042aa7e0dd48b453c4a (diff)
Add configure checks for programs and be more consistent with the use of the phrases build and host systems (inspired by autotools).
Diffstat (limited to 'libcppbuild.h')
-rw-r--r--libcppbuild.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libcppbuild.h b/libcppbuild.h
index 9ea3fb1..d0a0080 100644
--- a/libcppbuild.h
+++ b/libcppbuild.h
@@ -26,15 +26,15 @@ enum class Language
enum class OutputSystem
{
- Target, // Output for the target system
- BuildHost, // Internal tool during cross-compilation
+ Host, // Output for the target system
+ Build, // Internal tool during cross-compilation
};
struct BuildConfiguration
{
TargetType type{TargetType::Auto};
Language language{Language::Auto};
- OutputSystem system{OutputSystem::Target};
+ OutputSystem system{OutputSystem::Host};
std::string target;
std::vector<std::string> sources; // source list
std::vector<std::string> depends; // internal dependencies
@@ -59,15 +59,15 @@ 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_cxx = "host-cpp";
constexpr auto host_ar = "host-ar";
constexpr auto host_ld = "host-ld";
+
+constexpr auto build_cc = "build-cc";
+constexpr auto build_cxx = "build-cpp";
+constexpr auto build_ar = "build-ar";
+constexpr auto build_ld = "build-ld";
}
const std::map<std::string, std::string>& configuration();