Commit 528beb74 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Add EteSync dependency properly and compile it conditionally

parent 391cd520
Pipeline #32332 passed with stage
in 41 minutes and 48 seconds
......@@ -141,10 +141,6 @@ find_package(KPimGAPI ${KGAPI_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5Ldap ${KLDAP_LIB_VERSION} CONFIG REQUIRED)
# EteSync package
find_package(PkgConfig REQUIRED)
pkg_check_modules(ETESYNC REQUIRED etesync)
option(KDEPIM_RUN_ISOLATED_TESTS "Run the isolated tests." FALSE)
option(NO_REGENERATE_MIME "Don't regenerate mime file (developer-only option)" FALSE )
......
......@@ -2,6 +2,10 @@
find_package(Libkolabxml 1.1 QUIET CONFIG)
set_package_properties(Libkolabxml PROPERTIES DESCRIPTION "Kolabxml" URL "http://mirror.kolabsys.com/pub/releases" TYPE OPTIONAL PURPOSE "The Kolab XML Format Schema Definitions Library is required to build the Kolab Groupware Resource")
# EteSync package
find_package(EteSync CONFIG)
set_package_properties(EteSync PROPERTIES DESCRIPTION "EteSync" URL "https://github.com/etesync/etesync-rs" TYPE OPTIONAL PURPOSE "The EteSync library is required to build the EteSync Groupware Resource")
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresource/
${CMAKE_CURRENT_BINARY_DIR}/shared/singlefileresource/
......@@ -45,6 +49,10 @@ if (Libkolabxml_FOUND)
add_subdirectory( kolab )
endif()
if (EteSync_FOUND)
add_subdirectory( etesync )
endif()
#Disable it as it seems Facebook disabled the login and event API has been crippled
#add_subdirectory( facebook )
add_subdirectory( maildir )
......@@ -53,7 +61,6 @@ add_subdirectory( openxchange )
add_subdirectory( pop3 )
add_subdirectory( google-groupware )
add_subdirectory( etesync )
add_subdirectory( shared )
add_subdirectory( birthdays )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment