// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #pragma once #include "task.h" #include #include #include #include class TaskLD : public Task { public: TaskLD(const ctor::build_configuration& config, const ctor::settings& settings, const std::string& target, const std::vector& objects, const std::string& _sourceDir, bool is_self); virtual ~TaskLD() = default; bool dirtyInner() override; int runInner() override; int clean() override; std::vector depends() const override; std::string target() const override; std::filesystem::path targetFile() const override; bool derived() const override; private: std::string flagsString() const; std::vector objectFiles; std::vector depFiles; std::filesystem::path _targetFile; std::filesystem::path flagsFile; const ctor::build_configuration& config; const ctor::settings& settings; std::string sourceDir; bool is_self; };