distributor: skip building if power library not found
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 9 Apr 2019 10:55:37 +0000 (11:55 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Apr 2019 16:09:53 +0000 (18:09 +0200)
The power library is not built on non-Linux systems, so skip the
distributor sample if it's not found, as it's a mandatory dependency.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: David Hunt <david.hunt@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
examples/distributor/meson.build

index 8cf2ca1..26f108d 100644 (file)
@@ -6,6 +6,9 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
+# require the power library
+build = dpdk_conf.has('RTE_LIBRTE_POWER')
+
 deps += ['distributor', 'power']
 sources = files(
        'main.c'