aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rtp/CMakeLists.txt')
-rw-r--r--plugins/rtp/CMakeLists.txt26
1 files changed, 20 insertions, 6 deletions
diff --git a/plugins/rtp/CMakeLists.txt b/plugins/rtp/CMakeLists.txt
index 4c159c1b..87ca4dcb 100644
--- a/plugins/rtp/CMakeLists.txt
+++ b/plugins/rtp/CMakeLists.txt
@@ -12,20 +12,34 @@ find_packages(RTP_PACKAGES REQUIRED
GstAudio
)
+set(RTP_DEFINITIONS)
+
if(GstRtp_VERSION VERSION_GREATER "1.16")
- set(RTP_DEFINITIONS GST_1_16)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_16)
endif()
if(GstRtp_VERSION VERSION_GREATER "1.18")
- set(RTP_DEFINITIONS GST_1_18)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_18)
+endif()
+
+set(RTP_ENABLE_VP9 "no" CACHE BOOL "Enable VP9 support")
+if(RTP_ENABLE_VP9)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} ENABLE_VP9)
+endif()
+
+set(RTP_ENABLE_H264 "no" CACHE BOOL "Enable H264 support")
+if(RTP_ENABLE_H264)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} ENABLE_H264)
endif()
-if(Vala_VERSION VERSION_GREATER "0.50")
- set(RTP_DEFINITIONS VALA_0_50)
+set(RTP_ENABLE_VAAPI "no" CACHE BOOL "Enable VAAPI support")
+if(RTP_ENABLE_VAAPI)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} ENABLE_VAAPI)
endif()
-if(Vala_VERSION VERSION_GREATER "0.52")
- set(RTP_DEFINITIONS VALA_0_52)
+set(RTP_ENABLE_MSDK "no" CACHE BOOL "Enable MSDK support")
+if(RTP_ENABLE_MSDK)
+ set(RTP_DEFINITIONS ${RTP_DEFINITIONS} ENABLE_MSDK)
endif()
if(WebRTCAudioProcessing_VERSION GREATER "0.4")