MCPcopy Create free account
hub / github.com/Kitware/CMake / CopyResourcePlistFile

Method CopyResourcePlistFile

Source/CPack/cmCPackPKGGenerator.cxx:429–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429bool cmCPackPKGGenerator::CopyResourcePlistFile(std::string const& name,
430 char const* outName)
431{
432 if (!outName) {
433 outName = name.c_str();
434 }
435
436 std::string inFName = cmStrCat("CPack.", name, ".in");
437 std::string inFileName = this->FindTemplate(inFName);
438 if (inFileName.empty()) {
439 cmCPackLogger(cmCPackLog::LOG_ERROR,
440 "Cannot find input file: " << inFName << std::endl);
441 return false;
442 }
443
444 std::string destFileName =
445 cmStrCat(this->GetOption("CPACK_TOPLEVEL_DIRECTORY"), '/', outName);
446
447 cmCPackLogger(cmCPackLog::LOG_VERBOSE,
448 "Configure file: " << inFileName << " to " << destFileName
449 << std::endl);
450 this->ConfigureFile(inFileName, destFileName);
451 return true;
452}
453
454int cmCPackPKGGenerator::CopyInstallScript(std::string const& resdir,
455 std::string const& script,

Callers

nothing calls this directly

Calls 6

c_strMethod · 0.80
FindTemplateMethod · 0.80
cmStrCatFunction · 0.50
emptyMethod · 0.45
GetOptionMethod · 0.45
ConfigureFileMethod · 0.45

Tested by

no test coverage detected