From 86c7aa6f516bf6ed000f3eef26748997d6677c14 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Sep 2021 13:06:39 +0200 Subject: Separate target list creation from task list creation. --- src/tasks.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/tasks.h') diff --git a/src/tasks.h b/src/tasks.h index 119c7d6..04610e6 100644 --- a/src/tasks.h +++ b/src/tasks.h @@ -4,15 +4,21 @@ #include #include #include +#include #include "task.h" class BuildConfiguration; class Settings; -std::list> taskFactory(const BuildConfiguration& config, - const Settings& settings, - const std::string& sourceDir); +struct Target +{ + BuildConfiguration config; + std::string path; +}; + +const std::deque& getTargets(const Settings& settings); + std::shared_ptr getNextTask(const std::list>& allTasks, std::list>& dirtyTasks); std::list> getTasks(const Settings& settings); -- cgit v1.2.3