// -*- c++ -*- // Distributed under the BSD 2-Clause License. // See accompanying file LICENSE for details. #pragma once #include "task.h" #include #include #include #include struct BuildConfiguration; struct Settings; class TaskCC : public Task { public: TaskCC(const BuildConfiguration& config, const Settings& settings, const std::string& sourceDir, const Source& source); std::string name() const override; bool dirtyInner() override; int runInner() override; int clean() override; std::vector depends() const override; std::string target() 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 BuildConfiguration& config; const Settings& settings; std::filesystem::path sourceDir; };