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/task.h | |
parent | f31661d392c1332ceb0edcbc9fd35f4cb49bb50d (diff) |
Put ctor.h contents in ctor namespace.
Diffstat (limited to 'src/task.h')
-rw-r--r-- | src/task.h | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -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; }; |