diff options
author | Marvin W <git@larma.de> | 2022-02-11 19:55:19 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2022-02-11 19:55:19 +0100 |
commit | e768c40e1122c4a8ef8785aef6a07044f6e869e1 (patch) | |
tree | 2ffb1b70a6ee9d64a132fc960733035683c5a0ea /plugins/rtp/CMakeLists.txt | |
parent | dbc6d87cb9c26a5858ccf7400a43cdd4f6f26971 (diff) | |
download | dino-e768c40e1122c4a8ef8785aef6a07044f6e869e1.tar.gz dino-e768c40e1122c4a8ef8785aef6a07044f6e869e1.zip |
RTP: Make codec and hardware support compile-time configurable
Diffstat (limited to 'plugins/rtp/CMakeLists.txt')
-rw-r--r-- | plugins/rtp/CMakeLists.txt | 26 |
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") |