summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Restore handling of build directory inside a symlinked pathBrad King2020-07-021-1/+1
| | | | | | | | | | | | | | | In commit dd8365b3f1 (Merge branch 'upstream-KWSys' into update-kwsys, 2020-04-06, v3.18.0-rc1~397^2) we imported KWSys commit `019afb6ea` (SystemTools: Drop GetCurrentWorkingDirectory 'collapse' argument, 2020-04-03). That caused `GetCurrentWorkingDirectory` to no longer send paths through the KWSys translation map and broke CMake's detection of the absolute path to a build directory containing a symbolic link. Add our own `cmSystemTools::GetCurrentWorkingDirectory` wrapper around the KWSys method in order to restore that mapping. Test-case-by: Ben Boeckel <ben.boeckel@kitware.com> Issue: #16228 Fixes: #20900
* GetDefinition: avoid duplicate callsVitaly Stakhovsky2020-05-291-4/+3
|
* Refactoring: Third-parties public headers are under cm3p prefixMarc Chevrier2020-05-073-5/+5
| | | | Fixes: #20666
* CPack: Fix newline output in .deb generatorKyle Edwards2020-04-301-11/+15
| | | | | | | When running CPack on Windows, LF newlines are converted to CRLF unless binary mode is used. Use binary mode whenever possible. Fixes: #20659
* IWYU: mark <cstddef> as neededBen Boeckel2020-04-291-1/+1
| | | | Newer IWYU is not seeing them as needed for `size_t`.
* Merge topic 'cpack-symlinks'Brad King2020-04-222-0/+5
|\ | | | | | | | | | | | | bcc5cd44ed CPack: Do not recurse through directory symlinks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4637
| * CPack: Do not recurse through directory symlinksBrad King2020-04-212-0/+5
| | | | | | | | | | | | | | | | Extend the fix from commit 7b8dcdd173 (CPack: Do not recurse through directory symlinks (#12284), 2011-08-27, v2.8.6~55^2) to more places in CPack. Issue: #12284
* | Refactoring: add cm::contains to <cmext/algorithm>Marc Chevrier2020-04-172-4/+5
| |
* | Merge topic 'cpack-nsis-dpi-aware'Brad King2020-04-151-0/+5
|\ \ | | | | | | | | | | | | | | | | | | d6840a4f3c CPack/NSIS: Add option for setting DPI-aware Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4607
| * | CPack/NSIS: Add option for setting DPI-awareJohnny Jazeix2020-04-141-0/+5
| | | | | | | | | | | | | | | | | | | | | See https://nsis.sourceforge.io/Reference/ManifestDPIAware for more information. Fixes: #17724
* | | clang-tidy: address bugprone-branch-clone lintsBen Boeckel2020-04-131-4/+0
|/ / | | | | | | | | | | | | | | | | Arguably, many of these are bugs in `clang-tidy`. An if/else tree with other conditionals between cloned blocks may be relying on the intermediate logic to fall out of the case and inverting this logic may be non-trivial. See: https://bugs.llvm.org/show_bug.cgi?id=44165
* | Merge topic 'parallel-lzma-compression'Brad King2020-04-063-0/+41
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b3bacf0152 cmCPackArchiveGenerator: support multithreaded compression b71d385ed4 cmCPackArchiveGenerator: support setting archive options 948aa8bd1c cmArchiveWrite: support setting archive filter options b9c17de023 cmArchiveWrite: split out opening the file Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !3195
| * | cmCPackArchiveGenerator: support multithreaded compressionBen Boeckel2020-04-031-1/+18
| | |
| * | cmCPackArchiveGenerator: support setting archive optionsBen Boeckel2020-03-312-0/+14
| | |
| * | cmArchiveWrite: split out opening the fileBen Boeckel2020-03-312-0/+10
| | | | | | | | | | | | | | | This allows options to be set before the "header" phase of libarchive's API.
* | | cmWorkingDirectory: Add GetOldDirectory methodBrad King2020-04-031-2/+2
| | |
* | | CPack/FreeBSD: Use RAII to save/restore working directoryBrad King2020-04-031-3/+2
| | |
* | | Merge topic 'cpack-nsis-version'Brad King2020-04-011-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | aa78a2537c CPack/NSIS: Document and check requirement of at least NSIS 3.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4552
| * | CPack/NSIS: Document and check requirement of at least NSIS 3.0Brad King2020-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 9d2816544e (CPack/NSIS: Also preload the "UserInfo.dll" plugin, 2020-01-04, v3.17.0-rc1~204^2) we require NSIS 3.0. Since older versions do not support Windows 8 or above, we can now require at least version 3.0. Fixes: #20514
* | | Merge topic 'string-prefix'Brad King2020-03-267-35/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec7928ef26 use _s to construct static string_views at several places 94de927cab VS10Generator: avoid many string allocations 8ca2504a4d use string_views to avoid memory allocations 761f1adcae check for a valid URL scheme before starting to do any splitting ef778d77e0 replace std::string::substr() with operations that do not allocate memory 77616f4681 pass cm::string_view to cmVisualStudioSlnParser::ParseTag() ada6a3226f use cm::string_view for language extension lookups 48adc29721 replace "std::string::find(x) == 0" with cmHasPrefix() ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4501
| * | | use string_views to avoid memory allocationsRolf Eike Beer2020-03-243-15/+18
| | | |
| * | | replace std::string::substr() with operations that do not allocate memoryRolf Eike Beer2020-03-232-2/+2
| | | | | | | | | | | | | | | | | | | | Modify the original string instead of creating a new copy with substr() when it is not used for anything else afterwards.
| * | | replace "std::string::find(x) == 0" with cmHasPrefix()Rolf Eike Beer2020-03-231-1/+1
| | | |
| * | | replace "substr(0, xx) ==" with cmHasPrefix()Rolf Eike Beer2020-03-232-10/+3
| | | |
| * | | CPackWIXGenerator: use cmStrCat for more partsRolf Eike Beer2020-03-231-5/+5
| | | |
| * | | remove needless check for std::string::substr()Rolf Eike Beer2020-03-231-2/+1
| | |/ | |/| | | | | | | Passing npos is legal and means "rest of the string".
* | | CMake compilation: do not use compiler extensionsMarc Chevrier2020-03-231-0/+5
|/ / | | | | | | | | | | | | For now, compiler extensions are no longer activated on CMake sources. However these extensions are still used for various third parties. This MR is a partial answer to the issue #20454.
* | Modernize memory managementMarc Chevrier2020-03-088-69/+58
|/ | | | Update internals of various classes.
* CPack: Deprecate OSXX11 generatorBrad King2020-01-311-0/+3
| | | | | | | | | | The CPack OSXX11 generator has not had any updates since 2011 except as part of sweeping maintenance changes. It also creates packages with a OSXScriptLauncher binary that has only ppc and i386 architectures which are not supported by Apple anymore. Furthermore, the generator is not even mentioned in our documentation. Add a deprecation warning. Fixes: #20235
* CPack: Deprecate PackageMaker generatorBrad King2020-01-311-0/+3
| | | | | | | Xcode no longer distributes the PackageMaker tools. Add a deprecation warning when the generator is used. Issue: #20235
* Merge topic 'cpack-dmg-breaklongline'Brad King2020-01-271-2/+3
|\ | | | | | | | | | | | | 4a3a7d5f5d CPack/DragNDrop: Fix word corruption in BreakLongLines Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4275
| * CPack/DragNDrop: Fix word corruption in BreakLongLinesKoray Kilinc2020-01-241-2/+3
| | | | | | | | When the lines are wrapped the leading characters of the next word were being lost
* | CPack/DragNDrop: Support RTF licensesAndrew Fuller2020-01-241-10/+31
|/
* Merge topic 'cpack-custom-dmg-names'Craig Scott2020-01-171-0/+5
|\ | | | | | | | | | | | | | | 6d6f4b9316 CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAME b53230fbee Tests: Add DragNDrop as a testable CPack generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4227
| * CPack/DragNDrop: Support CPACK_DMG_<component>_FILE_NAMEAndrew Fuller2020-01-161-0/+5
| |
* | Merge topic 'fix-cpack-deb-description-file'Brad King2020-01-131-2/+7
|\ \ | |/ |/| | | | | | | | | d491f34a5e CPack: Fix regression in DEB generator description Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4204
| * CPack: Fix regression in DEB generator descriptionKyle Edwards2020-01-101-2/+7
| | | | | | | | Fixes: #20102
| * Merge topic 'cpack-custom-templates' into release-3.16Brad King2019-11-186-9/+18
| |\ | | | | | | | | | | | | | | | | | | | | | 7d6ab5dc5b CPack: Restore support for custom package configuration templates Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !4054
* | \ Merge topic 'nsis-headerimage'Kyle Edwards2020-01-101-4/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ebfffc609e CPack/NSIS: Add option for setting MUI_HEADERIMAGE_BITMAP Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4157
| * | | CPack/NSIS: Add option for setting MUI_HEADERIMAGE_BITMAPJohnny Jazeix2020-01-021-4/+9
| | | | | | | | | | | | | | | | Fixes: #20120
* | | | GlobalGenerator family: modernize memory managementMarc Chevrier2020-01-071-2/+2
|/ / /
* | | Merge topic 'win-no-error-popup'Brad King2019-11-181-1/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a4c19cb895 Windows: Restore suppression of error report popups in CI builds 0b9f1cc96b Merge branch 'upstream-KWSys' into win-no-error-popup 9e27e52d4b KWSys 2019-11-15 (329d8c7c) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4052
| * | | Windows: Restore suppression of error report popups in CI buildsBrad King2019-11-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, libuv uses `_CrtSetReportHook` to install a handler it uses to suppress assertions on invalid file descriptors in `_get_osfhandle`. This removes the handler we install in CI environments to suppress interactive popups. Move installation of our handler to after libuv is initialized so that our handler is actually used. Unfortunately this also removes libuv's handler and so may cause Debug builds under CI to abort on invalid file descriptors instead of simply converting them to `INVALID_HANDLE_VALUE`. If this becomes a problem we may need to modify libuv to make its hook more configurable.
* | | | Merge topic 'cpack-custom-templates'Brad King2019-11-186-9/+18
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 7d6ab5dc5b CPack: Restore support for custom package configuration templates Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !4054
| * | CPack: Restore support for custom package configuration templatesBrad King2019-11-156-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 98617f1be0 (Refactor: Move CPack internal files to `Internal/CPack/` directory, 2019-07-09, v3.16.0-rc1~449^2) accidentally changed the public-facing names of the templates. The name passed to `FindTemplate` is searched in `CMAKE_MODULE_PATH` and should not change. Remove the `Internal/CPack/` prefix on the names added by that commit. Teach `FindTemplate` to use our builtin default directly when the public-facing name is not found in `CMAKE_MODULE_PATH`. Fixes: #19979
* | | Merge topic 'cpack-pkg-background'Brad King2019-11-124-4/+74
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e6069613a1 CPack: Set background image in macOS installer Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3995
| * | | CPack: Set background image in macOS installerSergey Larin2019-11-084-4/+74
| | | | | | | | | | | | | | | | | | | | Now you can set a background image and it's parameters in productbuild and PackageMaker based installers.
* | | | Merge topic 'remove-CPACK_INSTALL_CMAKE_CONFIGURATIONS'Craig Scott2019-11-121-8/+0
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 1d1fa5d3e4 Tests: Add RunCMake.CPackCommandLine case for multi-config package 108207cc84 CPack: Remove CPACK_INSTALL_CMAKE_CONFIGURATIONS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4025