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

Method PackageFiles

Source/CPack/cmCPackRPMGenerator.cxx:419–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419int cmCPackRPMGenerator::PackageFiles()
420{
421 cmCPackLogger(cmCPackLog::LOG_DEBUG,
422 "Toplevel: " << this->toplevel << std::endl);
423
424 /* Are we in the component packaging case */
425 if (this->WantsComponentInstallation()) {
426 // CASE 1 : COMPONENT ALL-IN-ONE package
427 // If ALL COMPONENTS in ONE package has been requested
428 // then the package file is unique and should be open here.
429 if (this->componentPackageMethod == ONE_PACKAGE) {
430 return this->PackageComponentsAllInOne("ALL_COMPONENTS_IN_ONE");
431 }
432 // CASE 2 : COMPONENT CLASSICAL package(s) (i.e. not all-in-one)
433 // There will be 1 package for each component group
434 // however one may require to ignore component group and
435 // in this case you'll get 1 package for each component.
436 return this->PackageComponents(this->componentPackageMethod ==
437 ONE_PACKAGE_PER_COMPONENT);
438 }
439 // CASE 3 : NON COMPONENT package.
440 return this->PackageComponentsAllInOne("");
441}
442
443bool cmCPackRPMGenerator::SupportsComponentInstallation() const
444{

Callers

nothing calls this directly

Calls 3

PackageComponentsMethod · 0.95

Tested by

no test coverage detected