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