mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Isolate a library to add a dbus interface around.
This commit is contained in:
parent
dd4f76c5c7
commit
324a9d2480
1 changed files with 49 additions and 48 deletions
|
@ -20,30 +20,49 @@ mirall/sslerrorsdialog.ui
|
|||
|
||||
qt4_wrap_ui(mirall_UI_SRCS ${mirall_UI})
|
||||
|
||||
set(mirall_SRCS
|
||||
mirall/application.cpp
|
||||
mirall/fileutils.cpp
|
||||
set(libsync_SRCS
|
||||
mirall/folderman.cpp
|
||||
mirall/folder.cpp
|
||||
mirall/folderwatcher.cpp
|
||||
mirall/folderwizard.cpp
|
||||
mirall/gitfolder.cpp
|
||||
mirall/networklocation.cpp
|
||||
mirall/temporarydir.cpp
|
||||
mirall/syncresult.cpp
|
||||
mirall/unisonfolder.cpp
|
||||
mirall/networklocation.cpp
|
||||
mirall/mirallconfigfile.cpp
|
||||
mirall/csyncfolder.cpp
|
||||
mirall/owncloudfolder.cpp
|
||||
mirall/csyncthread.cpp
|
||||
mirall/fileutils.cpp
|
||||
mirall/temporarydir.cpp
|
||||
)
|
||||
set(libsync_HEADERS mirall/csyncfolder.h)
|
||||
|
||||
IF( USE_INOTIFY )
|
||||
add_definitions( -DUSE_INOTIFY )
|
||||
set(libsync_SRCS ${libsync_SRCS} mirall/inotify.cpp)
|
||||
set(libsync_HEADERS ${libsync_HEADERS} mirall/inotify.h)
|
||||
ENDIF()
|
||||
|
||||
qt4_wrap_cpp(syncMoc ${libsync_HEADERS})
|
||||
|
||||
add_library(mirallsync SHARED ${libsync_SRCS} ${syncMoc})
|
||||
add_library(owncloudsync SHARED ${libsync_SRCS} ${syncMoc})
|
||||
set_target_properties( owncloudsync PROPERTIES COMPILE_DEFINITIONS OWNCLOUD_CLIENT)
|
||||
|
||||
set(mirall_SRCS
|
||||
mirall/application.cpp
|
||||
mirall/folderwizard.cpp
|
||||
mirall/statusdialog.cpp
|
||||
mirall/owncloudwizard.cpp
|
||||
mirall/owncloudsetupwizard.cpp
|
||||
mirall/owncloudinfo.cpp
|
||||
mirall/theme.cpp
|
||||
mirall/miralltheme.cpp
|
||||
mirall/owncloudtheme.cpp
|
||||
mirall/folderman.cpp
|
||||
mirall/mirallconfigfile.cpp
|
||||
mirall/updatedetector.cpp
|
||||
mirall/occinfo.cpp
|
||||
mirall/sslerrordialog.cpp
|
||||
mirall/logbrowser.cpp
|
||||
mirall/theme.cpp
|
||||
mirall/owncloudtheme.cpp
|
||||
mirall/miralltheme.cpp
|
||||
)
|
||||
|
||||
set(mirall_HEADERS
|
||||
|
@ -72,33 +91,13 @@ if( UNIX AND NOT APPLE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
IF( USE_INOTIFY )
|
||||
add_definitions( -DUSE_INOTIFY )
|
||||
set(mirall_SRCS ${mirall_SRCS} mirall/inotify.cpp)
|
||||
set(mirall_HEADERS ${mirall_HEADERS} mirall/inotify.h)
|
||||
ENDIF()
|
||||
|
||||
# Disabled the csync found check. Csync required for now.
|
||||
set(mirall_SRCS
|
||||
${mirall_SRCS}
|
||||
mirall/csyncfolder.cpp
|
||||
mirall/owncloudfolder.cpp
|
||||
mirall/csyncthread.cpp
|
||||
)
|
||||
# csync is required.
|
||||
include_directories(${CSYNC_INCLUDE_DIR}/csync ${CSYNC_INCLUDE_DIR})
|
||||
|
||||
set(mirall_HEADERS
|
||||
${mirall_HEADERS}
|
||||
mirall/csyncfolder.h
|
||||
mirall/owncloudfolder.h)
|
||||
|
||||
qt4_wrap_cpp(mirallMoc ${mirall_HEADERS})
|
||||
|
||||
qt4_add_translation(mirall_I18N ${TRANSLATIONS})
|
||||
|
||||
add_library(mirall_static STATIC ${mirall_SRCS} ${mirall_UI_SRCS} ${mirallMoc} ${mirall_HEADERS} ${MIRALL_RC_SRC} ${mirall_I18N})
|
||||
target_link_libraries(mirall_static ${QT_LIBRARIES})
|
||||
|
||||
set( final_src
|
||||
${mirall_HEADERS}
|
||||
${MIRALL_RC_SRC}
|
||||
|
@ -129,12 +128,14 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
|
|||
# add_executable(owncloud main.cpp ${final_src})
|
||||
add_executable(owncloud WIN32 main.cpp ${final_src})
|
||||
set_target_properties( owncloud PROPERTIES COMPILE_DEFINITIONS OWNCLOUD_CLIENT)
|
||||
# add_executable(owncloud main.cpp ${final_src})
|
||||
|
||||
# mirall is not built for the bundle
|
||||
add_executable( mirall WIN32 main.cpp )
|
||||
target_link_libraries(mirall mirall_static)
|
||||
add_executable( mirall WIN32 main.cpp ${final_src})
|
||||
|
||||
target_link_libraries(mirall ${QT_LIBRARIES} )
|
||||
target_link_libraries(mirall mirallsync)
|
||||
target_link_libraries(mirall ${CSYNC_LIBRARY})
|
||||
|
||||
set_target_properties( mirall PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} )
|
||||
install(TARGETS mirall
|
||||
|
@ -166,7 +167,7 @@ set_target_properties( owncloud PROPERTIES
|
|||
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY}
|
||||
)
|
||||
target_link_libraries(owncloud ${QT_LIBRARIES} )
|
||||
|
||||
target_link_libraries(owncloud owncloudsync)
|
||||
target_link_libraries(owncloud ${CSYNC_LIBRARY})
|
||||
|
||||
install(TARGETS owncloud
|
||||
|
|
Loading…
Reference in a new issue