summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* cmArchiveWrite: Check for construction errors on OpenBrad King2021-08-201-3/+21
| | | | | | Also update call sites to report the error. Issue: #19666
* Merge topic 'nsis_ignore_license_page'Brad King2021-08-031-0/+7
|\ | | | | | | | | | | | | 795e406e3b CPack/NSIS: Add option to not display license page Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6422
| * CPack/NSIS: Add option to not display license pageJohnny Jazeix2021-08-011-0/+7
| | | | | | | | Fixes: #22215
* | Merge topic 'minimal_nsis'Brad King2021-08-031-2/+2
|\ \ | | | | | | | | | | | | | | | | | | c0572a15d6 CPack/NSIS: Bump minimal version of NSIS to 3.03 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6425
| * | CPack/NSIS: Bump minimal version of NSIS to 3.03Johnny Jazeix2021-08-021-2/+2
| |/ | | | | | | Fixes: #22508
* | CPack/DEB: Add zstd compression for deb packagesRussell Greene2021-07-291-0/+3
|/
* Refactor: Drop redundand `std::endl` calls in the middle of outputAlex Turbov2021-07-131-36/+52
|
* Refactor: Use `cmStrToLong` instead of `std::strtol`Alex Turbov2021-07-131-18/+17
|
* Refactor: Avoid duplicate calls to `GetOption("GEN_DBGSYMDIR")`Alex Turbov2021-07-131-9/+11
|
* Refactor: Deduplicate code of `createDebPackages()`Alex Turbov2021-07-131-22/+19
| | | | Also, fix incorrect `retval` accumulation.
* CPack/DEB: dbgsym package not generated for non-component packagingAlex Turbov2021-07-132-45/+37
| | | | Fix: #19735
* Refactor: Extract packaged files finder into a functionAlex Turbov2021-07-131-45/+34
|
* Refactor: cmCPackDebGenerator::PackageComponents handle `else` firstAlex Turbov2021-07-131-27/+27
| | | | Also, return early to reduce nesting level of the function body.
* Refactor: Change return value to bool for private membersAlex Turbov2021-07-132-20/+9
| | | | | The `cmCPackDebGenerator::createDeb()` and `cmCPackDebGenerator::createDbgsymDDeb()` in fact have boolean return value.
* Refactor: Drop unnecessary `if` before `return`Alex Turbov2021-07-131-8/+2
|
* Refactor: Drop useless assignments of `retval` before returnAlex Turbov2021-07-131-4/+2
|
* CPackDeb: sort package files before generating deb fileAlexey Rogachevskiy2021-06-301-0/+7
| | | | | | | This should make the order in which the files are added to md5sums and archives is stable, thus making package files more reproducible. Fixes: #22361
* Merge topic 'cpack-install-opts'Craig Scott2021-05-261-0/+17
|\ | | | | | | | | | | | | 26e36111d3 CPack: Implement new variable CPACK_CUSTOM_INSTALL_VARIABLES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6141
| * CPack: Implement new variable CPACK_CUSTOM_INSTALL_VARIABLESNils Gladitz2021-05-231-0/+17
| | | | | | | | | | | | The new variable allows projects to define custom key=value pairs of variables to be set in CPack cmake_install.cmake script invocations. This allows install(SCRIPT|CODE) to be parameterized at runtime.
* | CPack/WIX: Use language en-US, font Consolas, size 14Jason Erb2021-05-241-3/+3
|/ | | | | | Improve rendering of text from `CPACK_RESOURCE_FILE_LICENSE`. Fixes: #22228
* clang-tidy: fix `bugprone-redundant-branch-condition`Brad King2021-05-111-1/+1
|
* Source: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-1/+1
|
* cmGlobalGenerator: Add parallel parameter to GenerateCMakeBuildCommandfriendlyanon2021-05-011-1/+1
|
* cmCPackDebGenerator: Remove unused local variableBrad King2021-04-281-1/+0
|
* cmArchiveWrite: Consolidate multiple ways to set thread countNils Gladitz2021-04-223-34/+12
| | | | | | | | | | | | | Merge use of SetFilterOption() into more abstract thread count in cmArchiveWrite constructor. libarchive defaulting of threads for threads == 0 seems to be configuration dependent. Preemptively default thread count via std::thread::hardware_concurrency(). Also allow negative values for the thread count in which case the detected hardware concurrency is also used but the given absolute thread count is used as an upper limit.
* Update CMake code using KWSys to account for Status return valuesBrad King2021-04-141-6/+7
| | | | | | KWSys as of 2021-04-14 changed the return type of `SystemTools` operations from `bool` to `Status`. Update our call sites. This may improve error reporting accuracy in a few places.
* Merge topic 'ifw-depends-name-version-parsing'Brad King2021-03-301-33/+78
|\ | | | | | | | | | | | | | | a43783a08d CPackIFW: Fix parsing of name and version in component DEPENDS f536e6f3fb CPackIFW: Remove redundant variable assignment Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5929
| * CPackIFW: Fix parsing of name and version in component DEPENDSCraig Scott2021-03-261-32/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DEPENDS or DEPENDENCIES arguments in a call to cpack_ifw_configure_component() or cpack_ifw_configure_component_group() specify a name and optionally a version constraint as a single string. QtIFW also allows a colon (requires QtIFW 3.1 or later) or a hyphen to separate the name and version. The version may optionally contain a leading operator, with = being assumed when no operator is present. The previous code was not handling : as a separator at all and was erroneously dropping the version part when no operator was given. Fix both of those non-conforming behaviors and also warn if trying to use a hyphen in a name with a QtIFW version that isn't recent enough to support it. Fixes: #21697
| * CPackIFW: Remove redundant variable assignmentCraig Scott2021-03-241-1/+1
| | | | | | This was showing up in cppcheck results.
* | Merge branch 'master' into nsis-branding-trim-positionCraig Scott2021-03-243-3/+11
|\ \ | |/
| * CPack: Fix symbolic link detection for directoriesOlivier Iffrig2021-03-051-1/+2
| | | | | | | | | | | | | | | | In the case where the current path is a symlink to a directory, a trailing slash causes the link to be dereferenced, which means that any subsequent `FileIsSymlink` on it will return false. Fixes: #21886
| * cpack: add CPACK_DMG_FILESYSTEMKevin Ushey2021-03-021-1/+6
| | | | | | | | | | | | | | Allow users to configure the filesystem format of the generated `.dmg` via the `CPACK_DMG_FILESYSTEM` option. Fixes: #21874
| * Merge topic 'cpack_nsis_executable_custom'Brad King2021-02-231-1/+3
| |\ | | | | | | | | | | | | | | | | | | 8e8b99d01a CPack/NSIS: Add option for setting custom makensis executable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5839
| | * CPack/NSIS: Add option for setting custom makensis executableJohnny Jazeix2021-02-221-1/+3
| | | | | | | | | | | | | | | | | | It allows users to set a custom one without changing the PATH environment variable. Fixes: #21733
* | | CPack: Validate and document NSIS branding text trim positionsCraig Scott2021-03-241-3/+10
|/ /
* | CPackIFWInstaller: Avoid potential null pointer dereferenceCraig Scott2021-02-191-2/+9
|/ | | | | | | | In d16830324f (CPackIFW: Improve warning and docs for show page list option, 2021-02-14), code was added to report the current QtIFW version. That code didn't check that there was a Generator object before using it, resulting in a scanbuild warning about a potential null pointer dereference. Add a check and output a more general warning message if we don't have the current QtIFW version available to report.
* CPackIFW: Improve warning and docs for show page list optionCraig Scott2021-02-141-3/+5
|
* CPackIFW: Fix cppcheck warningsCraig Scott2021-02-141-3/+4
| | | | | | The cppcheck warnings about uninitialised variables are likely harmless, since they are initialised in ParseResource() anyway. Fix the warnings anyway to reduce linting noise. The warning about a single argument non-explicit constructor is worth fixing in general.
* CPack/NSIS: Add option for setting branding textJohnny Jazeix2021-02-071-0/+19
| | | | | | | See https://nsis.sourceforge.io/Reference/BrandingText for more information. Fixes: #21479
* Merge topic 'clang-tidy-fixes'Brad King2021-01-274-12/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef935b17ab clang-tidy: fix `readability-use-anyofallof` warnings 9ac8dbbb94 clang-tidy: fix `readability-simplify-boolean-expr` warnings ca505718f4 clang-tidy: fix `readability-redundant-string-init` warnings b3b6ede6a1 clang-tidy: fix `readability-redundant-access-specifiers` warnings cdfc4e3195 clang-tidy: fix `readability-qualified-auto` warnings 808b17b120 clang-tidy: fix `readability-make-member-function-const` warnings 4470eb5179 clang-tidy: fix `performance-trivially-destructible` warnings 4f396e6528 clang-tidy: fix `performance-no-automatic-move` warnings ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5731
| * clang-tidy: fix `readability-make-member-function-const` warningsBen Boeckel2021-01-274-12/+12
| |
* | CPack: add CPACK_THREADS variable to control compression threadsRodolfo Lima2021-01-262-3/+29
|/ | | | | | | This allows setting how many threads the compressor will use. Currently only implemented for XZ when using system's lzma library. Fixes: #21715
* cpack(DEB): Issue warning if custom script for control file is missingAsit Dhal2021-01-151-0/+9
| | | | Fixes: #17794
* Code style: add missed explicit 'this->'Oleksandr Koval2021-01-0513-226/+245
| | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* CPackIFW: Add CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST variableKonstantin Podsvirov2020-11-272-0/+29
| | | | | | Add CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST variable to control visibility of the widget listing installer pages on the left side of the wizard. This feature available only since QtIFW 4.0.
* CPack/DEB: Do not crash when asked for debug symbols when there are noneAndrew Fuller2020-11-161-1/+2
| | | | Fixes: #21356
* configure_file: Add option for user defined permissionsAsit Dhal2020-10-241-1/+1
| | | | | | | User defined permissions and options to copy permissions are implemented. Fixes: #20866
* Merge topic 'cmake-E-cat-binary'Brad King2020-10-151-19/+14
|\ | | | | | | | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
| * cmConsoleBuf: Factor out cout/cerr console buffer managementBrad King2020-10-141-10/+5
| |
| * clang-format: Fix include block order in ctest.cxx and cpack.cxxBrad King2020-10-141-9/+9
| |