summaryrefslogtreecommitdiff
path: root/src/libctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-23 18:46:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-06 10:21:43 +0200
commite9023132d506a9223d6c7c315a3cdf118effd30e (patch)
tree93e97fd0d04b0604d134918a1d194f2e282a3c03 /src/libctor.h
parent1523880f97eab00120c029d55bab47252f31f166 (diff)
Added support for manual externals (inherit flags and set include/lib paths from configure).
Diffstat (limited to 'src/libctor.h')
-rw-r--r--src/libctor.h10
1 files changed, 8 insertions, 2 deletions
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 <string>
#include <vector>
#include <map>
+#include <variant>
enum class TargetType
{
@@ -70,12 +71,17 @@ using BuildConfigurations = std::vector<BuildConfiguration>;
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<std::string> libs; // libraries
+ std::variant<ExternalManual> external;
};
using ExternalConfigurations = std::vector<ExternalConfiguration>;