diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-06-07 18:06:57 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-06-09 22:20:31 +0200 |
commit | dafd592cf44c184f9d24e2216bbed5c23e4b23c2 (patch) | |
tree | e94ab4c49ec4486e3a8e91c04cbba73a221d54c7 /src/task_ar.h | |
parent | 80db51ae3f7d5fbfb52eee4505f615ea4edba62d (diff) |
Refactor the way task names are looked up.
Diffstat (limited to 'src/task_ar.h')
-rw-r--r-- | src/task_ar.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/task_ar.h b/src/task_ar.h index d021a2e..c76a852 100644 --- a/src/task_ar.h +++ b/src/task_ar.h @@ -21,7 +21,7 @@ public: const Settings& settings, const std::string& target, const std::vector<std::string>& objects, - const std::string& sourcePath); + const std::string& sourceDir); virtual ~TaskAR() = default; bool dirtyInner() override; @@ -32,6 +32,8 @@ public: std::vector<std::string> 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<std::filesystem::path> objectFiles; std::vector<std::filesystem::path> depFiles; - std::filesystem::path targetFile; + std::filesystem::path _targetFile; std::filesystem::path flagsFile; const BuildConfiguration& config; const Settings& settings; + std::string sourceDir; }; |