cmMakefile: Consify custom command API.
This commit is contained in:
parent
d6d4eaac06
commit
c6c0bd9d2f
|
@ -64,7 +64,7 @@ cmCustomCommand& cmCustomCommand::operator=(cmCustomCommand const& r)
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmCustomCommand::cmCustomCommand(cmMakefile* mf,
|
cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
|
||||||
const std::vector<std::string>& outputs,
|
const std::vector<std::string>& outputs,
|
||||||
const std::vector<std::string>& depends,
|
const std::vector<std::string>& depends,
|
||||||
const cmCustomCommandLines& commandLines,
|
const cmCustomCommandLines& commandLines,
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
cmCustomCommand& operator=(cmCustomCommand const& r);
|
cmCustomCommand& operator=(cmCustomCommand const& r);
|
||||||
|
|
||||||
/** Main constructor specifies all information for the command. */
|
/** Main constructor specifies all information for the command. */
|
||||||
cmCustomCommand(cmMakefile* mf,
|
cmCustomCommand(cmMakefile const* mf,
|
||||||
const std::vector<std::string>& outputs,
|
const std::vector<std::string>& outputs,
|
||||||
const std::vector<std::string>& depends,
|
const std::vector<std::string>& depends,
|
||||||
const cmCustomCommandLines& commandLines,
|
const cmCustomCommandLines& commandLines,
|
||||||
|
|
|
@ -884,7 +884,7 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
|
||||||
cmTarget::CustomCommandType type,
|
cmTarget::CustomCommandType type,
|
||||||
const char* comment,
|
const char* comment,
|
||||||
const char* workingDir,
|
const char* workingDir,
|
||||||
bool escapeOldStyle)
|
bool escapeOldStyle) const
|
||||||
{
|
{
|
||||||
// Find the target to which to add the custom command.
|
// Find the target to which to add the custom command.
|
||||||
cmTargets::iterator ti = this->Targets.find(target);
|
cmTargets::iterator ti = this->Targets.find(target);
|
||||||
|
|
|
@ -173,7 +173,7 @@ public:
|
||||||
const cmCustomCommandLines& commandLines,
|
const cmCustomCommandLines& commandLines,
|
||||||
cmTarget::CustomCommandType type,
|
cmTarget::CustomCommandType type,
|
||||||
const char* comment, const char* workingDir,
|
const char* comment, const char* workingDir,
|
||||||
bool escapeOldStyle = true);
|
bool escapeOldStyle = true) const;
|
||||||
cmSourceFile* AddCustomCommandToOutput(
|
cmSourceFile* AddCustomCommandToOutput(
|
||||||
const std::vector<std::string>& outputs,
|
const std::vector<std::string>& outputs,
|
||||||
const std::vector<std::string>& depends,
|
const std::vector<std::string>& depends,
|
||||||
|
|
Loading…
Reference in New Issue