CPackDMG.cmake 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.
  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_SLA_DIR
  50. #
  51. # Directory where license and menu files for different languages are stored.
  52. #
  53. # .. variable:: CPACK_DMG_SLA_LANGUAGES
  54. #
  55. # Languages for which a license agreement is provided when mounting the
  56. # generated DMG.
  57. #
  58. # For every language in this list, CPack will try to find files
  59. # ``<language>.menu.txt`` and ``<language>.license.txt`` in the directory
  60. # specified by the :variable:`CPACK_DMG_SLA_DIR` variable.
  61. #
  62. # .. variable:: CPACK_COMMAND_HDIUTIL
  63. #
  64. # Path to the hdiutil(1) command used to operate on disk image files on Mac
  65. # OS X. This variable can be used to override the automatically detected
  66. # command (or specify its location if the auto-detection fails to find it.)
  67. #
  68. # .. variable:: CPACK_COMMAND_SETFILE
  69. #
  70. # Path to the SetFile(1) command used to set extended attributes on files and
  71. # directories on Mac OS X. This variable can be used to override the
  72. # automatically detected command (or specify its location if the
  73. # auto-detection fails to find it.)
  74. #
  75. # .. variable:: CPACK_COMMAND_REZ
  76. #
  77. # Path to the Rez(1) command used to compile resources on Mac OS X. This
  78. # variable can be used to override the automatically detected command (or
  79. # specify its location if the auto-detection fails to find it.)
  80. #=============================================================================
  81. # Copyright 2006-2012 Kitware, Inc.
  82. #
  83. # Distributed under the OSI-approved BSD License (the "License");
  84. # see accompanying file Copyright.txt for details.
  85. #
  86. # This software is distributed WITHOUT ANY WARRANTY; without even the
  87. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  88. # See the License for more information.
  89. #=============================================================================
  90. # (To distribute this file outside of CMake, substitute the full
  91. # License text for the above reference.)