From e9023132d506a9223d6c7c315a3cdf118effd30e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 May 2022 18:46:13 +0200 Subject: Added support for manual externals (inherit flags and set include/lib paths from configure). --- src/libctor.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/libctor.h') diff --git a/src/libctor.h b/src/libctor.h index 0af33cb..721ac6a 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -7,6 +7,7 @@ #include #include #include +#include enum class TargetType { @@ -70,12 +71,17 @@ using BuildConfigurations = std::vector; int reg(BuildConfigurations (*cb)(), const std::source_location location = std::source_location::current()); +// This type will use flags verbatim +struct ExternalManual +{ + Flags flags; +}; + struct ExternalConfiguration { std::string name; // Name for configuration - Flags flags; - std::vector libs; // libraries + std::variant external; }; using ExternalConfigurations = std::vector; -- cgit v1.2.3