From 1484d74c1dfd24cfe5b6f13f76d58ff395e4d253 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 10 Jan 2023 16:00:36 +0100 Subject: Put ctor.h contents in ctor namespace. --- src/tasks.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/tasks.h') 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& getTargets(const Settings& settings, +const std::deque& 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 getNextTask(const std::set>& allTask //! Get list of tasks filtered by name including each of their direct //! dependency tasks (ie. objects tasks from their sources). -std::set> getTasks(const Settings& settings, +std::set> getTasks(const ctor::Settings& settings, const std::vector 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> taskFactory(const BuildConfiguration& config, - const Settings& settings, +std::set> taskFactory(const ctor::BuildConfiguration& config, + const ctor::Settings& settings, const std::string& sourceDir); -- cgit v1.2.3