summaryrefslogtreecommitdiff
path: root/src/tasks.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-12 13:06:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-12 13:09:32 +0200
commit86c7aa6f516bf6ed000f3eef26748997d6677c14 (patch)
treedad656b2b34b88a6279c42946f4a34aeaa1432c7 /src/tasks.h
parent5529b296834965afd9736b941aa2c094ff2f4648 (diff)
Separate target list creation from task list creation.
Diffstat (limited to 'src/tasks.h')
-rw-r--r--src/tasks.h12
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);