mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
Build without usrsctp
This commit is contained in:
parent
dc26bbf145
commit
8bcc2cddc8
@ -50,6 +50,7 @@ option(ENABLE_SERVER "Enable Server" ON)
|
||||
option(ENABLE_SERVER_LIB "Enable server as android static library" OFF)
|
||||
option(ENABLE_SRT "Enable SRT" ON)
|
||||
option(ENABLE_TESTS "Enable Tests" ON)
|
||||
option(ENABLE_SCTP "Enable SCTP" ON)
|
||||
option(ENABLE_WEBRTC "Enable WebRTC" ON)
|
||||
option(ENABLE_X264 "Enable x264" OFF)
|
||||
option(ENABLE_WEPOLL "Enable wepoll" ON)
|
||||
|
@ -38,6 +38,7 @@ set(LINK_LIBRARIES ${SRTP_LIBRARIES})
|
||||
set(COMPILE_DEFINITIONS)
|
||||
set(INCLUDE_DIRECTORIES)
|
||||
|
||||
if(ENABLE_SCTP)
|
||||
find_package(SCTP QUIET)
|
||||
if(SCTP_FOUND)
|
||||
message(STATUS "found library: ${SCTP_INCLUDE_DIRS} ${SCTP_LIBRARIES}")
|
||||
@ -48,6 +49,7 @@ if(SCTP_FOUND)
|
||||
list(APPEND LINK_LIBRARIES ${SCTP_LIBRARIES})
|
||||
message(STATUS "WebRTC datachannel 功能已打开")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(GLOB WEBRTC_SRC_LIST
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user