mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
bafdade207
It uses some Linux only features. This also prevents gst-build trying to get libavtp on non-Linux environments.
42 lines
1.1 KiB
Meson
42 lines
1.1 KiB
Meson
avtp_sources = [
|
|
'gstavtp.c',
|
|
'gstavtpaafdepay.c',
|
|
'gstavtpaafpay.c',
|
|
'gstavtpcvfdepay.c',
|
|
'gstavtpcvfpay.c',
|
|
'gstavtpbasedepayload.c',
|
|
'gstavtpbasepayload.c',
|
|
'gstavtpsink.c',
|
|
'gstavtpsrc.c',
|
|
'gstavtpcrfutil.c',
|
|
'gstavtpcrfbase.c',
|
|
'gstavtpcrfsync.c',
|
|
'gstavtpcrfcheck.c',
|
|
]
|
|
|
|
avtp_dep = dependency('', required: false)
|
|
avtp_option = get_option('avtp')
|
|
|
|
if host_machine.system() != 'linux'
|
|
if avtp_option.enabled()
|
|
error('avtp plugin enabled but host is not supported')
|
|
else
|
|
subdir_done()
|
|
endif
|
|
endif
|
|
|
|
avtp_dep = dependency('avtp', required: avtp_option,
|
|
fallback: ['avtp', 'avtp_dep'])
|
|
|
|
if avtp_dep.found() and cc.has_type('struct sock_txtime', prefix : '#include <linux/net_tstamp.h>')
|
|
gstavtp = library('gstavtp',
|
|
avtp_sources,
|
|
c_args : gst_plugins_bad_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstaudio_dep, gstvideo_dep, avtp_dep, libm],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstavtp, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstavtp]
|
|
endif
|