fix: disable unused DataChannel media support

This commit is contained in:
Ian Chua
2026-09-16 22:08:53 +08:00
parent 93a119427a
commit 9c5494b19f
2 changed files with 3 additions and 16 deletions
-12
View File
@@ -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)
+3 -4
View File
@@ -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
)
)