From: Bruce Richardson Date: Thu, 29 Mar 2018 13:54:33 +0000 (+0100) Subject: examples: disable unsupported examples on BSD build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4f49c9f5be981b85ea8b29928c96ff4f2e02e261;p=dpdk.git 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 --- 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(