From: Moritz Schlarb Date: Thu, 24 May 2018 14:28:02 +0000 (+0200) Subject: Don't use bundled QuaZip X-Git-Tag: archive/raspbian/6.2.9-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ed2978b709c8a0e5f392d040d2f7168b807b2c4;p=seafile-client.git Don't use bundled QuaZip Gbp-Pq: Name 0002-Don-t-use-bundled-QuaZip.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1247948..2778dec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,8 +206,6 @@ if (APPLE) SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") endif() -ADD_DEFINITIONS(-DQUAZIP_STATIC) - # MOC FILES SET(moc_headers src/seafile-applet.h @@ -293,7 +291,6 @@ SET(moc_headers src/filebrowser/transfer-mgr.h src/filebrowser/thumbnail-service.h third_party/QtAwesome/QtAwesome.h - third_party/quazip/quazipfile.h ${platform_specific_moc_headers} ) @@ -498,7 +495,6 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/third_party/QtAwesome - ${CMAKE_CURRENT_SOURCE_DIR}/third_party/quazip ) FOREACH(USE_QT_LIBRARY ${USE_QT_LIBRARIES}) @@ -591,27 +587,12 @@ ENDIF() ADD_SC_LIBRARY(utils ${utils_sources}) -# library quazip -LIST(APPEND quazip_sources - third_party/quazip/JlCompress.cpp - third_party/quazip/quazip.cpp - third_party/quazip/quazipfile.cpp - third_party/quazip/quazipfileinfo.cpp - third_party/quazip/quaziodevice.cpp - third_party/quazip/quagzipfile.cpp - third_party/quazip/quazipnewinfo.cpp - third_party/quazip/quaadler32.cpp - third_party/quazip/quazipdir.cpp - third_party/quazip/quacrc32.cpp - third_party/quazip/qioapi.cpp - third_party/quazip/zip.c - third_party/quazip/unzip.c - ) - -ADD_SC_LIBRARY(quazip ${quazip_sources}) +SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/quazip") +FIND_PACKAGE(QuaZip5 REQUIRED) +INCLUDE_DIRECTORIES(${QUAZIP_INCLUDE_DIRS}) +SET(EXTRA_LIBS ${EXTRA_LIBS} ${QUAZIP_LIBRARIES}) -SET(SC_LIBS utils quazip) -#SET(SC_LIBS utils) +SET(SC_LIBS utils) #################### ###### end: lib