2023-06-20 17:46:41 +00:00
|
|
|
dependencies = [
|
2023-09-30 01:05:11 +00:00
|
|
|
dep_crypto_vala,
|
|
|
|
dep_dino,
|
2023-06-20 17:46:41 +00:00
|
|
|
dep_gee,
|
|
|
|
dep_glib,
|
|
|
|
dep_gmodule,
|
|
|
|
dep_gstreamer,
|
|
|
|
dep_gstreamer_app,
|
|
|
|
dep_gstreamer_audio,
|
|
|
|
dep_gstreamer_rtp,
|
|
|
|
dep_gstreamer_video,
|
2023-09-30 01:05:11 +00:00
|
|
|
dep_gtk4,
|
|
|
|
dep_m,
|
2023-06-20 17:46:41 +00:00
|
|
|
dep_qlite,
|
|
|
|
dep_xmpp_vala,
|
|
|
|
]
|
|
|
|
sources = files(
|
|
|
|
'src/codec_util.vala',
|
|
|
|
'src/device.vala',
|
|
|
|
'src/gst_fixes.c',
|
|
|
|
'src/module.vala',
|
|
|
|
'src/plugin.vala',
|
|
|
|
'src/register_plugin.vala',
|
|
|
|
'src/stream.vala',
|
|
|
|
'src/video_widget.vala',
|
|
|
|
)
|
|
|
|
c_args = [
|
|
|
|
'-DG_LOG_DOMAIN="rtp"',
|
|
|
|
]
|
|
|
|
vala_args = [
|
|
|
|
'--vapidir', meson.current_source_dir() / 'vapi',
|
|
|
|
]
|
2024-04-15 09:21:10 +00:00
|
|
|
if dep_webrtcdsp.found()
|
|
|
|
dependencies += [dep_webrtcdsp]
|
2023-09-30 01:05:11 +00:00
|
|
|
vala_args += ['-D', 'WITH_VOICE_PROCESSOR']
|
|
|
|
endif
|
2023-09-30 01:05:20 +00:00
|
|
|
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
|
2023-09-30 01:05:11 +00:00
|
|
|
if get_option('plugin-rtp-h264').allowed()
|
|
|
|
vala_args += ['-D', 'ENABLE_H264']
|
|
|
|
endif
|
|
|
|
if get_option('plugin-rtp-msdk').allowed()
|
|
|
|
vala_args += ['-D', 'ENABLE_MSDK']
|
|
|
|
endif
|
|
|
|
if get_option('plugin-rtp-vaapi').allowed()
|
|
|
|
vala_args += ['-D', 'ENABLE_VAAPI']
|
|
|
|
endif
|
|
|
|
if get_option('plugin-rtp-vp9').allowed()
|
|
|
|
vala_args += ['-D', 'ENABLE_VP9']
|
|
|
|
endif
|
2024-04-15 09:21:10 +00:00
|
|
|
if host_machine.system() == 'windows' and get_option('with-wasapi')
|
|
|
|
vala_args += ['-D', 'WITH_WASAPI']
|
|
|
|
endif
|
2024-04-04 14:15:11 +00:00
|
|
|
lib_rtp = shared_library('rtp', sources, name_prefix: '', c_args: c_args, vala_args: vala_args, include_directories: include_directories('src'), dependencies: dependencies, kwargs: install_options)
|
2023-06-20 17:46:41 +00:00
|
|
|
dep_rtp = declare_dependency(link_with: lib_rtp, include_directories: include_directories('.'))
|