diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-12-20 15:43:47 +0100 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-12-20 15:43:47 +0100 |
| commit | f6bcdf67b1b981592825d6a6a1c4d3ff122de553 (patch) | |
| tree | 174c30fb550768ec017b209b5215c66828358279 /src/ctor.h | |
| parent | 7b6b7df83870c81a3f45107701ddbe52b83f91ab (diff) | |
Diffstat (limited to 'src/ctor.h')
| -rw-r--r-- | src/ctor.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -218,6 +218,11 @@ using GeneratorCb = std::function<int(const std::string& input, const build_configuration& config, const ctor::settings& settings)>; +using GeneratorCb2 = std::function<int(const std::vector<std::string>& 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<std::string> depends; // internal target dependencies ctor::flags flags; std::vector<std::string> externals; // externals used by this configuration - GeneratorCb function; + std::variant<std::monostate, + GeneratorCb, + GeneratorCb2> function; }; using build_configurations = std::vector<build_configuration>; |
