summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* CYGWIN: Drop pre-2.8.4 compatibility mode CMAKE_LEGACY_CYGWIN_WIN32Brad King2023-01-191-3/+0
| | | | | | | | | | Prior to CMake 2.8.4 (released in 2011), we defined `WIN32` on CYGWIN. That was removed, but an undocumented `CMAKE_LEGACY_CYGWIN_WIN32` compatibility mode was left to help projects transition. Only projects that do not require at least 2.8.4 as their minimum CMake version need the compatibility mode. We've also long warned about projects that do not require at least 2.8.12, so it is now reasonable to remove the legacy compatibility mode.
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-181-2/+8
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* cmValue: Use operator* explicitly to convert to std::string; avoid extra callVitaly Stakhovsky2023-01-1610-62/+65
|
* CMake: fix sizeof string literal violationsKyle Edwards2022-11-181-1/+1
|
* cpack.cxx: Optimize calls to `std::osteam::operator<<`Alex Turbov2022-11-171-64/+53
|
* cpack.cxx: Eliminate redundant `if`Alex Turbov2022-11-171-5/+1
|
* cpack.cxx: Deduplicate "Generators" section creation codeAlex Turbov2022-11-171-21/+24
|
* cmDocumentationEntry: Drop all user provided ctors for C++ >= 14Alex Turbov2022-11-171-3/+3
| | | | | | | | | | | There is no need for them cuz: - the last field has a default value - all static instances use 2 arguments convertible to `std::string` - "dynamic" instances used for _Generator_ doc entries access fields diectly using default constructed instance Moreover, compiler may generate move ctor/assign when needed.
* cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`Alex Turbov2022-11-171-13/+6
| | | | | | | | | | Use fixed size arrays of `cmDocumentationEntry` items instead of open arrays of two `char` pointers when describe program options help screens. Also, drop `const char*[][2]` overloads of methods of `cmDocumentation` and `cmDocumentationSection` classes in the sake of generic (template) appenders introduced earlier.
* Merge topic 'cpack-trace-argument'Brad King2022-10-271-2/+2
|\ | | | | | | | | | | | | b5ebaa0d9c CPack: Require no argument for --trace and --trace-expand Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7824
| * CPack: Require no argument for --trace and --trace-expandKyle Edwards2022-10-251-2/+2
| | | | | | | | | | | | | | | | This was accidentally broken by commit 87c762d435 (CPack: Use cmCommandLineArgument instead of cmsys::CommandLineArguments, 2022-04-18, v3.24.0-rc1~258^2). Fixes: #24085
* | CPack/NSIS: Add options to set makensis argumentsJohnny Jazeix2022-09-261-2/+32
| | | | | | | | Fixes: #23446
* | Build: Move `HAVE_CoreServices` to `cmCPackConfigure.h`Alex Turbov2022-09-222-3/+5
| |
* | Build: Add `ENABLE_BUILD_FREEBSD_PKG` to `cmCPackConfigure.h`Alex Turbov2022-09-222-2/+3
| |
* | Build: Use imported `LibUUID::LibUUID` target instead of variablesAlex Turbov2022-09-223-2/+7
| | | | | | | | Also, simplify preprocessor condition to enable WIX CPack generator.
* | Merge topic 'cpack-archive-custom-extension'Brad King2022-09-071-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | cc3cd8bc2a CPack: allow custom file extension in archive generator Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7563
| * | CPack: allow custom file extension in archive generatorAndrey Filipenkov2022-09-011-0/+12
| | |
* | | CPack: Add support for presetsKyle Edwards2022-08-311-3/+166
| | | | | | | | | | | | Fixes: #23117
* | | Help: Short options first, then long, then Windows styleAlex Turbov2022-08-141-1/+1
|/ /
* | FreeBSD: follow CPACK_PACKAGE_FILE_NAME, if setAdriaan de Groot2022-07-051-1/+20
| | | | | | | | | | | | | | | | The underlying pkg library always produces a <name>-<version>.pkg file, so to follow CPACK_PACKAGE_FILE_NAME we need to detect that and rename appropriately. FIXES #23034
* | FreeBSD: explain the pkg_create() callAdriaan de Groot2022-07-051-0/+8
| | | | | | | | | | - the upstream API is undocumented, so dig in the C sources to get parameter names.
* | FreeBSD: drop support for libpkg before 1.17Adriaan de Groot2022-07-051-28/+1
|/ | | | All supported FreeBSD versions are now using 1.17 or later
* cmSystemTools: Fix 'ErrorOccurred' spellingFeRD (Frank Dana)2022-06-136-10/+10
| | | | | | | | Rename the booleans 's_ErrorOccured' and 's_FatalErrorOccured' to 's_ErrorOccurred' and 's_FatalErrorOccurred', respectively. Rename the getters and setters to 'Get[Fatal]ErrorOccurred' and 'Set[Fatal]ErrorOccurred', and fix all uses across the codebase.
* clang-tidy: address `google-readability-casting` lintsBen Boeckel2022-05-241-1/+1
| | | | At least those involving `static_cast`.
* clang-tidy: address `modernize-use-default-member-init` lintsBen Boeckel2022-05-241-2/+1
|
* style: use `cmStrCat` in some more locationsBen Boeckel2022-05-191-1/+1
|
* Merge topic 'cpack-wix-arch'Brad King2022-05-051-1/+12
|\ | | | | | | | | | | | | cae7e5e38d CPack/WIX: Add CPACK_WIX_ARCHITECTURE to support Windows for ARM installers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7236
| * CPack/WIX: Add CPACK_WIX_ARCHITECTURE to support Windows for ARM installersjakoblover2022-05-051-1/+12
| |
* | CPack: Remove the deprecated PackageMaker generatorCraig Scott2022-05-043-632/+0
| | | | | | | | | | | | This CPack generator has been deprecated since commit 7bf187499f (CPack: Deprecate PackageMaker generator, 2020-01-31). Fixes: #23344
* | Merge topic 'restore-CPACK_PACKAGEMAKER_CHOICES'Brad King2022-05-031-21/+37
|\ \ | |/ |/| | | | | | | | | d099136add productbuild: Restore CPACK_PACKAGEMAKER_CHOICES variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7220
| * productbuild: Restore CPACK_PACKAGEMAKER_CHOICES variableCraig Scott2022-04-291-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 2a8df7e7db (productbuild: Don't write rootVolumeOnly attribute if writing domains, 2022-03-21), the variable holding the main contents of the distribution.dist XML file was renamed from CPACK_PACKAGEMAKER_CHOICES to CPACK_APPLE_PKG_INSTALLER_CONTENT. This reflected the fact that the PackageMaker generator is deprecated. The new variable also includes more details than the old one held. Some projects were relying on the old variable name, so we need to still set that to the same contents as it would have previously provided. Neither of these variables were previously documented, but the older variable was mentioned in enough semi-official places that it essentially became semi-supported. Document both variables and highlight that the older one is deprecated. Fixes: #23467
* | CPack: Use cmCommandLineArgument instead of cmsys::CommandLineArgumentsKyle Edwards2022-04-201-108/+115
|/
* CPackIFW: Fix regression in icon file namesJean-Philippe Lebel2022-04-141-3/+3
| | | | | | | | Changes in commit 761b6e2466 (CPackIFW: Avoid colliding names for icons / logos, 2021-10-08, v3.23.0-rc1~546^2) accidentally left an extra `.` in computed file names. Remove it. Fixes: #23423
* CPack/IFW: Add missing referenced source file validationCraig Scott2022-03-251-2/+22
|
* productbuild: Don't write rootVolumeOnly attribute if writing domainsCraig Scott2022-03-211-3/+13
| | | | | | The rootVolumeOnly attribute is deprecated. Apple docs say to use domains instead. Fixes: #23343
* productbuild: Simplify internal CPACK_PRODUCTBUILD_DOMAINS usageCraig Scott2022-03-211-5/+4
| | | | | | | There's no benefit to storing the CPACK_PRODUCTBUILD_DOMAINS prefix in a variable and appending to it in the C++ code. It has the disadvantage of making it harder to find usages of the variables with a suffix appended to that string. Expand out the strings at the places they are used so that they are easier to spot.
* CPack/DMG: Add explicit option to use CPACK_RESOURCE_FILE_LICENSE for SLABrad King2022-01-181-3/+7
| | | | | | | | | | | | | | | | | Since macOS 12.0, the ``hdiutil udifrez`` and ``hdiutil udifderez`` commands to embed and extract resources in a disk image are deprecated. The CPack DragNDrop Generator uses these to attach the SLA specified by the `CPACK_RESOURCE_FILE_LICENSE` option. Since that option is shared by multiple CPack generators, we cannot deprecate it. Instead, add an explicit option to control the behavior. This will give projects a way to package on future macOS versions that remove the commands. In order to provide a long-term transition away from attaching SLAs to disk images, update `cpack` to default this behavior to OFF. To retain compatibility for CMake projects, teach the CPack module to default the option to ON. Later a policy can be added to change the default. Issue: #22978
* CPack/productbuild: add options to control domains elementDavid Wosk2022-01-062-1/+40
| | | | | | | | | The domains element determines the required authorization level needed for the install. The auth attribute of the pkg-ref element has been deprecated in favor of domains, so if the domains options are specified, the auth attribute is omitted. Fixes: #23030
* FreeBSD: tidy upAdriaan de Groot2021-12-211-8/+14
| | | | | | | | | | - mismatched comments and code, - remove superfluous log of the "Real package" (which can still change! log the changed filename if it does), - the "fix up the package name" code was replacing the pkg 1.17 suffix by the pkg 1.17 suffix, so it wasn't really being useful. Whether **any** of the backwards- compatibility packaging code is useful is another thing.
* FreeBSD: handle new package-file-suffixAdriaan de Groot2021-12-211-11/+31
|
* FreeBSD: fix up the package nameAdriaan de Groot2021-12-211-6/+35
| | | | | | | | | When using libpkg, the output filename is determined by libpkg itself, based on information in the manifest: package name and version, basically. This doesn't necessarily match the name that CMake has determined via CPACK_TEMPORARY_PACKAGE_FILE_NAME or CPACK_PACKAGE_FILE_NAME. So reset the CMake-determined list to match what libpkg will do.
* FreeBSD: migrate to newer pkg_create(3) APIAdriaan de Groot2021-12-211-3/+69
| | | | | | | | | | | | | The pkg_create_from_manifest() function was never really intended as stable API, and bapt@ has asked me to stop using it so the public API can be stabilized. Port to pkg_create() with its attendant settings struct. Since we already have a complete manifest file, we can hand that (including the embedded plist) to pkg_create(). While here, reintroduce pkg_init(), which lived in downstream patches for a while and then went away again.
* Merge topic 'ifw-sign-installer'Brad King2021-12-023-0/+23
|\ | | | | | | | | | | | | | | e8e07a90c1 CPackIFW: add support for signing the generated app bundles on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6754
| * CPackIFW: add support for signing the generated app bundles on macOSErlend E. Aasland2021-11-223-0/+23
| | | | | | | | | | | | | | | | Adds the CPACK_IFW_PACKAGE_SIGNING_IDENTITY CPackIFW variable. This variable mirrors the --sign option of the binarycreator tool. Fixes: #22927
* | CPack/productbuild: Add option to customize product identifierGreg Fiumara2021-11-182-5/+20
| | | | | | | | | | | | | | | | This adds a new option, CPACK_PRODUCTBUILD_IDENTIFIER, which allows for customization of the productbuild product identifier within the CPack productbuild generator. Fixes: #20830
* | CPack: Remove undocumented deprecated OSXX11 generatorBrad King2021-11-054-429/+0
| | | | | | | | | | | | | | | | This CPack generator was never documented, and has been deprecated since commit 2ed00e8ef8 (CPack: Deprecate OSXX11 generator, 2020-01-31, v3.17.0-rc1~45^2). Issue: #20235
* | Source: Cleanup and simplify some codeRose2021-11-0420-69/+57
| |
* | Source: Replace C headers with C++ onesRose2021-11-022-4/+2
|/ | | | In applicable areas only, of course.
* CPackIFW: add support for archive format and compression level optionsErlend E. Aasland2021-10-282-0/+32
| | | | | | | | | | | | | | | Adds the following CPackIFW variables: - CPACK_IFW_ARCHIVE_FORMAT - CPACK_IFW_ARCHIVE_COMPRESSION These variables control mirror the --archive-format and --compression options of the QtIFW binarycreator and repogen tools. Fixes: #22803 Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no> Co-authored-by: Awen Autret
* Merge topic 'purge-sprintf'Brad King2021-10-271-1/+1
|\ | | | | | | | | | | | | | | b7e9cd05cd Replace the only non-standard _snprintf with snprintf 5ba6e8ac59 Source: Replace most calls to sprintf with snprintf Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6649