mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Makefiles: Change signature of AppendCustomCommand
The RelativeRoot parameter will become non-default.
This commit is contained in:
parent
e0fd2d0446
commit
6960516b6b
@ -905,14 +905,14 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommands(
|
|||||||
for (std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
|
for (std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
|
||||||
i != ccs.end(); ++i) {
|
i != ccs.end(); ++i) {
|
||||||
cmCustomCommandGenerator ccg(*i, this->ConfigName, this);
|
cmCustomCommandGenerator ccg(*i, this->ConfigName, this);
|
||||||
this->AppendCustomCommand(commands, ccg, target, true, relative);
|
this->AppendCustomCommand(commands, ccg, target, relative, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
|
void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
|
||||||
std::vector<std::string>& commands, cmCustomCommandGenerator const& ccg,
|
std::vector<std::string>& commands, cmCustomCommandGenerator const& ccg,
|
||||||
cmGeneratorTarget* target, bool echo_comment,
|
cmGeneratorTarget* target, cmOutputConverter::RelativeRoot relative,
|
||||||
cmOutputConverter::RelativeRoot relative, std::ostream* content)
|
bool echo_comment, std::ostream* content)
|
||||||
{
|
{
|
||||||
// Optionally create a command to display the custom command's
|
// Optionally create a command to display the custom command's
|
||||||
// comment text. This is used for pre-build, pre-link, and
|
// comment text. This is used for pre-build, pre-link, and
|
||||||
|
@ -234,9 +234,9 @@ protected:
|
|||||||
cmOutputConverter::RelativeRoot relative = cmOutputConverter::HOME_OUTPUT);
|
cmOutputConverter::RelativeRoot relative = cmOutputConverter::HOME_OUTPUT);
|
||||||
void AppendCustomCommand(
|
void AppendCustomCommand(
|
||||||
std::vector<std::string>& commands, cmCustomCommandGenerator const& ccg,
|
std::vector<std::string>& commands, cmCustomCommandGenerator const& ccg,
|
||||||
cmGeneratorTarget* target, bool echo_comment = false,
|
cmGeneratorTarget* target,
|
||||||
cmOutputConverter::RelativeRoot relative = cmOutputConverter::HOME_OUTPUT,
|
cmOutputConverter::RelativeRoot relative = cmOutputConverter::HOME_OUTPUT,
|
||||||
std::ostream* content = CM_NULLPTR);
|
bool echo_comment = false, std::ostream* content = CM_NULLPTR);
|
||||||
void AppendCleanCommand(std::vector<std::string>& commands,
|
void AppendCleanCommand(std::vector<std::string>& commands,
|
||||||
const std::vector<std::string>& files,
|
const std::vector<std::string>& files,
|
||||||
cmGeneratorTarget* target,
|
cmGeneratorTarget* target,
|
||||||
|
@ -1094,8 +1094,8 @@ void cmMakefileTargetGenerator::GenerateCustomRuleFile(
|
|||||||
// Now append the actual user-specified commands.
|
// Now append the actual user-specified commands.
|
||||||
std::ostringstream content;
|
std::ostringstream content;
|
||||||
this->LocalGenerator->AppendCustomCommand(
|
this->LocalGenerator->AppendCustomCommand(
|
||||||
commands, ccg, this->GeneratorTarget, false,
|
commands, ccg, this->GeneratorTarget, cmOutputConverter::HOME_OUTPUT,
|
||||||
cmOutputConverter::HOME_OUTPUT, &content);
|
false, &content);
|
||||||
|
|
||||||
// Collect the dependencies.
|
// Collect the dependencies.
|
||||||
std::vector<std::string> depends;
|
std::vector<std::string> depends;
|
||||||
|
Loading…
Reference in New Issue
Block a user