2014-08-01 12:55:31 +04:00
|
|
|
if(APPLE)
|
2021-11-17 13:52:47 +03:00
|
|
|
set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/${APPLICATION_ICON_NAME}.icns")
|
2016-03-30 12:20:44 +03:00
|
|
|
|
2021-11-17 13:52:47 +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 ARCHS=${CMAKE_OSX_ARCHITECTURES} ONLY_ACTIVE_ARCH=NO
|
2022-12-22 18:03:40 +03:00
|
|
|
-project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj
|
2021-11-17 13:52:47 +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}"
|
2016-12-12 14:18:51 +03:00
|
|
|
COMMENT building Mac Overlay icons
|
|
|
|
VERBATIM)
|
2022-03-29 16:00:59 +03:00
|
|
|
|
|
|
|
add_custom_target( mac_fileproviderplugin ALL
|
|
|
|
xcodebuild ARCHS=${CMAKE_OSX_ARCHITECTURES} ONLY_ACTIVE_ARCH=NO
|
2022-12-22 18:03:40 +03:00
|
|
|
-project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj
|
2022-03-29 16:00:59 +03:00
|
|
|
-target FileProviderExt -configuration Release "SYMROOT=${CMAKE_CURRENT_BINARY_DIR}"
|
2022-07-08 15:49:21 +03:00
|
|
|
"OC_APPLICATION_EXECUTABLE_NAME=${APPLICATION_EXECUTABLE}"
|
|
|
|
"OC_APPLICATION_VENDOR=${APPLICATION_VENDOR}"
|
2022-03-29 16:00:59 +03:00
|
|
|
"OC_APPLICATION_NAME=${APPLICATION_NAME}"
|
|
|
|
"OC_APPLICATION_REV_DOMAIN=${APPLICATION_REV_DOMAIN}"
|
|
|
|
"OC_SOCKETAPI_TEAM_IDENTIFIER_PREFIX=${SOCKETAPI_TEAM_IDENTIFIER_PREFIX}"
|
|
|
|
COMMENT building macOS File Provider extension
|
|
|
|
VERBATIM)
|
|
|
|
|
|
|
|
add_dependencies(mac_overlayplugin mac_fileproviderplugin nextcloud) # for the ownCloud.icns to be generated
|
2016-03-30 12:20:44 +03:00
|
|
|
|
2021-11-17 13:52:47 +03:00
|
|
|
if (BUILD_OWNCLOUD_OSX_BUNDLE)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex
|
|
|
|
DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
|
|
|
|
USE_SOURCE_PERMISSIONS)
|
2022-03-29 16:00:59 +03:00
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FileProviderExt.appex
|
|
|
|
DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
|
|
|
|
USE_SOURCE_PERMISSIONS)
|
2021-11-17 13:52:47 +03:00
|
|
|
endif()
|
|
|
|
endif()
|
2014-08-01 12:55:31 +04:00
|
|
|
|