mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
[WIP] dynamic linking
This commit is contained in:
@@ -13,7 +13,7 @@ set(LIBS ${LIBS} SortFilterProxyModel)
|
|||||||
include(${CLIENT_ROOT_DIR}/3rd/qrcodegen/qrcodegen.cmake)
|
include(${CLIENT_ROOT_DIR}/3rd/qrcodegen/qrcodegen.cmake)
|
||||||
include(${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/QSimpleCrypto.cmake)
|
include(${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/QSimpleCrypto.cmake)
|
||||||
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
|
||||||
add_subdirectory(${CLIENT_ROOT_DIR}/3rd/zlib)
|
add_subdirectory(${CLIENT_ROOT_DIR}/3rd/zlib)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(ZLIB_LIBRARY $<IF:$<CONFIG:Debug>,zlibd,zlib>)
|
set(ZLIB_LIBRARY $<IF:$<CONFIG:Debug>,zlibd,zlib>)
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
namespace libssh {
|
namespace libssh {
|
||||||
Client::Client(QObject *parent) : QObject(parent)
|
Client::Client(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
ssh_init();
|
// ssh_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
Client::~Client()
|
Client::~Client()
|
||||||
{
|
{
|
||||||
ssh_finalize();
|
// ssh_finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorCode Client::connectToHost(const ServerCredentials &credentials)
|
ErrorCode Client::connectToHost(const ServerCredentials &credentials)
|
||||||
|
|||||||
Reference in New Issue
Block a user