This commit is contained in:
li 2023-12-26 23:22:56 +08:00
parent 107319769f
commit 631ef0bbc3
5 changed files with 16 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,26 +10,26 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs_export/${ANDROID_ABI
set(OPENSSL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/${ANDROID_ABI}")
#openssl-fPICgithub 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(OPENSSL_INCLUDE_DIR "3rdpart/openssl/include")
set(OPENSSL_CRYPTO_LIBRARY "Android/app/libs/arm64-v8a/libcrypto.a")
set(OPENSSL_SSL_LIBRARY "Android/app/libs/arm64-v8a/libssl.a")
###################################################################
# openssl 1.1.1k
if (ANDROID)
message(WARNING "Enable Android openssl compile")
execute_process(
COMMAND bash -c "./../../3rdpart/openssl/Configure android-aarch64 -D__ANDROID_API__=16"
OUTPUT_VARIABLE output
RESULT_VARIABLE result
)
if (result)
message(FATAL_ERROR "Failed to execute bash command: ${result}")
endif ()
message(WARNING "Enable Android openssl compile===================")
message("Output: ${output}")
ENDIF ()
#if (ANDROID)
# message(WARNING "Enable Android openssl compile")
# execute_process(
# COMMAND bash -c "./../../3rdpart/openssl/Configure android-aarch64 -D__ANDROID_API__=16"
# OUTPUT_VARIABLE output
# RESULT_VARIABLE result
# )
# if (result)
# message(FATAL_ERROR "Failed to execute bash command: ${result}")
# endif ()
# message(WARNING "Enable Android openssl compile===================")
# message("Output: ${output}")
#ENDIF ()
#
set(JNI_Root ${CMAKE_CURRENT_SOURCE_DIR})