summaryrefslogtreecommitdiffstats
path: root/Source/CPack
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: format all code as Cpp11Daniel Pfeifer2017-08-301-3/+2
|
* Merge topic 'cpack-dmg-iwyu'Brad King2017-08-301-0/+1
|\ | | | | | | | | | | | | 8c51dbdd cmCPackDragNDropGenerator: Add missing include Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1206
| * cmCPackDragNDropGenerator: Add missing includeBrad King2017-08-291-0/+1
| | | | | | | | | | | | We use `std::sort` and so must include `<algorithm>`. Issue: #17233
* | Merge topic 'cpackifw-repositories-directories'Brad King2017-08-282-0/+40
|\ \ | | | | | | | | | | | | | | | | | | 5fe64511 CPackIFW: Add CPACK_IFW_REPOSITORIES_DIRECTORIES variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1150
| * | CPackIFW: Add CPACK_IFW_REPOSITORIES_DIRECTORIES variableKonstantin Podsvirov2017-08-172-0/+40
| | | | | | | | | | | | | | | | | | Add CPACK_IFW_REPOSITORIES_DIRECTORIES variable to specify additional repositories dirs that will be used to resolve and repack dependent components
* | | Merge topic 'iwyu-keep-cmConfigure'Daniel Pfeifer2017-08-2723-23/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ca2233e3 IWYU: Mark cmConfigure.h with pragma: keep Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1187
| * | | IWYU: Mark cmConfigure.h with pragma: keepDaniel Pfeifer2017-08-2623-23/+20
| | | | | | | | | | | | | | | | Also remove `#include "cmConfigure.h"` from most source files.
* | | | cmCPackDebGenerator: Use libarchive to create .deb fileDaniel Pfeifer2017-08-251-271/+19
|/ / / | | | | | | | | | | | | Remove the copy of OpenBSD's 'ar' implementation and instead use cmArchiveWrite with the "arbsd" format.
* | | Use C++11 nullptrDaniel Pfeifer2017-08-2414-52/+51
|/ /
* | CPackIFW: Add CPACK_IFW_PACKAGE_FILE_EXTENSION variableKonstantin Podsvirov2017-08-092-12/+27
| | | | | | | | | | Add CPACK_IFW_PACKAGE_FILE_EXTENSION variable to customize target binary format.
* | CPack: Pass volume mount name to AppleScript instead of volume name.Gusts Kaksis2017-07-201-1/+3
| | | | | | | | | | | | Get the mount name from mount point path returned by hdiutil instead of assuming it is the volume name. They can be different in case of conflict with an already-mounted volume.
* | Change ComputeFileMD5 to ComputeFileHashAndré Klitzing2017-07-141-5/+4
| | | | | | | | | | | | | | * Use a parameter to select hash algorithm * Return a std::string as result or an empty string if it fails * Avoids unnecessary copy of hash value
* | CPackDeb: Enable the DEB generator on WindowsNils Gladitz2017-06-282-10/+28
| | | | | | | | | | | | | | | | While some features require external Unix tools the generator is mostly portable. By enabling it on Windows it can be used for cross platform packaging.
* | cmCPackDragNDropGenerator: Drop unused memberBrad King2017-06-141-2/+0
| | | | | | | | | | Drop the unused `InstallPrefix` member that shadows a member in a subclass.
* | Merge topic 'cpack-freebsd-pkg'Brad King2017-06-123-0/+405
|\ \ | | | | | | | | | | | | | | | | | | 2042cae9 CPack-FreeBSD: add a generator for FreeBSD pkg(8) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !693
| * | CPack-FreeBSD: add a generator for FreeBSD pkg(8)Adriaan de Groot2017-06-103-0/+405
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an option CPACK_ENABLE_FREEBSD_PKG to allow CPack to look for FreeBSD's libpkg / pkg(8). If this is set and the libpkg headers and library are found (which they will be, by default, on any FreeBSD system), then add a FreeBSD pkg(8) generator. The FreeBSD package tool pkg(8) uses tar.xz files (.txz) with two metadata files embedded (+MANIFEST and +COMPACT_MANIFEST). This introduces a bunch of FreeBSD-specific CPACK_FREEBSD_PACKAGE_* variables for filling in the metadata; the Debian generator does something similar. Documentation for the CPack CMake-script is styled after the Debian generator. Implementation notes: - Checks for libpkg -- the underlying implementation for pkg(8) -- and includes FreeBSD package-generation if building CMake on a UNIX host. Since libpkg can be used on BSDs, Linux and OSX, this potentially adds one more packaging format. In practice, this will only happen on FreeBSD and DragonflyBSD. - Copy-paste from cmCPackArchiveGenerator to special-case the metadata generation and to run around the internal archive generation: use libpkg instead. - Generating the metadata files is a little contrived. - Most of the validation logic for package settings is in CPackFreeBSD.cmake, as well as the code that tries to re-use packaging settings that may already be set up for Debian. - libpkg has its own notion of output filename, so we have another contrived bit of code that munges the output file list so that CPack can find the output. - Stick with C++98.
* | Add CM_OVERRIDE to CPack generator destructorsBrad King2017-06-088-8/+8
|/
* Remove second arg: npos in substr usagesPavel Solodovnikov2017-06-012-4/+4
|
* cmCPackLog: pass std::string by const&Daniel Pfeifer2017-05-251-6/+6
|
* CPack/Archive: per component filenames supportDomen Vrankar2017-05-162-16/+46
| | | | | | Support for setting archive packager specific per component filenames and monolithic package filenames.
* Merge topic 'cpackifw-i18n'Brad King2017-05-164-16/+101
|\ | | | | | | | | | | | | 72ac7ad9 CPackIFW: Internationalization Support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !748
| * CPackIFW: Internationalization SupportKonstantin Podsvirov2017-05-124-16/+101
| | | | | | | | | | | | | | | | | | Changes: - DISPLAY_NAME and DESCRIPTION in CPackIFW module now is MULTI_ARGS; - Added internationalization support for DisplayName and Description properties in cmCPackIFWPackage class; - Added documentation to CPackIFW module; - Added release note.
* | CPack unify component/monolithic package symlink handlingDomen Vrankar2017-05-141-0/+1
|/ | | | | | | | | | | Non component package generation was recursing through symlinks while monolithic package generation did not. This was causing component archive packages to contain both symlink and a directory with the same name on the same level if symlink contained files which caused errors during extraction of such packages. Closes #16051
* Merge topic 'cpackifw-access-refactoring'Brad King2017-05-115-558/+583
|\ | | | | | | | | | | | | 543cf134 CPackIFW: Access refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !820
| * CPackIFW: Access refactoringKonstantin Podsvirov2017-05-095-558/+583
| | | | | | | | | | | | Changes: - Access members with this->; - Access nested enum values with class name.
* | cmState: remove RemoveUnscriptableCommandsDaniel Pfeifer2017-05-081-2/+0
| |
* | cmake: initialize with Role that controls which commands to registerDaniel Pfeifer2017-05-082-2/+2
|/
* Merge topic 'vector-over-list'Brad King2017-05-052-6/+6
|\ | | | | | | | | | | | | 3e027d9d c++: prefer vectors over lists Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !799
| * c++: prefer vectors over listsBen Boeckel2017-05-042-6/+6
| | | | | | | | | | | | | | | | | | | | | | None of these usages of `std::list` were inserting or removing elements in the middle of the structure, so there were no benefits to using it. Other uses were related to C pointers being stable in a list of strings whereas in a vector of strings, small pointer optimizations could be moved and become invalid after a modification to the hosting vector. None of these uses modified the vector after handing out a C string to an external store.
* | CPackIFW: Refactor out some commonly used codeKonstantin Podsvirov2017-05-0310-322/+238
|/ | | | Move common used code to new cmCPackIFWCommon base class.
* cmCPackIFWInstaller: fix validation of WizardStyle optionKonstantin Podsvirov2017-04-261-4/+5
|
* clang-tidy: use operators for string comparisonDaniel Pfeifer2017-04-262-6/+5
|
* Merge topic 'wix-attributes-patch'Brad King2017-04-256-19/+37
|\ | | | | | | | | | | | | | | 58cf9d41 wix: adds ability to modify attributes with patch 03628bb6 wix: fix spelling error in function name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !742
| * wix: adds ability to modify attributes with patchKeith Holman2017-04-245-12/+30
| | | | | | | | | | | | | | | | | | Adds the ability to attributes to generated XML files for features with the WiX patch system. To modify attributes additional attributes may be added within the 'CPackWixFragment' xml tag. Fixes: #16813 Signed-off-by: Keith Holman <keith.holman@windriver.com>
| * wix: fix spelling error in function nameKeith Holman2017-04-242-7/+7
| | | | | | | | | | | | | | | | The function "AddDirectoryAndFileDefinitions" was missing the last "i" in the function name. This patch corrects the spelling so that the function can be found easier when searching through the source code. Signed-off-by: Keith Holman <keith.holman@windriver.com>
* | clang-tidy: remove reduntant .data() callsDaniel Pfeifer2017-04-212-18/+13
|/
* Drop Visual Studio 7 .NET 2003 generatorBrad King2017-04-191-2/+0
| | | | This generator has been deprecated since CMake 3.6. Remove it.
* Use quotes for non-system includesDaniel Pfeifer2017-04-1151-72/+72
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* CPack: drop CPack prefix for includesDaniel Pfeifer2017-04-1117-24/+24
| | | | | | | | | | Automate with: git grep -l '#include <CPack/' -- Source \ | xargs sed -i 's/#include <CPack\/\(.*\)>/#include "\1"/g' git grep -l '#include "CPack/' -- Source \ | xargs sed -i 's/#include "CPack\/\(.*\)"/#include "\1"/g'
* cmConfigure: Ensure separate include block in headersDaniel Pfeifer2017-04-115-0/+5
| | | | | | | | | | | Make sure that `#include <cmConfigure.h>` is followed by an empty line in header files. This is necessary to make sure that changing <> to "" does not affect the include ordering of clang-format. Automate with: git grep -l '#include <cmConfigure.h>' | grep -v '.cxx$' \ | xargs sed -i '/#include <cmConfigure.h>/ { N; N; s/\n\{1,2\}/\n\n/ }'
* Add self-sufficient wrapper for <sys/stat.h>Daniel Pfeifer2017-03-245-10/+5
|
* cmCPackGenerator: Move macros to bottom of fileDaniel Pfeifer2017-03-231-14/+14
| | | | | Since the class name is used in the macros, the iwyu tool gets confused wheter it needs a forward declaration or not.
* cmWorkingDirectory: use the new classBen Boeckel2017-03-062-9/+5
| | | | | | These functions just need to change the directory for a block of code and then go back to the caller's expected location. Use cmWorkingDirectory to ensure that all return paths are handled.
* OSXScriptLauncher: remove unused variableBen Boeckel2017-03-061-1/+0
|
* cmCPackDragNDropGenerator: Improving handling of temporary dmg imagesClinton Stimpson2017-02-231-20/+25
| | | | | | | | | | | | | | Adjust the image format to create the initial `dmg`, and convert only when necessary. This eliminates spurious hdiutil create -format UDRW failures I'm seeing which may be related to an anti-virus scanner. Running hdiutil create -format UDRW -verbose indicates a "resource is busy" issue when unmounting an image.
* Merge topic 'iwyu'Brad King2017-02-201-1/+0
|\ | | | | | | | | | | | | | | | | | | | | d58d28a9 ParserHelper: Move macros to bottom of files 07953c18 remove file cmStandardIncludes.h f918b053 cmFortranParser: include what you use b74314c6 cmDependsJavaParser: include what you use 74404df4 cmCommandArgumentParser: include what you use e7168c08 cmExprParser: include what you use ee72803e fix some include-what-you-use diagnostics
| * fix some include-what-you-use diagnosticsDaniel Pfeifer2017-02-171-1/+0
| |
* | Merge topic 'productbuild_component_plist'Brad King2017-02-203-0/+13
|\ \ | | | | | | | | | | | | d32f9deb CPack: Add option to specify --component-plist for productbuild
| * | CPack: Add option to specify --component-plist for productbuildTim Hutt2017-02-173-0/+13
| |/ | | | | | | | | | | | | When using the productbuild generator this lets you specify the value of the `--component-plist` parameter when it runs pkgbuild for a component. Fixes: #16638
* | CPack: Add support for CPACK_PRODUCTBULID_RESOURCES_DIRTim Hutt2017-02-171-2/+15
|/ | | | | | | This allows you to copy custom files (e.g. a background image) into the macOS installer. Fixes: #16604