From 160b3a67bd4d85f11de32323ba3de61c525b64bc Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 19 Jun 2022 19:12:43 +0800 Subject: [PATCH] =?UTF-8?q?Android=E7=BC=96=E8=AF=91=E5=B1=8F=E8=94=BDopen?= =?UTF-8?q?ssl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Android/app/src/main/cpp/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Android/app/src/main/cpp/CMakeLists.txt b/Android/app/src/main/cpp/CMakeLists.txt index dfbe9f58..aa3169cb 100644 --- a/Android/app/src/main/cpp/CMakeLists.txt +++ b/Android/app/src/main/cpp/CMakeLists.txt @@ -8,9 +8,11 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${AND set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${ANDROID_ABI}) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${ANDROID_ABI}/binary) set(OPENSSL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${ANDROID_ABI}") -set(OPENSSL_INCLUDE_DIR "${OPENSSL_ROOT_DIR}/include") -set(OPENSSL_CRYPTO_LIBRARY "${OPENSSL_ROOT_DIR}/libcrypto.a") -set(OPENSSL_SSL_LIBRARY "${OPENSSL_ROOT_DIR}/libssl.a") + +#由于openssl库编译时未指定-fPIC,到时github action ci编译失败,先屏蔽掉 +#set(OPENSSL_INCLUDE_DIR "${OPENSSL_ROOT_DIR}/include") +#set(OPENSSL_CRYPTO_LIBRARY "${OPENSSL_ROOT_DIR}/libcrypto.a") +#set(OPENSSL_SSL_LIBRARY "${OPENSSL_ROOT_DIR}/libssl.a") #设置工程源码根目录 set(JNI_Root ${CMAKE_CURRENT_SOURCE_DIR})