mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
#include "cmRule.h"
|
|
|
|
class cmMakefile;
|
|
|
|
cmCustomRule::cmCustomRule(cmMakefile& makefile, std::string name,
|
|
CustomCommands commands,
|
|
std::vector<std::string> 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<std::string> const& cmCustomRule::GetOutputs() const
|
|
{
|
|
return this->Outputs;
|
|
}
|
|
|
|
void cmCustomRule::SetByproducts(std::vector<std::string> byproducts)
|
|
{
|
|
this->Byproducts = std::move(byproducts);
|
|
}
|
|
std::vector<std::string> const& cmCustomRule::GetByproducts() const
|
|
{
|
|
return this->Byproducts;
|
|
}
|
|
|
|
void cmCustomRule::SetDepends(std::vector<std::string> depends)
|
|
{
|
|
this->Depends = std::move(depends);
|
|
}
|
|
std::vector<std::string> 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;
|
|
}
|