From 8bcc2cddc87f61f36ac0710181dff313764eec33 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Fri, 30 Dec 2022 08:51:37 +0300 Subject: [PATCH] Build without usrsctp --- CMakeLists.txt | 1 + webrtc/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index adc5f768..f562d96d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/webrtc/CMakeLists.txt b/webrtc/CMakeLists.txt index f2c4f65d..a00c0d36 100644 --- a/webrtc/CMakeLists.txt +++ b/webrtc/CMakeLists.txt @@ -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