Skip to content

Commit

Permalink
Merge pull request #2603 from nextcloud/remove_findqt5keychain_cmake_…
Browse files Browse the repository at this point in the history
…module

Get rid of FindQt5Keychain.cmake
  • Loading branch information
Camila authored Nov 2, 2020
2 parents dfd6cce + 0e617d0 commit 44a5567
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 64 deletions.
4 changes: 1 addition & 3 deletions admin/linux/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr ../
make -j4
make DESTDIR=/app install
make install

#Build client
cd /build
Expand All @@ -39,8 +39,6 @@ cd build-client
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D NO_SHIBBOLETH=1 \
-D BUILD_UPDATER=ON \
-D QTKEYCHAIN_LIBRARY=/app/usr/lib/x86_64-linux-gnu/libqt5keychain.so \
-D QTKEYCHAIN_INCLUDE_DIR=/app/usr/include/qt5keychain/ \
-DMIRALL_VERSION_SUFFIX=PR-$DRONE_PULL_REQUEST \
-DMIRALL_VERSION_BUILD=$DRONE_BUILD_NUMBER \
$DRONE_WORKSPACE
Expand Down
50 changes: 0 additions & 50 deletions cmake/modules/FindQt5Keychain.cmake

This file was deleted.

5 changes: 2 additions & 3 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,8 @@ set( final_src
${3rdparty_MOC}
)

if(QTKEYCHAIN_FOUND OR QT5KEYCHAIN_FOUND)
list(APPEND libsync_LINK_TARGETS ${QTKEYCHAIN_LIBRARY})
include_directories(${QTKEYCHAIN_INCLUDE_DIR})
if(Qt5Keychain_FOUND)
list(APPEND libsync_LINK_TARGETS qt5keychain)
endif()

# add executable icon on windows and osx
Expand Down
2 changes: 1 addition & 1 deletion src/gui/creds/shibbolethcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "owncloudgui.h"
#include "syncengine.h"

#include <keychain.h>
#include <qt5keychain/keychain.h>

using namespace QKeychain;

Expand Down
2 changes: 1 addition & 1 deletion src/gui/proxyauthhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <QApplication>

#include <keychain.h>
#include <qt5keychain/keychain.h>

using namespace OCC;
using namespace QKeychain;
Expand Down
3 changes: 1 addition & 2 deletions src/libsync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ target_link_libraries(${synclib_NAME}

if (NOT TOKEN_AUTH_ONLY)
find_package(Qt5 REQUIRED COMPONENTS Widgets Svg)
target_link_libraries(${synclib_NAME} Qt5::Widgets Qt5::Svg ${QTKEYCHAIN_LIBRARY})
target_include_directories(${synclib_NAME} PRIVATE ${QTKEYCHAIN_INCLUDE_DIR})
target_link_libraries(${synclib_NAME} Qt5::Widgets Qt5::Svg qt5keychain)
endif()

if(INOTIFY_FOUND)
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <QJsonObject>
#include <QJsonArray>

#include <keychain.h>
#include <qt5keychain/keychain.h>
#include "creds/abstractcredentials.h"

using namespace QKeychain;
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <QUuid>
#include <QScopeGuard>

#include <keychain.h>
#include <qt5keychain/keychain.h>
#include "common/utility.h"

#include "wordlist.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/creds/httpcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <QJsonDocument>
#include <QBuffer>

#include <keychain.h>
#include <qt5keychain/keychain.h>

#include "account.h"
#include "accessmanager.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/creds/keychainchunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define KEYCHAINCHUNK_H

#include <QObject>
#include <keychain.h>
#include <qt5keychain/keychain.h>
#include "accountfwd.h"

// We don't support insecure fallback
Expand Down

0 comments on commit 44a5567

Please sign in to comment.