Commit Graph

95 Commits

Author SHA1 Message Date
Ken Martin f686dbecb6 some white space fixes for the book 2009-09-03 15:29:29 -04:00
David Cole 85733c17c5 BUG: Re-fix issue #8682. Use new variable CPACK_NSIS_PACKAGE_NAME in appropriate places rather than CPACK_NSIS_DISPLAY_NAME. CPACK_NSIS_DISPLAY_NAME is the Add/Remove control panel's description string for the installed package. Using it as the "Name" of the NSIS installer package made the CMake installer itself use really long strings in the installer GUI. This fix still allows for the original intent of the first fix for #8682 -- the ability to separate the installer name from the default install directory, but it uses a new/different variable to achieve the separation. 2009-07-16 11:48:30 -04:00
David Cole 6d242ca2dc STYLE: Use $ style variable dereference instead of @ style. 2009-03-05 10:08:03 -05:00
David Cole c58f2a5830 ENH: Turn off CPACK_BINARY_TBZ2 and CPACK_BINARY_ZIP by default. Strictly speaking, this changes behavior from cpack 2.6, but now that cpack returns a non-zero exit code when it encounters an error, and it is an error to try to use a generator that is not available... It makes sense to turn these off by default since not everybody has these generators installed. It is easy for a project to turn these options back on if they need to: simply set(CPACK_BINARY_TBZ2 ON) or set(CPACK_BINARY_ZIP ON) before include(CPack) in your CMakeLists.txt... 2009-01-23 13:36:22 -05:00
David Cole 3a4f76949a BUG: Fix issue #8402. Add a drag and drop bundle generator to the Mac build of CPack. Add a test of it in the CPackComponents test. Thanks to Clinton Stimpson for the patch. 2009-01-22 12:12:44 -05:00
David Cole 71f61636b6 ENH: One more patch from Doug Gregor including PackageMaker functionality for componentized-for-the-end-user and download-some-bit-on-demand installers. 2008-07-09 13:38:56 -04:00
David Cole 83ec8c3593 ENH: Further refinement of the CPack components functionality from Doug Gregor.
Details:
==========

 - New cpack_add_component, cpack_add_component_group, and
cpack_add_install_type "commands" defined as macros in the CPack
module.
 - Documentation for all of the variables and commands in the CPack module.
 - Added get_cmake_property(... COMPONENTS) to CMake to ask for the
names of all components. Used in the CPack module to automatically
build component-based installers. (Set CPACK_MONOLITHIC_INSTALL to
turn off component-based installation).
 - A group can declare its PARENT_GROUP, to build an arbitrary
hierarchy of groups.
 - New CPack command cpack_configure_downloads, which creates an
installer that downloads only the selected components on-the-fly.
Those components marked DOWNLOADED will be separate packages
downloaded on-the-fly (or, all packages can be marked as such with the
ALL option to cpack_configure_downloads). Individual components are
compressed with ZIP at installer-creation time and
downloaded/uncompressed by the installer as needed. This feature is
only available on Windows with NSIS at the moment.
 - NSIS installers can install themselves and enable the "Change"
button in Add/Remove programs, allowing users to go back and install
or remove components. This can be disabled through
cpack_configure_downloads, because it's only really useful is most of
the application's functionality is in downloaded components.
 - Bug fix: automatically install everything whose COMPONENT was not
specified (it's a hidden, required group)
 - Bug fix: fixed removal of components when re-running the NSIS
installer and unchecking components
 - Bug fix: NSIS installers now only install/remove the minimal
number of files when re-run to update the installation (or by clicking
"Change" in Add/Remove programs)
2008-07-08 11:52:25 -04:00
David Cole 79e255a7d3 ENH: Apply patch for feature request #7170. Thanks to Tim Shead for contributing... 2008-06-18 09:53:29 -04:00
Alexander Neundorf e20f1dd26c ENH: use a common CPACK_BINARY_ prefix for the binary package generators
Alex
2008-04-17 17:23:21 -04:00
Alexander Neundorf 6502177306 ENH: use CPACK_PACKAGE_VERSION instead of
CPACK_PACKAGE_VERSION_MAJOR.CPACK_PACKAGE_VERSION_MINOR.CPACK_PACKAGE_VERSION_PATCH
for creating the package file name

Alex
2008-03-26 20:12:17 -04:00
David Cole 764f6838a7 ENH: Give Mac installers package relocation capability. Default location is still the same for backwards compatibility, but packages will now be relocatable by default like they are on Windows via the NSIS installer. New CPack variables for controlling this functionality are CPACK_PACKAGE_DEFAULT_LOCATION and CPACK_PACKAGE_RELOCATABLE. 2007-12-26 16:57:13 -05:00
David Cole 5beb1da7f7 ENH: Add CPACK_SET_DESTDIR handling to enable packaging of installed files in absolute locations. With this setting on, cpack will set the DESTDIR env var when building the package so that files end up in their intended locations. Default behavior is not to set DESTDIR for backwards compatibility. Helps address issue #4993 and issue #5257. Also, remove unused CPACK_USE_DESTDIR variable. ENH: Add variable CPACK_PACKAGING_INSTALL_PREFIX to allow overriding the CPack GetPackagingInstallPrefix from a project's CMakeLists file if necessary. Could be used to remove the annoying /usr prefix still used by default in the Mac PackageMaker generator. 2007-10-31 08:50:17 -04:00
Bill Hoffman eb14543939 ENH: cpack changes, remove the escape variable stuff as it is not needed if you provide a config file for cpack 2007-10-30 23:02:43 -04:00
Bill Hoffman 02f79c7242 ENH: add ability to set installer icons, links to web pages, nsis code in the icon section of the template, and ability to escape variables correctly 2007-10-29 08:11:44 -04:00
Bill Hoffman 617e6082fa ENH: fix bitmap escapes 2007-10-22 17:16:33 -04:00
Bill Hoffman cfb84d8562 ENH: allow CPACK_PACKAGE_ICON to be not set 2007-10-22 11:40:07 -04:00
Alexander Neundorf 5ceafcb7e2 STYLE: mark the generator options as advanced
Alex
2007-08-31 16:27:08 -04:00
Alexander Neundorf 7432ef206e ENH: add empty RPM package generator, Eric Noulard wants to work on it
Alex
2007-08-08 11:33:42 -04:00
Alexander Neundorf 68674bd0d7 ENH: better error messages from the debian package generator
-don't display the cpack help if a generator failed with some problem
-check for cmSystemTools::GetErrorOccuredFlag()

Alex
2007-08-03 15:26:30 -04:00
Andy Cedilnik f2c0dbd164 ENH: More work on the packaging. Add Applicaitons, add icons, etc 2007-02-13 14:13:51 -05:00
Bill Hoffman 4925e64b97 ENH: add support for cygwin source and binary packaging 2007-02-02 14:40:26 -05:00
Andy Cedilnik e31dc3abe5 ENH: Several CPack fixes. First, allow user to set CMAKE_MODULE_PATH for CPack; make SetOptionIfNotSet more robust to handle empty options; do test TGZ, STGZ, and TZ, Add handling (and test) of Install Script; set environment variable CMAKE_INSTALL_PREFIX 2006-10-12 13:05:50 -04:00
Andy Cedilnik e36ae0fcb8 ENH: Several cleanups and support for multiple generators 2006-07-09 13:20:07 -04:00
Bill Hoffman 9ab387b7d9 ENH: add a comment 2006-06-15 21:43:59 -04:00
Andy Cedilnik 0964cb6c64 ENH: Add support for overwriting the name of the file CPackConfig.cmake and CPackSourceConfig.cmake 2006-06-12 14:21:36 -04:00
Andy Cedilnik a90e97e970 BUG: Prevent stripping of sources 2006-05-10 17:26:57 -04:00
Andy Cedilnik de4127cdda ENH: Add more install registry options 2006-04-29 20:01:34 -04:00
Andy Cedilnik 4e9564a0f1 ENH: Propagate system name and handle win32/win64 name 2006-04-23 19:45:43 -04:00
Brad King 9db4220671 BUG: Need to ignore source packaging of #*# files created by emacs during editing. 2006-04-18 10:01:37 -04:00
Andy Cedilnik c09c3c6bfa ENH: Support for packaging source, several cleanups and more yeehaa... 2006-04-15 13:02:18 -04:00
Andy Cedilnik c836be6f7b ENH: Start adding support for packaging component and to package into a subdirectory 2006-04-14 08:58:13 -04:00
Andy Cedilnik bad1215a85 ENH: Add support for preinstall for cmake generated projects when packaging them 2006-04-10 13:44:39 -04:00
Andy Cedilnik 0bad15c302 ENH: Deprecate CPACK_BINARY_DIR and add CPACK_INSTALL_CMAKE_PROJECTS 2006-04-10 11:09:52 -04:00
Andy Cedilnik ccf1eed298 ENH: Allow to overwrite CPACK_BINARY_DIR 2006-04-07 16:35:28 -04:00
Andy Cedilnik b1b052fd23 ENH: Several changes to for NSIS 2006-03-01 15:00:07 -05:00
Andy Cedilnik 4077d6d80c ENH: Install system libraries only if project requires them 2006-03-01 13:15:44 -05:00
Andy Cedilnik b25820ebd4 ENH: Add resource files for PackageMaker 2006-02-28 14:18:13 -05:00
Andy Cedilnik ee227d3af5 ENH: Several packaging issues. Allow random variables to be passed to cpack (anything starting with CPACK_, add preinstall to the list of dependencies for package, fix typos 2006-02-27 10:58:20 -05:00
Andy Cedilnik 1d96f839d7 ENH: Several NSIS features 2006-02-23 09:38:40 -05:00
Brad King 06b6308ab4 BUG: Do not install MSVC dlls for a non-MSVC build. 2006-02-16 20:15:03 -05:00
Andy Cedilnik 3bce601c41 ENH: Improved support for icons, random directories, etc... 2006-02-14 10:28:40 -05:00
Andy Cedilnik 2a6bc87567 ENH: Some improvements: specify link, copy msvc libraries, fix install directory 2006-01-11 11:08:15 -05:00
Andy Cedilnik 3194220e83 ENH: Cleanup 2006-01-09 18:20:02 -05:00
Andy Cedilnik 0c302a7e5f ENH: Fix test for cpack variables, add support for icon on windows 2006-01-09 11:26:31 -05:00
Andy Cedilnik 5358809a5c ENH: More CPack stuff and fix zlib compression 2006-01-04 15:14:09 -05:00