summaryrefslogtreecommitdiff
path: root/src/tasks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks.h')
-rw-r--r--src/tasks.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/tasks.h b/src/tasks.h
index 403a954..26cd757 100644
--- a/src/tasks.h
+++ b/src/tasks.h
@@ -10,17 +10,14 @@
#include "task.h"
-struct BuildConfiguration;
-struct Settings;
-
struct Target
{
- BuildConfiguration config;
+ ctor::BuildConfiguration config;
std::string path;
};
//! Get list of all registered targets
-const std::deque<Target>& getTargets(const Settings& settings,
+const std::deque<Target>& getTargets(const ctor::Settings& settings,
bool resolve_externals = true);
//! Returns next dirty task from the dirtyTasks list that has all its dependencies
@@ -32,12 +29,12 @@ std::shared_ptr<Task> getNextTask(const std::set<std::shared_ptr<Task>>& allTask
//! Get list of tasks filtered by name including each of their direct
//! dependency tasks (ie. objects tasks from their sources).
-std::set<std::shared_ptr<Task>> getTasks(const Settings& settings,
+std::set<std::shared_ptr<Task>> getTasks(const ctor::Settings& settings,
const std::vector<std::string> names = {},
bool resolve_externals = true);
//! Generate list of targets from a single configuration, including the final
//! link target and all its objects files (if any).
-std::set<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
- const Settings& settings,
+std::set<std::shared_ptr<Task>> taskFactory(const ctor::BuildConfiguration& config,
+ const ctor::Settings& settings,
const std::string& sourceDir);