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:
authorChristian Kamm <mail@ckamm.de>2019-05-02 16:26:02 +0300
committerChristian Kamm <mail@ckamm.de>2019-06-07 10:26:33 +0300
commit2c0a379f3acfcc5dad70683c81d22d2a13f148e0 (patch)
treeffdaf10382bfdd76c1ba45b83e568ba1222544bd /THEME.cmake
parenta6f93919abde390c997df79af98fec14ff9a9813 (diff)
Minimal libcloudproviders support #7209
- Add it as an optional dependency for linux builds, controlled by WITH_LIBCLOUDPROVIDERS, which is enabled automatically if the dependencies are available. Note that >=0.3.0 is required. - Add code to export sync folders through the library and to add a minimal "Settings..." menu action. - Set up cloud provider registration by installing a file into a path like /usr/share/cloud-providers/. - DBus name and path are derived from APPLICATION_REV_DOMAIN by default and may be overridden with APPLICATION_CLOUDPROVIDERS_DBUS_NAME and APPLICATION_CLOUDPROVIDERS_DBUS_PATH if necessary.
Diffstat (limited to 'THEME.cmake')
-rw-r--r--THEME.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/THEME.cmake b/THEME.cmake
index a5dc42fb1..162ed3fb8 100644
--- a/THEME.cmake
+++ b/THEME.cmake
@@ -10,6 +10,15 @@ if(NOT DEFINED APPLICATION_VIRTUALFILE_SUFFIX)
set(APPLICATION_VIRTUALFILE_SUFFIX "${APPLICATION_SHORTNAME}_virtual" CACHE STRING "Virtual file suffix (not including the .)")
endif()
+# Default dbus name and path
+if(NOT DEFINED APPLICATION_CLOUDPROVIDERS_DBUS_NAME)
+ set(APPLICATION_CLOUDPROVIDERS_DBUS_NAME ${APPLICATION_REV_DOMAIN})
+endif()
+if(NOT DEFINED APPLICATION_CLOUDPROVIDERS_DBUS_PATH)
+ set(APPLICATION_CLOUDPROVIDERS_DBUS_PATH "/${APPLICATION_CLOUDPROVIDERS_DBUS_NAME}")
+ string(REPLACE "." "/" APPLICATION_CLOUDPROVIDERS_DBUS_PATH ${APPLICATION_CLOUDPROVIDERS_DBUS_PATH})
+endif()
+
# need this logic to not mess with re/uninstallations via macosx.pkgproj
if(${APPLICATION_REV_DOMAIN} STREQUAL "com.owncloud.desktopclient")
set(APPLICATION_REV_DOMAIN_INSTALLER "com.ownCloud.client")