CPackDMG.cmake 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #.rst:
  4. # CPackDMG
  5. # --------
  6. #
  7. # DragNDrop CPack generator (Mac OS X).
  8. #
  9. # Variables specific to CPack DragNDrop generator
  10. # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  11. #
  12. # The following variables are specific to the DragNDrop installers built
  13. # on Mac OS X:
  14. #
  15. # .. variable:: CPACK_DMG_VOLUME_NAME
  16. #
  17. # The volume name of the generated disk image. Defaults to
  18. # CPACK_PACKAGE_FILE_NAME.
  19. #
  20. # .. variable:: CPACK_DMG_FORMAT
  21. #
  22. # The disk image format. Common values are UDRO (UDIF read-only), UDZO (UDIF
  23. # zlib-compressed) or UDBZ (UDIF bzip2-compressed). Refer to hdiutil(1) for
  24. # more information on other available formats. Defaults to UDZO.
  25. #
  26. # .. variable:: CPACK_DMG_DS_STORE
  27. #
  28. # Path to a custom DS_Store file. This .DS_Store file e.g. can be used to
  29. # specify the Finder window position/geometry and layout (such as hidden
  30. # toolbars, placement of the icons etc.). This file has to be generated by
  31. # the Finder (either manually or through AppleScript) using a normal folder
  32. # from which the .DS_Store file can then be extracted.
  33. #
  34. # .. variable:: CPACK_DMG_DS_STORE_SETUP_SCRIPT
  35. #
  36. # Path to a custom AppleScript file. This AppleScript is used to generate
  37. # a .DS_Store file which specifies the Finder window position/geometry and
  38. # layout (such as hidden toolbars, placement of the icons etc.).
  39. # By specifying a custom AppleScript there is no need to use
  40. # CPACK_DMG_DS_STORE, as the .DS_Store that is generated by the AppleScript
  41. # will be packaged.
  42. #
  43. # .. variable:: CPACK_DMG_BACKGROUND_IMAGE
  44. #
  45. # Path to an image file to be used as the background. This file will be
  46. # copied to .background/background.<ext>, where ext is the original image file
  47. # extension. The background image is installed into the image before
  48. # CPACK_DMG_DS_STORE_SETUP_SCRIPT is executed or CPACK_DMG_DS_STORE is
  49. # installed. By default no background image is set.
  50. #
  51. # .. variable:: CPACK_DMG_DISABLE_APPLICATIONS_SYMLINK
  52. #
  53. # Default behaviour is to include a symlink to ``/Applications`` in the DMG.
  54. # Set this option to ``ON`` to avoid adding the symlink.
  55. #
  56. # .. variable:: CPACK_DMG_SLA_DIR
  57. #
  58. # Directory where license and menu files for different languages are stored.
  59. # Setting this causes CPack to look for a ``<language>.menu.txt`` and
  60. # ``<language>.license.txt`` file for every language defined in
  61. # ``CPACK_DMG_SLA_LANGUAGES``. If both this variable and
  62. # ``CPACK_RESOURCE_FILE_LICENSE`` are set, CPack will only look for the menu
  63. # files and use the same license file for all languages.
  64. #
  65. # .. variable:: CPACK_DMG_SLA_LANGUAGES
  66. #
  67. # Languages for which a license agreement is provided when mounting the
  68. # generated DMG. A menu file consists of 9 lines of text. The first line is
  69. # is the name of the language itself, uppercase, in English (e.g. German).
  70. # The other lines are translations of the following strings:
  71. #
  72. # - Agree
  73. # - Disagree
  74. # - Print
  75. # - Save...
  76. # - You agree to the terms of the License Agreement when you click the
  77. # "Agree" button.
  78. # - Software License Agreement
  79. # - This text cannot be saved. The disk may be full or locked, or the file
  80. # may be locked.
  81. # - Unable to print. Make sure you have selected a printer.
  82. #
  83. # For every language in this list, CPack will try to find files
  84. # ``<language>.menu.txt`` and ``<language>.license.txt`` in the directory
  85. # specified by the :variable:`CPACK_DMG_SLA_DIR` variable.
  86. #
  87. # .. variable:: CPACK_COMMAND_HDIUTIL
  88. #
  89. # Path to the hdiutil(1) command used to operate on disk image files on Mac
  90. # OS X. This variable can be used to override the automatically detected
  91. # command (or specify its location if the auto-detection fails to find it.)
  92. #
  93. # .. variable:: CPACK_COMMAND_SETFILE
  94. #
  95. # Path to the SetFile(1) command used to set extended attributes on files and
  96. # directories on Mac OS X. This variable can be used to override the
  97. # automatically detected command (or specify its location if the
  98. # auto-detection fails to find it.)
  99. #
  100. # .. variable:: CPACK_COMMAND_REZ
  101. #
  102. # Path to the Rez(1) command used to compile resources on Mac OS X. This
  103. # variable can be used to override the automatically detected command (or
  104. # specify its location if the auto-detection fails to find it.)