diff options
Diffstat (limited to 'src/tasks.h')
-rw-r--r-- | src/tasks.h | 12 |
1 files changed, 9 insertions, 3 deletions
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 <string> #include <list> #include <memory> +#include <deque> #include "task.h" class BuildConfiguration; class Settings; -std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config, - const Settings& settings, - const std::string& sourceDir); +struct Target +{ + BuildConfiguration config; + std::string path; +}; + +const std::deque<Target>& getTargets(const Settings& settings); + std::shared_ptr<Task> getNextTask(const std::list<std::shared_ptr<Task>>& allTasks, std::list<std::shared_ptr<Task>>& dirtyTasks); std::list<std::shared_ptr<Task>> getTasks(const Settings& settings); |