Fix of cmake build
This commit is contained in:
parent
ad4b3dfad1
commit
a30e478cbd
3 changed files with 3 additions and 9 deletions
|
@ -39,14 +39,12 @@ if(ANDROID)
|
||||||
# As QAndroidBinder is not yet implemented with a public api
|
# As QAndroidBinder is not yet implemented with a public api
|
||||||
set(LIBS ${LIBS} Qt6::CorePrivate)
|
set(LIBS ${LIBS} Qt6::CorePrivate)
|
||||||
|
|
||||||
message("botan target arch ${CMAKE_ANDROID_ARCH_ABI}")
|
|
||||||
set(abi ${CMAKE_ANDROID_ARCH_ABI})
|
set(abi ${CMAKE_ANDROID_ARCH_ABI})
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
||||||
link_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(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.h)
|
||||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.cpp)
|
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.cpp)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(IOS)
|
if(IOS)
|
||||||
|
@ -70,8 +68,4 @@ if(IOS)
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/ios/iphone)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/ios/iphone)
|
||||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.h)
|
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.h)
|
||||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.cpp)
|
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.cpp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -503,8 +503,8 @@ if(ANDROID)
|
||||||
${CMAKE_CURRENT_LIST_DIR}/android
|
${CMAKE_CURRENT_LIST_DIR}/android
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach(abi IN LISTS ${QT_ANDROID_ABIS})
|
foreach(abi IN ITEMS ${QT_ANDROID_ABIS})
|
||||||
if(ANDROID_TARGET_ARCH EQUAL ${abi})
|
if(CMAKE_ANDROID_ARCH_ABI STREQUAL ${abi})
|
||||||
set(LIBS ${LIBS}
|
set(LIBS ${LIBS}
|
||||||
${CMAKE_CURRENT_LIST_DIR}/3rd/OpenSSL/lib/android/${abi}/libcrypto.a
|
${CMAKE_CURRENT_LIST_DIR}/3rd/OpenSSL/lib/android/${abi}/libcrypto.a
|
||||||
${CMAKE_CURRENT_LIST_DIR}/3rd/OpenSSL/lib/android/${abi}/libssl.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)
|
set(LIBS ${LIBS} qt6keychain)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/include
|
|
||||||
${CLIENT_ROOT_DIR}/3rd/OpenSSL/include
|
${CLIENT_ROOT_DIR}/3rd/OpenSSL/include
|
||||||
|
${CLIENT_ROOT_DIR}/3rd/QSimpleCrypto/include
|
||||||
${CLIENT_ROOT_DIR}/3rd/qtkeychain
|
${CLIENT_ROOT_DIR}/3rd/qtkeychain
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/3rd/qtkeychain
|
${CMAKE_CURRENT_BINARY_DIR}/3rd/qtkeychain
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue