CPS: Refactor argument parsing
CPS package metadata involves a fair amount of passing around a particular set of values, as well as shared argument handling, which is only going to increase as additional features are added. In order to reduce code duplication (now and going forward), create a helper class to handle the shared argument parsing and to serve as a container to pass metadata values.
Showing
- Source/CMakeLists.txt 2 additions, 0 deletionsSource/CMakeLists.txt
- Source/cmExportBuildPackageInfoGenerator.cxx 3 additions, 7 deletionsSource/cmExportBuildPackageInfoGenerator.cxx
- Source/cmExportBuildPackageInfoGenerator.h 2 additions, 5 deletionsSource/cmExportBuildPackageInfoGenerator.h
- Source/cmExportCommand.cxx 7 additions, 81 deletionsSource/cmExportCommand.cxx
- Source/cmExportInstallPackageInfoGenerator.cxx 3 additions, 8 deletionsSource/cmExportInstallPackageInfoGenerator.cxx
- Source/cmExportInstallPackageInfoGenerator.h 3 additions, 6 deletionsSource/cmExportInstallPackageInfoGenerator.h
- Source/cmExportPackageInfoGenerator.cxx 9 additions, 9 deletionsSource/cmExportPackageInfoGenerator.cxx
- Source/cmExportPackageInfoGenerator.h 4 additions, 6 deletionsSource/cmExportPackageInfoGenerator.h
- Source/cmInstallCommand.cxx 7 additions, 63 deletionsSource/cmInstallCommand.cxx
- Source/cmInstallPackageInfoExportGenerator.cxx 5 additions, 9 deletionsSource/cmInstallPackageInfoExportGenerator.cxx
- Source/cmInstallPackageInfoExportGenerator.h 4 additions, 5 deletionsSource/cmInstallPackageInfoExportGenerator.h
- Source/cmPackageInfoArguments.cxx 104 additions, 0 deletionsSource/cmPackageInfoArguments.cxx
- Source/cmPackageInfoArguments.h 98 additions, 0 deletionsSource/cmPackageInfoArguments.h
Loading
Please register or sign in to comment