diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-10 16:00:36 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:13:24 +0100 |
commit | 1484d74c1dfd24cfe5b6f13f76d58ff395e4d253 (patch) | |
tree | 2f71f2aa6d6dd29eda51924f985de7f9caee78c0 /src/tasks.h | |
parent | f31661d392c1332ceb0edcbc9fd35f4cb49bb50d (diff) |
Put ctor.h contents in ctor namespace.
Diffstat (limited to 'src/tasks.h')
-rw-r--r-- | src/tasks.h | 13 |
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); |