diff options
Diffstat (limited to 'src/task_ld.h')
-rw-r--r-- | src/task_ld.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/task_ld.h b/src/task_ld.h index 516641f..dbe7db1 100644 --- a/src/task_ld.h +++ b/src/task_ld.h @@ -10,18 +10,16 @@ #include <future> #include <filesystem> -struct BuildConfiguration; -struct Settings; - class TaskLD : public Task { public: - TaskLD(const BuildConfiguration& config, - const Settings& settings, + TaskLD(const ctor::build_configuration& config, + const ctor::settings& settings, const std::string& target, const std::vector<std::string>& objects, - const std::string& sourcePath); + const std::string& _sourceDir); + virtual ~TaskLD() = default; bool dirtyInner() override; @@ -31,6 +29,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: @@ -38,9 +38,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; + const ctor::build_configuration& config; + const ctor::settings& settings; + std::string sourceDir; }; |