From 7a16146600384272baf7fb2fc0fc64f59b17ffe9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 8 Jun 2022 17:38:01 +0200 Subject: Function target type including support for generated sources. --- src/libctor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libctor.h') diff --git a/src/libctor.h b/src/libctor.h index b539910..14fdf1d 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -9,6 +9,7 @@ #include #include #include +#include enum class TargetType { @@ -20,6 +21,7 @@ enum class TargetType Object, UnitTest, UnitTestLib, + Function, }; enum class Language @@ -69,6 +71,12 @@ struct Settings int verbose{0}; // -1: completely silent, 0: normal, 1: verbose, ... }; +struct BuildConfiguration; +using GeneratorCb = std::function; + struct BuildConfiguration { std::string name; // Name - used for referring in other configurations. @@ -79,6 +87,7 @@ struct BuildConfiguration std::vector depends; // internal target dependencies Flags flags; std::vector externals; // externals used by this configuration + GeneratorCb function; }; using BuildConfigurations = std::vector; -- cgit v1.2.3