mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
avtp: Ensure that the avtp plugin is only built on Linux
It uses some Linux only features. This also prevents gst-build trying to get libavtp on non-Linux environments.
This commit is contained in:
parent
6caea9e19b
commit
bafdade207
1 changed files with 12 additions and 1 deletions
|
@ -14,7 +14,18 @@ avtp_sources = [
|
|||
'gstavtpcrfcheck.c',
|
||||
]
|
||||
|
||||
avtp_dep = dependency('avtp', required: get_option('avtp'),
|
||||
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>')
|
||||
|
|
Loading…
Reference in a new issue