meson: Add version detection for some dependencies
This commit is contained in:
parent
a55a10e88f
commit
c312fb282f
|
@ -106,6 +106,15 @@ c_args = [
|
||||||
vala_args = [
|
vala_args = [
|
||||||
'--vapidir', meson.current_source_dir() / 'vapi',
|
'--vapidir', meson.current_source_dir() / 'vapi',
|
||||||
]
|
]
|
||||||
|
if dep_libadwaita.version() == 'unknown' or dep_libadwaita.version().version_compare('>=1.2')
|
||||||
|
vala_args += ['-D', 'Adw_1_2']
|
||||||
|
endif
|
||||||
|
if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.6')
|
||||||
|
vala_args += ['-D', 'GTK_4_6']
|
||||||
|
endif
|
||||||
|
if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8')
|
||||||
|
vala_args += ['-D', 'GTK_4_8']
|
||||||
|
endif
|
||||||
exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true)
|
exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true)
|
||||||
|
|
||||||
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'hicolor/symbolic/apps')
|
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'hicolor/symbolic/apps')
|
||||||
|
|
|
@ -26,9 +26,6 @@ sources = files(
|
||||||
'src/video_widget.vala',
|
'src/video_widget.vala',
|
||||||
)
|
)
|
||||||
c_args = [
|
c_args = [
|
||||||
'-DGST_1_16',
|
|
||||||
'-DGST_1_18',
|
|
||||||
'-DGST_1_20',
|
|
||||||
'-DG_LOG_DOMAIN="rtp"',
|
'-DG_LOG_DOMAIN="rtp"',
|
||||||
]
|
]
|
||||||
vala_args = [
|
vala_args = [
|
||||||
|
@ -42,6 +39,15 @@ if dep_webrtc_audio_processing.found()
|
||||||
)
|
)
|
||||||
vala_args += ['-D', 'WITH_VOICE_PROCESSOR']
|
vala_args += ['-D', 'WITH_VOICE_PROCESSOR']
|
||||||
endif
|
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()
|
if get_option('plugin-rtp-h264').allowed()
|
||||||
vala_args += ['-D', 'ENABLE_H264']
|
vala_args += ['-D', 'ENABLE_H264']
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue