From f6bcdf67b1b981592825d6a6a1c4d3ff122de553 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 20 Dec 2025 15:43:47 +0100 Subject: WIP --- src/ctor.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index 27b30af..0dcf56b 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -218,6 +218,11 @@ using GeneratorCb = std::function; +using GeneratorCb2 = std::function& input, + const std::string& output, + const ctor::build_configuration& config, + const ctor::settings& settings)>; + struct build_configuration { std::string name; // Name - used for referring in other configurations. @@ -228,7 +233,9 @@ struct build_configuration std::vector depends; // internal target dependencies ctor::flags flags; std::vector externals; // externals used by this configuration - GeneratorCb function; + std::variant function; }; using build_configurations = std::vector; -- cgit v1.2.3