From: Bruce Richardson Date: Tue, 22 Oct 2019 15:43:03 +0000 (+0100) Subject: examples/ethtool: build as part of meson build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=55bd294cb074e3bcfacf2da2fe7fc9d666665498;p=dpdk.git examples/ethtool: build as part of meson build Since the code for the ethtool example was contained in subdirectories the compilation of this example is different from most of the other apps, and it had not been abled when the user requests a build with "-Dexamples=all". To simplify the build with meson, the separate ethtool library is not build separately, rather the app is built as a single entity. Signed-off-by: Bruce Richardson Acked-by: Luca Boccassi --- diff --git a/examples/ethtool/meson.build b/examples/ethtool/meson.build index c370d7476f..bc7a35514c 100644 --- a/examples/ethtool/meson.build +++ b/examples/ethtool/meson.build @@ -6,5 +6,15 @@ # To build this example as a standalone application with an already-installed # DPDK instance, use 'make' -# Example app currently unsupported by meson build -build = false +build = is_linux +sources = files('lib/rte_ethtool.c', + 'ethtool-app/ethapp.c', + 'ethtool-app/main.c') +includes = include_directories('lib', 'ethtool-app') + +deps += 'bus_pci' +if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD') + deps += 'pmd_ixgbe' +endif + +allow_experimental_apis = true