diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 09:20:20 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-30 14:44:30 (GMT) |
commit | 8a46a07c8bd2fddde5e4db797279e21a5575e213 (patch) | |
tree | 42e8e638cf21fd6592589fc1318e223c90137f0e /Source/cmGlobalNinjaGenerator.cxx | |
parent | 15c644437ae355ac196cfcfe1e874d8280451b43 (diff) | |
download | CMake-8a46a07c8bd2fddde5e4db797279e21a5575e213.zip CMake-8a46a07c8bd2fddde5e4db797279e21a5575e213.tar.gz CMake-8a46a07c8bd2fddde5e4db797279e21a5575e213.tar.bz2 |
Ninja: Make WriteMacOSXContentBuild use cmNinjaBuild internally
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index c362dc6..94c7659 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -307,20 +307,16 @@ void cmGlobalNinjaGenerator::AddMacOSXContentRule() this->AddRule(rule); } -void cmGlobalNinjaGenerator::WriteMacOSXContentBuild(const std::string& input, - const std::string& output) +void cmGlobalNinjaGenerator::WriteMacOSXContentBuild(std::string input, + std::string output) { this->AddMacOSXContentRule(); - - cmNinjaDeps outputs; - outputs.push_back(output); - cmNinjaDeps deps; - deps.push_back(input); - cmNinjaVars vars; - - this->WriteBuild(*this->BuildFileStream, "", "COPY_OSX_CONTENT", outputs, - /*implicitOuts=*/cmNinjaDeps(), deps, cmNinjaDeps(), - cmNinjaDeps(), cmNinjaVars()); + { + cmNinjaBuild build("COPY_OSX_CONTENT"); + build.Outputs.push_back(std::move(output)); + build.ExplicitDeps.push_back(std::move(input)); + this->WriteBuild(*this->BuildFileStream, build); + } } void cmGlobalNinjaGenerator::WriteRule(std::ostream& os, |