From 4f49c9f5be981b85ea8b29928c96ff4f2e02e261 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 29 Mar 2018 14:54:33 +0100 Subject: [PATCH] examples: disable unsupported examples on BSD build When building with meson, set build to false when building unsupported example apps on FreeBSD. Signed-off-by: Bruce Richardson Tested-by: Harry van Haaren --- examples/kni/meson.build | 3 +++ examples/l3fwd-power/meson.build | 3 +++ examples/tep_termination/meson.build | 3 +++ examples/vhost/meson.build | 3 +++ examples/vhost_scsi/meson.build | 3 +++ 5 files changed, 15 insertions(+) diff --git a/examples/kni/meson.build b/examples/kni/meson.build index bf3561713b..a69f0df426 100644 --- a/examples/kni/meson.build +++ b/examples/kni/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if host_machine.system() != 'linux' + build = false +endif deps += ['kni', 'bus_pci'] allow_experimental_apis = true sources = files( diff --git a/examples/l3fwd-power/meson.build b/examples/l3fwd-power/meson.build index cb50c7ab43..69251242b1 100644 --- a/examples/l3fwd-power/meson.build +++ b/examples/l3fwd-power/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if host_machine.system() != 'linux' + build = false +endif deps += ['power', 'timer', 'lpm', 'hash'] allow_experimental_apis = true sources = files( diff --git a/examples/tep_termination/meson.build b/examples/tep_termination/meson.build index 24697ec6d2..6d36362431 100644 --- a/examples/tep_termination/meson.build +++ b/examples/tep_termination/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if host_machine.system() != 'linux' + build = false +endif deps += ['hash', 'vhost'] allow_experimental_apis = true sources = files( diff --git a/examples/vhost/meson.build b/examples/vhost/meson.build index 64c84ee124..7b498076cf 100644 --- a/examples/vhost/meson.build +++ b/examples/vhost/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if host_machine.system() != 'linux' + build = false +endif deps += 'vhost' allow_experimental_apis = true sources = files( diff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build index bd78e84b3c..5f92370f54 100644 --- a/examples/vhost_scsi/meson.build +++ b/examples/vhost_scsi/meson.build @@ -6,6 +6,9 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' +if host_machine.system() != 'linux' + build = false +endif deps += 'vhost' cflags += ['-D_GNU_SOURCE','-D_FILE_OFFSET_BITS=64'] sources = files( -- 2.20.1