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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-11-17 13:52:47 +0300
committerCamila (Rebase PR Action) <hello@camila.codes>2021-11-23 14:41:29 +0300
commitec64246dc7f0f2b865ee2cb92f6996f15fd1eaaa (patch)
tree4c3810d8d3e1b545ce676b3cf87a49452ba2c429 /shell_integration
parentc89d2abf5a0bf36f1dd4321f7458650ec87afc84 (diff)
Only build app bundle if requested
For development a app bundle is not needed. The app bundle is only needed for distribution and macdeployqt takes a lot of time. Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'shell_integration')
-rw-r--r--shell_integration/MacOSX/CMakeLists.txt38
1 files changed, 20 insertions, 18 deletions
diff --git a/shell_integration/MacOSX/CMakeLists.txt b/shell_integration/MacOSX/CMakeLists.txt
index 0f3fd0917..99116c76d 100644
--- a/shell_integration/MacOSX/CMakeLists.txt
+++ b/shell_integration/MacOSX/CMakeLists.txt
@@ -1,24 +1,26 @@
if(APPLE)
-set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/${APPLICATION_ICON_NAME}.icns")
+ set(OC_OEM_SHARE_ICNS "${CMAKE_BINARY_DIR}/src/gui/${APPLICATION_ICON_NAME}.icns")
-# 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
- -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
- -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}"
+ # 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
+ -project ${CMAKE_SOURCE_DIR}/shell_integration/MacOSX/OwnCloudFinderSync/OwnCloudFinderSync.xcodeproj
+ -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)
-add_dependencies(mac_overlayplugin nextcloud) # for the ownCloud.icns to be generated
+ add_dependencies(mac_overlayplugin nextcloud) # for the ownCloud.icns to be generated
-INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex
- DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
- USE_SOURCE_PERMISSIONS)
-endif(APPLE)
+ if (BUILD_OWNCLOUD_OSX_BUNDLE)
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Release/FinderSyncExt.appex
+ DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns
+ USE_SOURCE_PERMISSIONS)
+ endif()
+endif()