From 9c5494b19f3d64657a25e85841e3d57858926182 Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Wed, 16 Sep 2026 22:08:53 +0800 Subject: [PATCH] fix: disable unused DataChannel media support --- CMakeLists.txt | 12 ------------ deps/DataChannel/DataChannel.cmake | 7 +++---- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbff47752d..3c78b4ae1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -837,18 +837,6 @@ if (SLIC3R_GUI) endif() endif() - if (NOT TARGET libSRTP::srtp2) - find_library(_ORCA_SRTP_LIBRARY NAMES srtp2 - PATHS "${CMAKE_PREFIX_PATH}/lib" NO_DEFAULT_PATH) - if (_ORCA_SRTP_LIBRARY) - add_library(libSRTP::srtp2 UNKNOWN IMPORTED GLOBAL) - set_target_properties(libSRTP::srtp2 PROPERTIES - IMPORTED_LOCATION "${_ORCA_SRTP_LIBRARY}" - IMPORTED_LINK_INTERFACE_LANGUAGES C - INTERFACE_LINK_LIBRARIES "OpenSSL::Crypto") - endif() - endif() - if (NOT TARGET LibJuice::LibJuice) find_library(_ORCA_LIBJUICE_LIBRARY NAMES juice PATHS "${CMAKE_PREFIX_PATH}/lib" NO_DEFAULT_PATH) diff --git a/deps/DataChannel/DataChannel.cmake b/deps/DataChannel/DataChannel.cmake index 8a90bc7f50..56d8f0408a 100644 --- a/deps/DataChannel/DataChannel.cmake +++ b/deps/DataChannel/DataChannel.cmake @@ -1,4 +1,4 @@ -# libdatachannel is the native ICE/DTLS/SCTP/SRTP implementation used by the +# libdatachannel is the native ICE/DTLS/SCTP implementation used by the # GUI WebRTC camera controller. Keep the source revision fixed: the signaling # protocol is evolving independently of this transport dependency. orcaslicer_add_cmake_project(DataChannel @@ -7,9 +7,8 @@ orcaslicer_add_cmake_project(DataChannel -DNO_EXAMPLES=ON -DNO_TESTS=ON -DNO_WEBSOCKET=ON - -DNO_MEDIA=OFF + -DNO_MEDIA=ON -DUSE_NICE=OFF - -DUSE_SYSTEM_SRTP=OFF -DUSE_SYSTEM_JUICE=OFF -DUSE_SYSTEM_USRSCTP=OFF -DOPENSSL_ROOT_DIR:PATH=${DESTDIR} @@ -18,4 +17,4 @@ orcaslicer_add_cmake_project(DataChannel GIT_TAG v0.22.2 GIT_SHALLOW ON GIT_SUBMODULES_RECURSE ON -) \ No newline at end of file +)