summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* CPack/IFW: Add option for ProductImages URLsJulien Marrec2024-09-112-1/+29
| | | | Add a `CPACK_IFW_PACKAGE_PRODUCT_IMAGE_URLS` variable for them.
* CPack/IFW: Actually ignore missing ProductImagesJulien Marrec2024-09-111-4/+11
|
* CPack/IFW: Fix generation of ProductImagesJulien Marrec2024-09-101-1/+3
| | | | | | | Entries of `CPACK_IFW_PACKAGE_PRODUCT_IMAGES` each need their own `ProductImage element. Fixes: #26268
* Source: Avoid comparing pointers to nullptrVitaly Stakhovsky2024-08-279-32/+32
|
* Merge topic 'cpack-pkg-c_str'Brad King2024-08-211-1/+1
|\ | | | | | | | | | | | | 1393b31635 cmCPackPKGGenerator: Remove redundant call to c_str Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9759
| * cmCPackPKGGenerator: Remove redundant call to c_strRose2024-08-201-1/+1
| | | | | | | | | | | | The call is unnecessary since commit 438809d3ba (cmCPackGenerator: Add option to FindTemplate to use alternate builtin path, 2024-03-06, v3.30.0-rc1~353^2~4).
* | Merge topic 'optimize-stream-shift-operators'Brad King2024-08-201-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 5b259985bf Refactor: Optimize some `std::ostream::operator<<()` calls Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9717
| * | Refactor: Optimize some `std::ostream::operator<<()` callsAlex Turbov2024-08-191-1/+1
| |/
* | Merge topic 'cpack-nsis-reserved-component-names'Brad King2024-08-202-3/+4
|\ \ | |/ |/| | | | | | | | | b1f956529a CPack/NSIS: Fix matching of reserved component names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9757
| * CPack/NSIS: Fix matching of reserved component namesK. R. Walker2024-08-192-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "Console" unexpectedly matches the reserved name regex. This revealed that `cmCPackNSISGenerator::CreateComponentDescription()` needs to use the name returned by `GetSanitizedDirOrFileName()` for the component file glob. Fix the change from commit a1af593291 (CPack: Support arbitrary component name when packaging, 2024-05-01, v3.30.0-rc1~151^2~1) to address these issues and add related checks to the `CPackNSISGenerator` test case. Issue: #23612
* | Merge topic 'cpack-external-partial-json'Brad King2024-07-231-8/+11
|\ \ | |/ | | | | | | | | | | | | ab26d334bf cmCPackExternalGenerator: ensure JSON is written before running the script Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9669
| * cmCPackExternalGenerator: ensure JSON is written before running the scriptBen Boeckel2024-07-181-8/+11
| | | | | | | | | | | | | | | | | | First, use `cmGeneratedFileStream` to avoid touching an existing file unless its contents change and to get atomic replacement. Also add a scope to ensure that the file is in place (at `fout`'s destructor) before doing anything with the packaging scripts. See: https://discourse.cmake.org/t/1773
* | CPack/DEB: Add Multi-Arch supportRobert Schuster2024-06-211-0/+15
|/ | | | | | | Add support for Multi-Arch in control files of Debian packages. Valid values: same, foreign, allowed Fixes: #21445
* CPack: Support arbitrary component name when packagingDeniz Bahadir2024-05-0111-28/+175
| | | | | | | | | | | | | | | | | | CPack no longer blindly tries to create temporary packaging (sub)directories that contain the verbatim name of a component, which might contain characters that are not supported on the platform / filesystem. Instead, if the component's name contains a (possibly) problematic character its MD5 hash will be used for that temporary packaging (sub)directory. Likewise, if the component's name resembles a reserved device name (e.g. "COM1" on Windows) then the temporary packaging (sub)directory will get this name prefixed with an underscore. Similar, if it ends in a dot (on Windows) then the temporary packaging (sub)directory will get this name suffixed with an underscore. Fixes: #23612
* cmCPackGenerator: Fix debug message in function `PrepareGroupingKind`Deniz Bahadir2024-04-301-2/+2
|
* cmCPackGenerator: Fix comment in function `InstallCMakeProject`Deniz Bahadir2024-04-301-1/+1
|
* cmCPackGenerator: Slightly simplify function `InstallProject`Deniz Bahadir2024-04-301-7/+7
|
* cmCPackGenerator: Clean up and simplify function `DoPackage`Deniz Bahadir2024-04-301-32/+47
|
* cmCPackGenerator: Clean up and simplify function `PrepareNames`Deniz Bahadir2024-04-301-33/+42
|
* cmCPackGenerator: Refactor copying of package files into own functionDeniz Bahadir2024-04-302-19/+26
|
* cmCPackGenerator: Refactor generation of checksum file into own functionDeniz Bahadir2024-04-302-12/+24
|
* cmCPackGenerator: Handle CPACK_TEMPORARY_[INSTALL]_DIRECTORY properlyDeniz Bahadir2024-04-241-2/+56
| | | | | | | | | | | | | | | | | | | The variable `CPACK_TEMPORARY_DIRECTORY` is an internal variable that is required for proper packaging. Historically, a second variable `CPACK_TEMPORARY_INSTALL_DIRECTORY` existed as well which had the same purpose. Both variables had to be set to the same value. Otherwise, CPack would not succeed with packaging. In order to ease CPack's usage, the variable `CPACK_TEMPORARY_INSTALL_DIRECTORY` is now no longer used. However, as it cannot be guaranteed that neither of these two (internal) variables have been used in the wild, some mechanism was introduced to preserve backwards-compatibility: If one of these variables is set, the other variable will be set to the same value. If, however, both are set to different values, CPack still fails but with an explicit error-message. Fixes: #25046
* CPack: Enable Inno Setup generator on non-Windows hostsAndreas Oetken2024-04-152-10/+21
| | | | | Innosetup tools can be run on Linux using Wine, thus there is no reason to block this in CMake.
* CPack/WIX: Add support for WiX Toolset v4Brad King2024-03-2410-61/+220
| | | | | | | Add a `CPACK_WIX_VERSION` option to specify version WiX for which the project is configured. Fixes: #23910
* CPack/WIX: Remove "candle" from tool-agnostic error messageBrad King2024-03-221-1/+1
|
* CPack/WIX: Improve formatting of CPACK_WIX_CUSTOM_XMLNS expansionBrad King2024-03-221-10/+5
|
* CPack/WIX: Prepare to provide version-specific WiX templatesBrad King2024-03-221-1/+5
| | | | Move our template for WiX Toolset v3 to a versioned location.
* cmCPackGenerator: Add option to FindTemplate to use alternate builtin pathBrad King2024-03-222-5/+11
|
* Source: Use cmValue::IsOn and IsOffVitaly Stakhovsky2024-03-177-20/+20
| | | | Speed up a bit by calling members directly.
* cpack: Simplify config file selectionBrad King2024-02-271-2/+3
|
* cpack: Simplify package directory selection logicBrad King2024-02-271-19/+13
|
* Source: Avoid using CollapseFullPath just to get parent directoryBrad King2024-02-272-3/+2
|
* Reduce scope of variableChristoph Grüninger2024-02-141-2/+1
| | | | Found by Cppcheck (variableScope)
* Use prefix ++ operators for non-primitive typesChristoph Grüninger2024-02-141-1/+1
| | | | | Prevent unnecessary calls to copy constructor Found by Cppcheck (postfixOperator)
* Remove unused variableChristoph Grüninger2024-02-142-4/+0
| | | | Found by Cppcheck.
* CPack/WiX: Make InstallScope configurableMax Gaukler2023-11-161-0/+1
| | | | | | | | Add a new `CPACK_WIX_INSTALL_SCOPE` variable to set the `InstallScope` when using the default WiX template. Set the default to the bug-free value `perMachine`. Fixes: #20962
* CPack: Avoid adding duplicate files to archive when combining componentsAtılhan Emre Dursunoğlu2023-10-262-8/+151
| | | | Fixes: #25280
* Merge topic 'vector-emplace-back'Brad King2023-10-241-3/+5
|\ | | | | | | | | | | | | | | | | | | 9ca6dfc280 Source: Reduce vector entry allocations and copies aaeb2e0aa8 cmLinkItemGraphVisitor: Remove unnecessary syntax d1c1e95331 cmCPackInnoSetupGenerator: Reserve space to reduce allocations Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8891
| * Source: Reduce vector entry allocations and copiesRose2023-10-231-3/+4
| | | | | | | | Prefer `emplace_back` over `push_back`.
| * cmCPackInnoSetupGenerator: Reserve space to reduce allocationsRose2023-10-231-0/+1
| |
* | Fix clang -Wreserved-identifier by renaming an enumSean McBride2023-10-201-1/+1
|/
* Source: Fix mysterious new IWYU warningsKyle Edwards2023-08-291-0/+2
|
* cmCryptoHash: prefer to cmSystemTools::ComputeFileHashBen Boeckel2023-08-081-2/+2
|
* cmCryptoHash: prefer to cmSystemTools::ComputeStringMD5Ben Boeckel2023-08-081-1/+3
| | | | | | | The latter call is no longer post-bootstrap only since 596439b1bb (cmCustomCommandGenerator: Add option to transform depfile, 2020-10-05) via !5325. Convert callers to just use `cmCryptoHash` directly and remove the bootstrap guard.
* Merge topic 'windows-tidy-cmstrcat'Brad King2023-08-0112-125/+145
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d58253d155 clang-tidy: fix `performance-faster-string-find` lints a19ec77200 clang-tidy: fix `readability-static-accessed-through-instance` lints 3d03629f20 cmWIXRichTextFormatWriter: remove identity cast 1df29567ac clang-tidy: fix `modernize-use-equals-default` lints 32fe862b8c clang-tidy: fix `readability-container-size-empty` lints 7eaab9a957 clang-tidy: fix `modernize-raw-string-literal` lints ffa49c23aa clang-tidy: fix `readability-else-after-return` lints 4489e9a85c clang-tidy: fix `modernize-use-auto` lints ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8668
| * clang-tidy: fix `performance-faster-string-find` lintsBen Boeckel2023-07-311-1/+1
| |
| * clang-tidy: fix `readability-static-accessed-through-instance` lintsBen Boeckel2023-07-311-1/+1
| |
| * cmWIXRichTextFormatWriter: remove identity castBen Boeckel2023-07-311-1/+1
| |
| * clang-tidy: fix `modernize-use-equals-default` lintsBen Boeckel2023-07-311-3/+1
| |
| * clang-tidy: fix `readability-container-size-empty` lintsBen Boeckel2023-07-311-1/+1
| |