aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/CMakeLists.txt
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-08-21 19:32:03 +0200
committerMarvin W <git@larma.de>2022-08-21 19:33:20 +0200
commite85477bb19166e742e34852b2a99b33e55565ded (patch)
tree1e5e546e8c82939dec878703d7121b4195146455 /plugins/rtp/CMakeLists.txt
parent054d3fec1627a9ee8d84d636d578aa68d3494d19 (diff)
downloaddino-e85477bb19166e742e34852b2a99b33e55565ded.tar.gz
dino-e85477bb19166e742e34852b2a99b33e55565ded.zip
RTP: Use latest gstreamer vapi if vala version older than 0.56.1
Diffstat (limited to 'plugins/rtp/CMakeLists.txt')
-rw-r--r--plugins/rtp/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/rtp/CMakeLists.txt b/plugins/rtp/CMakeLists.txt
index d093c3c1..2f6f5eaf 100644
--- a/plugins/rtp/CMakeLists.txt
+++ b/plugins/rtp/CMakeLists.txt
@@ -1,4 +1,3 @@
-find_package(GstRtp REQUIRED)
find_package(GLib ${GLib_GLOBAL_VERSION} REQUIRED)
find_package(WebRTCAudioProcessing 0.2)
find_packages(RTP_PACKAGES REQUIRED
@@ -11,10 +10,12 @@ find_packages(RTP_PACKAGES REQUIRED
Gst
GstApp
GstAudio
+ GstRtp
GstVideo
)
set(RTP_DEFINITIONS)
+set(RTP_EXTRA_OPTIONS)
if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.16")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_16)
@@ -28,8 +29,8 @@ if(GstRtp_VERSION VERSION_GREATER_EQUAL "1.20")
set(RTP_DEFINITIONS ${RTP_DEFINITIONS} GST_1_20)
endif()
-if(VALA_VERSION VERSION_GREATER_EQUAL "0.56.1")
- set(RTP_DEFINITIONS ${RTP_DEFINITIONS} VALA_0_56_1)
+if(NOT VALA_VERSION VERSION_GREATER_EQUAL "0.56.1")
+ set(RTP_EXTRA_OPTIONS ${RTP_EXTRA_OPTIONS} --vapidir=${CMAKE_CURRENT_SOURCE_DIR}/vapi)
endif()
set(RTP_ENABLE_VP9 "no" CACHE BOOL "Enable VP9 support")
@@ -81,11 +82,12 @@ CUSTOM_VAPIS
${CMAKE_BINARY_DIR}/exports/xmpp-vala.vapi
${CMAKE_BINARY_DIR}/exports/dino.vapi
${CMAKE_BINARY_DIR}/exports/qlite.vapi
- ${CMAKE_CURRENT_SOURCE_DIR}/vapi/gstreamer-rtp-1.0.vapi
PACKAGES
${RTP_PACKAGES}
DEFINITIONS
${RTP_DEFINITIONS}
+OPTIONS
+ ${RTP_EXTRA_OPTIONS}
)
add_definitions(${VALA_CFLAGS} -DG_LOG_DOMAIN="rtp" -I${CMAKE_CURRENT_SOURCE_DIR}/src)