Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2012-04-16 12:51:20 +0400
committerDominik Schmidt <dev@dominik-schmidt.de>2012-04-16 15:03:20 +0400
commitccac3dcf9546ddc7287416f9ca20c48809f3b4b0 (patch)
tree2d1b992e4f87f70025b82a6a2ab98b2ff099d662 /OwnCloudCPack.cmake
parent508d05336b365777fc5d46a5b76638c916ebb1ef (diff)
Make it buildable as bundle on OSX
Diffstat (limited to 'OwnCloudCPack.cmake')
-rw-r--r--OwnCloudCPack.cmake67
1 files changed, 46 insertions, 21 deletions
diff --git a/OwnCloudCPack.cmake b/OwnCloudCPack.cmake
index a6575f2ce..c118dd79d 100644
--- a/OwnCloudCPack.cmake
+++ b/OwnCloudCPack.cmake
@@ -1,35 +1,60 @@
-INCLUDE( InstallRequiredSystemLibraries )
+include( InstallRequiredSystemLibraries )
-SET( CPACK_PACKAGE_CONTACT "Dominik Schmidt <domme@tomahawk-player.org>" )
+set( CPACK_PACKAGE_CONTACT "Dominik Schmidt <domme@tomahawk-player.org>" )
-SET( APPLICATION_NAME "ownCloud Client")
+set( APPLICATION_NAME "ownCloud Client")
-SET( CPACK_PACKAGE_FILE_NAME owncloud-setup ) # Package file name without extension. Also a directory of installer cmake-2.5.0-Linux-i686
+set( CPACK_PACKAGE_VERSION_MAJOR 1 )
+set( CPACK_PACKAGE_VERSION_MINOR 0 )
+set( CPACK_PACKAGE_VERSION_PATCH 0 )
+set( CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} )
-# CPACK_GENERATOR CPack generator to be used STGZ;TGZ;TZ
-# CPACK_INCLUDE_TOPLEVEL_DIRECTORY Controls whether CPack adds a top-level directory, usually of the form ProjectName-Version-OS, to the top of package tree. 0 to disable, 1 to enable
-# CPACK_INSTALL_CMAKE_PROJECTS List of four values: Build directory, Project Name, Project Component, Directory in the package /home/andy/vtk/CMake-bin;CMake;ALL;/
-SET( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md" ) # File used as a description of a project /path/to/project/ReadMe.txt
-SET( CPACK_PACKAGE_DESCRIPTION_SUMMARY "ownCloud Syncing Client" ) # Description summary of a project
-# CPACK_PACKAGE_EXECUTABLES List of pairs of executables and labels. Used by the NSIS generator to create Start Menu shortcuts. ccmake;CMake
-SET( CPACK_PACKAGE_INSTALL_DIRECTORY ${APPLICATION_NAME} ) # Installation directory on the target system -> C:\Program Files\fellody
-SET( CPACK_PACKAGE_INSTALL_REGISTRY_KEY ${APPLICATION_NAME} ) # Registry key used when installing this project CMake 2.5.0
-SET( CPACK_PACKAGE_NAME ${APPLICATION_NAME} ) # Package name, defaults to the project name
-SET( CPACK_PACKAGE_VENDOR "http://owncloud.com" ) # Package vendor name
+if(APPLE)
+ set( CPACK_GENERATOR "DragNDrop" )
+ set( CPACK_SOURCE_GENERATOR "")
+ set( CPACK_PACKAGE_FILE_NAME ownCloudClientSetup-${CPACK_PACKAGE_VERSION} )
+ set( CPACK_PACKAGE_ICON ${CMAKE_BINARY_DIR}/src/ownCloud.icns)
-SET( CPACK_PACKAGE_VERSION_MAJOR 1 )
-SET( CPACK_PACKAGE_VERSION_MINOR 0 )
-SET( CPACK_PACKAGE_VERSION_PATCH 0 )
-SET( CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} )
+ set( CPACK_DMG_DS_STORE "${CMAKE_SOURCE_DIR}/admin/osx/DS_Store.in")
+ set( CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/admin/osx/DMGBackground.png" )
-# SET( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt" ) # License file for the project, used by the STGZ, NSIS, and PackageMaker generators. /home/andy/vtk/CMake/Copyright.txt
+ set( CPACK_DMG_FORMAT "UDBZ" )
+ set( CPACK_DMG_VOLUME_NAME "${APPLICATION_NAME}")
+ # did not work with cmake 2.8.7, so we override MacOSXBundleInfo.plist.in
+ #set( CPACK_BUNDLE_PLIST ${CMAKE_SOURCE_DIR}/admin/osx/Info.plist )
-SET( CPACK_TOPLEVEL_TAG "unused" ) # Directory for the installed files. - needed to provide anything to avoid an error# CPACK_INSTALL_COMMANDS Extra commands to install components.
+ # do we need these?
+ #set( CPACK_SYSTEM_NAME "OSX" )
+ #set( CPACK_PACKAGE_NAME "FOO" )
+ #set( CPACK_BUNDLE_NAME "BAR" )
+endif()
+
+
+
+
+if(WIN32)
+ set( CPACK_PACKAGE_FILE_NAME owncloud-client-setup )
+ # Package file name without extension. Also a directory of installer cmake-2.5.0-Linux-i686
+ # CPACK_GENERATOR CPack generator to be used STGZ;TGZ;TZ
+ # CPACK_INCLUDE_TOPLEVEL_DIRECTORY Controls whether CPack adds a top-level directory, usually of the form ProjectName-Version-OS, to the top of package tree. 0 to disable, 1 to enable
+ # CPACK_INSTALL_CMAKE_PROJECTS List of four values: Build directory, Project Name, Project Component, Directory in the package /home/andy/vtk/CMake-bin;CMake;ALL;/
+ set( CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md" ) # File used as a description of a project /path/to/project/ReadMe.txt
+ set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "ownCloud Syncing Client" ) # Description summary of a project
+ # CPACK_PACKAGE_EXECUTABLES List of pairs of executables and labels. Used by the NSIS generator to create Start Menu shortcuts. ccmake;CMake
+ set( CPACK_PACKAGE_INSTALL_DIRECTORY ${APPLICATION_NAME} ) # Installation directory on the target system -> C:\Program Files\fellody
+ set( CPACK_PACKAGE_INSTALL_REGISTRY_KEY ${APPLICATION_NAME} ) # Registry key used when installing this project CMake 2.5.0
+ set( CPACK_PACKAGE_NAME ${APPLICATION_NAME} ) # Package name, defaults to the project name
+ set( CPACK_PACKAGE_VENDOR "http://owncloud.com" ) # Package vendor name
+endif()
+
+# set( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt" ) # License file for the project, used by the STGZ, NSIS, and PackageMaker generators. /home/andy/vtk/CMake/Copyright.txt
+
+
+set( CPACK_TOPLEVEL_TAG "unused" ) # Directory for the installed files. - needed to provide anything to avoid an error# CPACK_INSTALL_COMMANDS Extra commands to install components.
# Set the options file that needs to be included inside CMakeCPackOptions.cmake
-#SET(QT_DIALOG_CPACK_OPTIONS_FILE ${CMake_BINARY_DIR}/Source/QtDialog/QtDialogCPack.cmake)
configure_file("${CMAKE_SOURCE_DIR}/CPackOptions.cmake.in"
"${CMAKE_BINARY_DIR}/CPackOptions.cmake" @ONLY)
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_BINARY_DIR}/CPackOptions.cmake") # File included at cpack time, once per generator after setting CPACK_GENERATOR to the actual generator being used; allows per-generator setting of CPACK_* variables at cpack time. ${PROJECT_BINARY_DIR}/CPackOptions.cmake