Re: [dpdk-dev] [PATCH] examples: skip example when missing dependencies

2021-11-06 Thread David Marchand
On Fri, Nov 5, 2021 at 2:39 PM Bruce Richardson wrote: > > @@ -104,6 +104,22 @@ foreach example: examples > > deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline'] > > subdir(example) > > > > +if build > > +dep_objs = ext_deps > > +foreach d:deps > > +

Re: [dpdk-dev] [PATCH] examples: skip example when missing dependencies

2021-11-05 Thread Bruce Richardson
On Fri, Nov 05, 2021 at 02:30:55PM +0100, David Marchand wrote: > Trying to disable the vhost library, meson will complain it can't build > the vhost* and vdpa examples when passing -Dexamples=all. > > -Dexamples=all skips examples if the example itself announces it can't > be built (for external

[dpdk-dev] [PATCH] examples: skip example when missing dependencies

2021-11-05 Thread David Marchand
Trying to disable the vhost library, meson will complain it can't build the vhost* and vdpa examples when passing -Dexamples=all. -Dexamples=all skips examples if the example itself announces it can't be built (for external dependencies, internal dependencies and other reasons). Since examples/mes