2014-08-01 12:55:31 +04:00
|
|
|
|
|
|
|
if(APPLE)
|
2015-06-15 15:57:33 +03:00
|
|
|
add_custom_target( legacy_mac_overlayplugin ALL
|
2015-06-22 14:53:05 +03:00
|
|
|
xcodebuild -workspace ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloud.xcworkspace
|
|
|
|
-scheme SyncStateFinder.osax -configuration Release SYMROOT=${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}
|
|
|
|
OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}
|
|
|
|
COMMENT building Legacy Mac Overlay icons)
|
2015-06-15 15:57:33 +03:00
|
|
|
|
2016-03-30 12:20:44 +03:00
|
|
|
# Contrary to popular belief, this is called like this no matter what theme/OEM.
|
|
|
|
set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/ownCloud.icns")
|
|
|
|
|
2015-06-15 15:57:33 +03:00
|
|
|
# The bundle identifier and application group need to have compatible values with the client
|
|
|
|
# to be able to open a Mach port across the extension's sandbox boundary.
|
|
|
|
# Pass the info through the xcodebuild command line and make sure that the project uses
|
|
|
|
# those user-defined settings to build the plist.
|
|
|
|
add_custom_target( mac_overlayplugin ALL
|
|
|
|
xcodebuild -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
|
2016-12-12 14:18:51 +03:00
|
|
|
-target FinderSyncExt -configuration Release "SYMROOT=${CMAKE_CURRENT_BINARY_DIR}"
|
|
|
|
"OC_OEM_SHARE_ICNS=${OC_OEM_SHARE_ICNS}"
|
|
|
|
"OC_APPLICATION_NAME=${APPLICATION_NAME}"
|
|
|
|
"OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}"
|
|
|
|
"OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}"
|
|
|
|
COMMENT building Mac Overlay icons
|
|
|
|
VERBATIM)
|
2016-03-30 12:20:44 +03:00
|
|
|
add_dependencies(mac_overlayplugin ${APPLICATION_EXECUTABLE}) # for the ownCloud.icns to be generated
|
|
|
|
|
2014-08-01 12:55:31 +04:00
|
|
|
|
2016-04-15 17:56:54 +03:00
|
|
|
# legacy
|
2014-10-23 14:19:19 +04:00
|
|
|
INSTALL( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/SyncStateFinder.osax/Contents
|
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/Library/ScriptingAdditions/SyncStateFinder.osax/ )
|
2016-04-15 17:56:54 +03:00
|
|
|
|
|
|
|
# >= 10.10.x
|
2015-06-15 15:57:33 +03:00
|
|
|
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex
|
2016-04-15 17:56:54 +03:00
|
|
|
DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
|
2015-06-15 15:57:33 +03:00
|
|
|
USE_SOURCE_PERMISSIONS)
|
2014-08-01 12:55:31 +04:00
|
|
|
endif(APPLE)
|
|
|
|
|