mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 10:18:14 +00:00
Fix of cmake build
This commit is contained in:
@@ -39,14 +39,12 @@ if(ANDROID)
|
||||
# As QAndroidBinder is not yet implemented with a public api
|
||||
set(LIBS ${LIBS} Qt6::CorePrivate)
|
||||
|
||||
message("botan target arch ${CMAKE_ANDROID_ARCH_ABI}")
|
||||
set(abi ${CMAKE_ANDROID_ARCH_ABI})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.h)
|
||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.cpp)
|
||||
|
||||
endif()
|
||||
|
||||
if(IOS)
|
||||
@@ -70,8 +68,4 @@ if(IOS)
|
||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/ios/iphone)
|
||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.h)
|
||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.cpp)
|
||||
|
||||
|
||||
|
||||
|
||||
endif()
|
||||
|
||||
@@ -503,8 +503,8 @@ if(ANDROID)
|
||||
${CMAKE_CURRENT_LIST_DIR}/android
|
||||
)
|
||||
|
||||
foreach(abi IN LISTS ${QT_ANDROID_ABIS})
|
||||
if(ANDROID_TARGET_ARCH EQUAL ${abi})
|
||||
foreach(abi IN ITEMS ${QT_ANDROID_ABIS})
|
||||
if(CMAKE_ANDROID_ARCH_ABI STREQUAL ${abi})
|
||||
set(LIBS ${LIBS}
|
||||
${CMAKE_CURRENT_LIST_DIR}/3rd/OpenSSL/lib/android/${abi}/libcrypto.a
|
||||
${CMAKE_CURRENT_LIST_DIR}/3rd/OpenSSL/lib/android/${abi}/libssl.a
|
||||
|
||||
@@ -19,8 +19,8 @@ add_subdirectory(${CLIENT_ROOT_DIR}/3rd/qtkeychain)
|
||||
set(LIBS ${LIBS} qt6keychain)
|
||||
|
||||
include_directories(
|
||||
${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/include
|
||||
${CLIENT_ROOT_DIR}/3rd/OpenSSL/include
|
||||
${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/include
|
||||
${CLIENT_ROOT_DIR}/3rd/qtkeychain
|
||||
${CMAKE_CURRENT_BINARY_DIR}/3rd/qtkeychain
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user