CMakeLists.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. if(APPLE)
  2. add_custom_target( legacy_mac_overlayplugin ALL
  3. xcodebuild -workspace ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloud.xcworkspace
  4. -scheme SyncStateFinder.osax -configuration Release SYMROOT=${CMAKE_CURRENT_BINARY_DIR}
  5. OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}
  6. OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}
  7. COMMENT building Legacy Mac Overlay icons)
  8. # Contrary to popular belief, this is called like this no matter what theme/OEM.
  9. set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/ownCloud.icns")
  10. # The bundle identifier and application group need to have compatible values with the client
  11. # to be able to open a Mach port across the extension's sandbox boundary.
  12. # Pass the info through the xcodebuild command line and make sure that the project uses
  13. # those user-defined settings to build the plist.
  14. add_custom_target( mac_overlayplugin ALL
  15. xcodebuild -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
  16. -target FinderSyncExt -configuration Release SYMROOT=${CMAKE_CURRENT_BINARY_DIR}
  17. OC_OEM_SHARE_ICNS=${OC_OEM_SHARE_ICNS}
  18. OC_APPLICATION_NAME="${APPLICATION_NAME}"
  19. OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}
  20. OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}
  21. COMMENT building Mac Overlay icons)
  22. add_dependencies(mac_overlayplugin ${APPLICATION_EXECUTABLE}) # for the ownCloud.icns to be generated
  23. # legacy
  24. INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/SyncStateFinder.osax/Contents
  25. DESTINATION ${CMAKE_INSTALL_PREFIX}/Library/ScriptingAdditions/SyncStateFinder.osax/ )
  26. # >= 10.10.x
  27. INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex
  28. DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
  29. USE_SOURCE_PERMISSIONS)
  30. endif(APPLE)