From: Bruce Richardson Date: Tue, 9 Apr 2019 10:55:37 +0000 (+0100) Subject: distributor: skip building if power library not found X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9d03815f56876f16997bc7136029842903ee842b;p=dpdk.git distributor: skip building if power library not found 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 Reviewed-by: David Marchand Acked-by: David Hunt Acked-by: Luca Boccassi --- diff --git a/examples/distributor/meson.build b/examples/distributor/meson.build index 8cf2ca1dae..26f108d653 100644 --- a/examples/distributor/meson.build +++ b/examples/distributor/meson.build @@ -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'