CPackDMG.cmake 4.7 KB

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