完善Android工程

This commit is contained in:
xiongziliang
2022-06-19 01:12:14 +08:00
parent d30869d0c9
commit a44b770d9d
5 changed files with 81 additions and 143 deletions

View File

@@ -98,6 +98,7 @@ option(ENABLE_API "Enable C API SDK" true)
option(ENABLE_CXX_API "Enable C++ API SDK" false)
option(ENABLE_TESTS "Enable Tests" true)
option(ENABLE_SERVER "Enable Server" true)
option(ENABLE_SERVER_LIB "Enable server as android static library" false)
option(ENABLE_MEM_DEBUG "Enable Memory Debug" false)
option(ENABLE_ASAN "Enable Address Sanitize" false)
option(ENABLE_WEBRTC "Enable WebRTC" true)
@@ -307,7 +308,7 @@ if (JEMALLOC_FOUND)
endif ()
#查找openssl是否安装
find_package(OpenSSL QUIET)
find_package(OPENSSL QUIET)
if (OPENSSL_FOUND AND ENABLE_OPENSSL)
message(STATUS "found library:${OPENSSL_LIBRARIES},ENABLE_OPENSSL defined")
include_directories(${OPENSSL_INCLUDE_DIR})
@@ -521,3 +522,7 @@ endif ()
if (ENABLE_PLAYER)
add_subdirectory(player)
endif ()
if (ENABLE_SERVER_LIB)
set(LINK_LIB_LIST ${LINK_LIB_LIST} PARENT_SCOPE)
endif ()