summaryrefslogtreecommitdiff
path: root/src/task.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-10 16:00:36 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 17:13:24 +0100
commit1484d74c1dfd24cfe5b6f13f76d58ff395e4d253 (patch)
tree2f71f2aa6d6dd29eda51924f985de7f9caee78c0 /src/task.h
parentf31661d392c1332ceb0edcbc9fd35f4cb49bb50d (diff)
Put ctor.h contents in ctor namespace.
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/task.h b/src/task.h
index 4efbfff..b4f37a5 100644
--- a/src/task.h
+++ b/src/task.h
@@ -21,12 +21,10 @@ enum class State
Error,
};
-struct Settings;
-
class Task
{
public:
- Task(const BuildConfiguration& config, const Settings& settings,
+ Task(const ctor::BuildConfiguration& config, const ctor::Settings& settings,
const std::string& sourceDir);
virtual ~Task() = default;
@@ -59,11 +57,11 @@ public:
//! Returns a reference to the originating build config.
//! Note: the build config of a derived task will be that of its parent
//! (target) task.
- const BuildConfiguration& buildConfig() const;
+ const ctor::BuildConfiguration& buildConfig() const;
- TargetType targetType() const;
- Language sourceLanguage() const;
- OutputSystem outputSystem() const;
+ ctor::TargetType targetType() const;
+ ctor::Language sourceLanguage() const;
+ ctor::OutputSystem outputSystem() const;
std::string compiler() const;
std::set<std::shared_ptr<Task>> getDependsTasks();
@@ -77,10 +75,10 @@ protected:
std::vector<std::string> dependsStr;
std::set<std::shared_ptr<Task>> dependsTasks;
- const BuildConfiguration& config;
- TargetType target_type{TargetType::Auto};
- Language source_language{Language::Auto};
- OutputSystem output_system{OutputSystem::Host};
- const Settings& settings;
+ const ctor::BuildConfiguration& config;
+ ctor::TargetType target_type{ctor::TargetType::Auto};
+ ctor::Language source_language{ctor::Language::Auto};
+ ctor::OutputSystem output_system{ctor::OutputSystem::Host};
+ const ctor::Settings& settings;
std::string sourceDir;
};