summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEderson de Souza <ederson.desouza@intel.com>2020-05-28 11:51:28 -0700
committerEderson de Souza <ederson.desouza@intel.com>2020-06-01 11:37:16 -0700
commitbafdade2075a70037b398c6433c14ca0db5ed4b2 (patch)
treedfcaebe6edb2b32af1a8f551c6cfa23f008a1a22 /ext
parent6caea9e19be086fdf508c7e55409f0f144c567c0 (diff)
downloadgstreamer-plugins-bad-bafdade2075a70037b398c6433c14ca0db5ed4b2.tar.gz
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/avtp/meson.build13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/avtp/meson.build b/ext/avtp/meson.build
index a11cc4d64..4b6c0022b 100644
--- a/ext/avtp/meson.build
+++ b/ext/avtp/meson.build
@@ -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>')