// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #pragma once #include "task.h" #include #include #include #include class TaskFn : public Task { public: TaskFn(const ctor::build_configuration& config, const ctor::settings& settings, const std::string& sourceDir, const ctor::source& source); virtual ~TaskFn() = 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; std::string toJSON() const override; std::string source() const override; protected: std::filesystem::path sourceFile; std::filesystem::path _targetFile; const ctor::build_configuration& config; const ctor::settings& settings; std::filesystem::path sourceDir; };