mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-11 10:14:59 +03:00
b5ed352aa3
Only confluct resolution, do not compile or works Conflicts: CMakeLists.txt CPackConfig.cmake ConfigureChecks.cmake client/csync_client.c cmake/Modules/DefineCompilerFlags.cmake cmake/Modules/DefineInstallationPaths.cmake cmake/Modules/FindIconv.cmake cmake/Modules/FindIniparser.cmake cmake/Modules/FindNeon.cmake config.h.cmake config/CMakeLists.txt config/ocsync.conf doc/CMakeLists.txt modules/csync_owncloud.c modules/csync_sftp2.c src/CMakeLists.txt src/csync.c src/csync.h src/csync_config.c src/csync_exclude.c src/csync_lock.c src/csync_macros.h src/csync_misc.c src/csync_misc.h src/csync_private.h src/csync_propagate.c src/csync_statedb.c src/csync_statedb.h src/csync_update.c src/csync_util.c src/csync_util.h src/std/c_dir.c src/std/c_file.c src/std/c_private.h src/std/c_string.c src/std/c_string.h src/std/c_time.c src/vio/csync_vio.c src/vio/csync_vio.h src/vio/csync_vio_file_stat.h src/vio/csync_vio_local.c src/vio/csync_vio_method.h tests/CMakeLists.txt tests/csync_tests/check_csync_statedb_load.c tests/csync_tests/check_csync_statedb_query.c tests/csync_tests/check_csync_treewalk.c tests/csync_tests/check_csync_update.c tests/ownCloud/HTTP/DAV.pm tests/ownCloud/ownCloud/Test.pm tests/std_tests/check_std_c_str.c tests/vio_tests/check_vio.c
83 lines
1.8 KiB
CMake
83 lines
1.8 KiB
CMake
project(modules C)
|
|
|
|
find_package(LibSSH 0.4.0)
|
|
find_package(Neon 0.29.0)
|
|
|
|
set(PLUGIN_VERSION_INSTALL_DIR "${PLUGIN_INSTALL_DIR}-${LIBRARY_SOVERSION}")
|
|
|
|
set(MODULES_PUBLIC_INCLUDE_DIRS
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
CACHE INTERNAL "modules include directories"
|
|
)
|
|
|
|
set(MODULES_PRIVATE_INCLUDE_DIRS
|
|
${CSTDLIB_PUBLIC_INCLUDE_DIRS}
|
|
${CSYNC_PUBLIC_INCLUDE_DIRS}
|
|
${HTTPBF_PUBLIC_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(SMB_PLUGIN
|
|
ocsync_smb
|
|
)
|
|
|
|
set(SFTP_PLUGIN
|
|
ocsync_sftp
|
|
)
|
|
|
|
set(OWNCLOUD_PLUGIN
|
|
ocsync_owncloud
|
|
)
|
|
|
|
include_directories(
|
|
${MODULES_PUBLIC_INCLUDE_DIRS}
|
|
${MODULES_PRIVATE_INCLUDE_DIRS}
|
|
)
|
|
|
|
find_package(SMBClient)
|
|
if(SMBCLIENT_LIBRARY)
|
|
include_directories(${SMBCLIENT_INCLUDE_DIRS})
|
|
macro_add_plugin(${SMB_PLUGIN} csync_smb.c)
|
|
target_link_libraries(${SMB_PLUGIN} ${CSYNC_LIBRARY} ${SMBCLIENT_LIBRARIES})
|
|
|
|
install(
|
|
TARGETS
|
|
${SMB_PLUGIN}
|
|
DESTINATION
|
|
${PLUGIN_VERSION_INSTALL_DIR}
|
|
)
|
|
endif(SMBCLIENT_LIBRARY)
|
|
|
|
macro_add_plugin(ocsync_dummy csync_dummy.c)
|
|
target_link_libraries(ocsync_dummy ${CSYNC_LIBRARY})
|
|
|
|
if (LIBSSH_FOUND)
|
|
macro_add_plugin(${SFTP_PLUGIN} csync_sftp.c)
|
|
target_link_libraries(${SFTP_PLUGIN} ${CSYNC_LIBRARY} ${LIBSSH_LIBRARIES})
|
|
|
|
install(
|
|
TARGETS
|
|
${SFTP_PLUGIN}
|
|
DESTINATION
|
|
${PLUGIN_VERSION_INSTALL_DIR}
|
|
)
|
|
endif (LIBSSH_FOUND)
|
|
|
|
if (NEON_FOUND)
|
|
include_directories( ${NEON_INCLUDE_DIRS} )
|
|
macro_add_plugin(${OWNCLOUD_PLUGIN} csync_owncloud.c csync_owncloud_recursive_propfind.c csync_owncloud_util.c)
|
|
target_link_libraries(${OWNCLOUD_PLUGIN} ${CSYNC_LIBRARY} ${NEON_LIBRARIES} ${HTTPBF_LIBRARY})
|
|
|
|
install(
|
|
TARGETS
|
|
${OWNCLOUD_PLUGIN}
|
|
DESTINATION
|
|
${PLUGIN_VERSION_INSTALL_DIR}
|
|
)
|
|
endif (NEON_FOUND)
|
|
|
|
# create test file as bad plugin for the vio testcase
|
|
file(WRITE
|
|
${CMAKE_CURRENT_BINARY_DIR}/ocsync_bad.so
|
|
"bad plugin"
|
|
)
|
|
|