mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
spec: Enable WebRTC
This commit is contained in:
parent
f5786fcba3
commit
549b07f598
@ -2,10 +2,12 @@
|
|||||||
%global use_devtoolset 0
|
%global use_devtoolset 0
|
||||||
%bcond_without faac
|
%bcond_without faac
|
||||||
%bcond_without x264
|
%bcond_without x264
|
||||||
|
%bcond_without webrtc
|
||||||
%else
|
%else
|
||||||
%global use_devtoolset 1
|
%global use_devtoolset 1
|
||||||
%bcond_with faac
|
%bcond_with faac
|
||||||
%bcond_with x264
|
%bcond_with x264
|
||||||
|
%bcond_with webrtc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_without openssl
|
%bcond_without openssl
|
||||||
@ -37,6 +39,10 @@ BuildRequires: faac-devel
|
|||||||
BuildRequires: x264-devel
|
BuildRequires: x264-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with webrtc}
|
||||||
|
BuildRequires: libsrtp-devel >= 2.0
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?use_devtoolset}
|
%if 0%{?use_devtoolset}
|
||||||
BuildRequires: devtoolset-8-gcc-c++
|
BuildRequires: devtoolset-8-gcc-c++
|
||||||
%endif
|
%endif
|
||||||
@ -88,6 +94,7 @@ pushd %{_target_platform}
|
|||||||
-DENABLE_MYSQL:BOOL=%{with mysql} \
|
-DENABLE_MYSQL:BOOL=%{with mysql} \
|
||||||
-DENABLE_FAAC:BOOL=%{with faac} \
|
-DENABLE_FAAC:BOOL=%{with faac} \
|
||||||
-DENABLE_X264:BOOL=%{with x264} \
|
-DENABLE_X264:BOOL=%{with x264} \
|
||||||
|
-DENABLE_WEBRTC:BOOL=%{with webrtc} \
|
||||||
-DENABLE_MP4:BOOL=ON \
|
-DENABLE_MP4:BOOL=ON \
|
||||||
-DENABLE_RTPPROXY:BOOL=ON \
|
-DENABLE_RTPPROXY:BOOL=ON \
|
||||||
-DENABLE_API:BOOL=ON \
|
-DENABLE_API:BOOL=ON \
|
||||||
|
Loading…
Reference in New Issue
Block a user