From dafd592cf44c184f9d24e2216bbed5c23e4b23c2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 7 Jun 2022 18:06:57 +0200 Subject: Refactor the way task names are looked up. --- src/task_so.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/task_so.h') diff --git a/src/task_so.h b/src/task_so.h index abd43c4..fe5d2fd 100644 --- a/src/task_so.h +++ b/src/task_so.h @@ -21,7 +21,7 @@ public: const Settings& settings, const std::string& target, const std::vector& objects, - const std::string& sourcePath); + const std::string& sourceDir); virtual ~TaskSO() = default; bool dirtyInner() override; @@ -32,6 +32,8 @@ public: std::vector depends() const override; std::string target() const override; + std::filesystem::path targetFile() const override; + bool derived() const override; private: @@ -39,9 +41,10 @@ private: std::vector objectFiles; std::vector depFiles; - std::filesystem::path targetFile; + std::filesystem::path _targetFile; std::filesystem::path flagsFile; const BuildConfiguration& config; const Settings& settings; + std::string sourceDir; }; -- cgit v1.2.3