/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file LICENSE.rst or https://cmake.org/licensing for details. */ #include #include #include #include "cmRule.h" class cmMakefile; cmCustomRule::cmCustomRule(cmMakefile& makefile, std::string name, CustomCommands commands, std::vector outputs, cm::RuleScope scope) : cmRule(makefile, name, scope) , Commands(std::move(commands)) , Outputs(std::move(outputs)) { } cmCustomRule::CustomCommands const& cmCustomRule::GetCommands() const { return this->Commands; } std::vector const& cmCustomRule::GetOutputs() const { return this->Outputs; } void cmCustomRule::SetByproducts(std::vector byproducts) { this->Byproducts = std::move(byproducts); } std::vector const& cmCustomRule::GetByproducts() const { return this->Byproducts; } void cmCustomRule::SetDepends(std::vector depends) { this->Depends = std::move(depends); } std::vector const& cmCustomRule::GetDepends() const { return this->Depends; } void cmCustomRule::SetDepfile(std::string depfile) { this->Depfile = std::move(depfile); } std::string const& cmCustomRule::GetDepfile() const { return this->Depfile; }