examples: stop processing meson file if build impossible
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 12 Nov 2020 09:41:41 +0000 (09:41 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Nov 2020 18:33:36 +0000 (19:33 +0100)
commit3495a68f2a5491b417ff080d57cbf7e39abc1f44
treebf89b5e318314a6c95256d52a9890937457a047c
parentb334236abd8dfeea625525de548b35b40cb68c3b
examples: stop processing meson file if build impossible

Once it has been determined that an example cannot be built, there is
little point in continuing to process the meson.build file for that
example, so we can use subdir_done() to return to the calling file.
This can potentially prevent problems where later statement in the file
may cause an error on systems where the app cannot be built, e.g. on
Windows or FreeBSD.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
14 files changed:
examples/distributor/meson.build
examples/ethtool/meson.build
examples/ioat/meson.build
examples/ip_pipeline/meson.build
examples/kni/meson.build
examples/l2fwd-cat/meson.build
examples/ntb/meson.build
examples/performance-thread/l3fwd-thread/meson.build
examples/performance-thread/pthread_shim/meson.build
examples/pipeline/meson.build
examples/vdpa/meson.build
examples/vhost/meson.build
examples/vhost_blk/meson.build
examples/vhost_crypto/meson.build