1 Star 0 Fork 0

LXM/android_openssl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 3.77 KB
一键复制 编辑 原始数据 按行查看 历史
if (CMAKE_BUILD_TYPE EQUAL "DEBUG")
set (SSL_ROOT_PATH ${CMAKE_CURRENT_LIST_DIR}/no-asm)
else()
set (SSL_ROOT_PATH ${CMAKE_CURRENT_LIST_DIR})
endif()
if (QT_VERSION LESS 5.12.3)
message(QT_VERSION)
if (ANDROID_TARGET_ARCH STREQUAL "armeabi-v7a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.3/arm/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.3/arm/libssl.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "arm64-v8a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.3/arm64/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.3/arm64/libssl.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "x86")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.3/x86/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.3/x86/libssl.so
CACHE INTERNAL "")
endif()
else()
if (QT_VERSION EQUAL 5.12.4 OR QT_VERSION EQUAL 5.13.0)
if (ANDROID_TARGET_ARCH STREQUAL "armeabi-v7a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/arm/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/arm/libssl.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "arm64-v8a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/arm64/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/arm64/libssl.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "x86")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/x86/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/x86/libssl.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "x86_64")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/x86_64/libcrypto.so
${SSL_ROOT_PATH}/Qt-5.12.4_5.13.0/x86_64/libssl.so
CACHE INTERNAL "")
endif()
else()
if (NOT (QT_VERSION LESS 5.14.0))
message(${SSL_ROOT_PATH})
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/arm/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/arm/libssl_1_1.so
${SSL_ROOT_PATH}/latest/arm64/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/arm64/libssl_1_1.so
${SSL_ROOT_PATH}/latest/x86/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/x86/libssl_1_1.so
${SSL_ROOT_PATH}/latest/x86_64/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/x86_64/libssl_1_1.so
CACHE INTERNAL "")
else()
if (ANDROID_TARGET_ARCH STREQUAL "armeabi-v7a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/arm/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/arm/libssl_1_1.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "arm64-v8a")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/arm64/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/arm64/libssl_1_1.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "x86")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/x86/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/x86/libssl_1_1.so
CACHE INTERNAL "")
endif()
if (ANDROID_TARGET_ARCH STREQUAL "x86_64")
set(ANDROID_EXTRA_LIBS
${SSL_ROOT_PATH}/latest/x86_64/libcrypto_1_1.so
${SSL_ROOT_PATH}/latest/x86_64/libssl_1_1.so
CACHE INTERNAL "")
endif()
endif()
endif()
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lxm-space/android_openssl.git
git@gitee.com:lxm-space/android_openssl.git
lxm-space
android_openssl
android_openssl
master

搜索帮助