diff options
author | Simon Levermann <simon-github@slevermann.de> | 2015-10-19 09:13:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-06 16:14:49 (GMT) |
commit | f88533cc067ea252254b0851d87f09ef798e2c97 (patch) | |
tree | 78686375daa00b36fa167de4b3fde5faf3b39431 /Modules/CPackDMG.cmake | |
parent | 13dc7bdb5e3a0eaaf3607b154bba77a01404a788 (diff) | |
download | CMake-f88533cc067ea252254b0851d87f09ef798e2c97.zip CMake-f88533cc067ea252254b0851d87f09ef798e2c97.tar.gz CMake-f88533cc067ea252254b0851d87f09ef798e2c97.tar.bz2 |
CPackDMG: Add support for multilingual SLAs
Multiple languages for SLAs and the SLA UI can be added via the CPack
variables CPACK_DMG_SLA_DIR and CPACK_DMG_SLA_LANGUAGES. For each
language defined in the languages variable, CPack will search for
<language>.menu.txt and <language>.license.txt in CPACK_DMG_SLA_DIR.
If the sla directory variable is not defined, the old behaviour using
CPACK_RESOURCE_FILE_LICENSE is retained.
Diffstat (limited to 'Modules/CPackDMG.cmake')
-rw-r--r-- | Modules/CPackDMG.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/CPackDMG.cmake b/Modules/CPackDMG.cmake index b7a6ba5..37d7352 100644 --- a/Modules/CPackDMG.cmake +++ b/Modules/CPackDMG.cmake @@ -36,6 +36,19 @@ # background image is set. The background image is applied after applying the # custom .DS_Store file. # +# .. variable:: CPACK_DMG_SLA_DIR +# +# Directory where license and menu files for different languages are stored. +# +# .. variable:: CPACK_DMG_SLA_LANGUAGES +# +# Languages for which a license agreement is provided when mounting the +# generated DMG. +# +# For every language in this list, CPack will try to find files +# ``<language>.menu.txt`` and ``<language>.license.txt`` in the directory +# specified by the :variable:`CPACK_DMG_SLA_DIR` variable. +# # .. variable:: CPACK_COMMAND_HDIUTIL # # Path to the hdiutil(1) command used to operate on disk image files on Mac |