aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-09-30 03:05:20 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-10-06 15:25:12 +0200
commitc312fb282f3312d02779262da9bf969ddfa1e5ac (patch)
tree20f653001c5ec1ee3a0a6770c641745520b0afdd /plugins/rtp
parenta55a10e88f88a4650aa6a83927ea38960aa26935 (diff)
downloaddino-c312fb282f3312d02779262da9bf969ddfa1e5ac.tar.gz
dino-c312fb282f3312d02779262da9bf969ddfa1e5ac.zip
meson: Add version detection for some dependencies
Diffstat (limited to 'plugins/rtp')
-rw-r--r--plugins/rtp/meson.build12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/rtp/meson.build b/plugins/rtp/meson.build
index 8a72dc41..06821c91 100644
--- a/plugins/rtp/meson.build
+++ b/plugins/rtp/meson.build
@@ -26,9 +26,6 @@ sources = files(
'src/video_widget.vala',
)
c_args = [
- '-DGST_1_16',
- '-DGST_1_18',
- '-DGST_1_20',
'-DG_LOG_DOMAIN="rtp"',
]
vala_args = [
@@ -42,6 +39,15 @@ if dep_webrtc_audio_processing.found()
)
vala_args += ['-D', 'WITH_VOICE_PROCESSOR']
endif
+if dep_gstreamer_rtp.version() == 'unknown' or dep_gstreamer_rtp.version().version_compare('>=1.16')
+ vala_args += ['-D', 'GST_1_16']
+endif
+if dep_gstreamer_rtp.version() == 'unknown' or dep_gstreamer_rtp.version().version_compare('>=1.18')
+ vala_args += ['-D', 'GST_1_18']
+endif
+if dep_gstreamer_rtp.version() == 'unknown' or dep_gstreamer_rtp.version().version_compare('>=1.20')
+ vala_args += ['-D', 'GST_1_20']
+endif
if get_option('plugin-rtp-h264').allowed()
vala_args += ['-D', 'ENABLE_H264']
endif