mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Fix the MinGW build
- qtkeychain isn't necessarily in a qt5keychain subdirectory. - Explicitly add OpenSSL to the include directories - Make sure that the USE_OUR_OWN_SQLITE3 code is initialized for csync by calling find_package.
This commit is contained in:
parent
68ec24797b
commit
43a51c1bef
6 changed files with 12 additions and 11 deletions
|
@ -9,7 +9,12 @@
|
|||
# QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain
|
||||
# QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
|
||||
|
||||
find_path(QTKEYCHAIN_INCLUDE_DIR qt5keychain/keychain.h)
|
||||
find_path(QTKEYCHAIN_INCLUDE_DIR
|
||||
NAMES
|
||||
keychain.h
|
||||
PATH_SUFFIXES
|
||||
qt5keychain
|
||||
)
|
||||
|
||||
find_library(QTKEYCHAIN_LIBRARY
|
||||
NAMES
|
||||
|
|
|
@ -28,6 +28,8 @@ if (NOT WIN32)
|
|||
find_package(Iconv)
|
||||
endif (NOT WIN32)
|
||||
|
||||
find_package(SQLite3 3.8.0 REQUIRED)
|
||||
|
||||
include(ConfigureChecks.cmake)
|
||||
|
||||
|
||||
|
|
|
@ -138,6 +138,7 @@ set(3rdparty_INC
|
|||
)
|
||||
|
||||
include_directories(${3rdparty_INC})
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
# csync is required.
|
||||
include_directories(${CMAKE_SOURCE_DIR}/csync/src
|
||||
|
|
|
@ -12,6 +12,7 @@ include_directories(${CMAKE_SOURCE_DIR}/csync/src
|
|||
${CMAKE_BINARY_DIR}/csync/src
|
||||
)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/qjson)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
if ( APPLE )
|
||||
list(APPEND OS_SPECIFIC_LINK_LIBRARIES
|
||||
|
|
|
@ -19,11 +19,7 @@
|
|||
#include <QSettings>
|
||||
#include <QInputDialog>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
#include <qt5keychain/keychain.h>
|
||||
#else
|
||||
#include <qtkeychain/keychain.h>
|
||||
#endif
|
||||
#include <keychain.h>
|
||||
|
||||
#include "account.h"
|
||||
#include "accessmanager.h"
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
#include "cookiejar.h"
|
||||
#include "syncengine.h"
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
#include <qt5keychain/keychain.h>
|
||||
#else
|
||||
#include <qtkeychain/keychain.h>
|
||||
#endif
|
||||
#include <keychain.h>
|
||||
|
||||
using namespace QKeychain;
|
||||
|
||||
|
|
Loading…
Reference in a new issue