// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #pragma once #include "task.h" #include #include #include #include class TaskCC : public Task { public: TaskCC(const ctor::build_configuration& config, const ctor::settings& settings, const std::string& sourceDir, const ctor::source& source); virtual ~TaskCC() = default; int registerDepTasksInner(const std::set>& tasks) override; std::string name() const override; 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::vector flags() const; std::string flagsString() const; std::vector getCompilerArgs() const; std::filesystem::path sourceFile; std::filesystem::path _targetFile; std::filesystem::path depsFile; std::filesystem::path flagsFile; const ctor::build_configuration& config; const ctor::settings& settings; std::filesystem::path sourceDir; const ctor::source& _source; };