summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2017-09-12 16:42:02 +0100
committerBruce Richardson <bruce.richardson@intel.com>2018-01-30 21:58:59 +0100
commit89f0711f9ddfb5822da9d34f384b92f72a61c4dc (patch)
tree6adeec6aafdf924eb29bce35d1ea8c9b142c4133 /meson.build
parenta0ace286a60b7a03e4edf048b2794e76087a2832 (diff)
downloaddpdk-89f0711f9ddfb5822da9d34f384b92f72a61c4dc.zip
dpdk-89f0711f9ddfb5822da9d34f384b92f72a61c4dc.tar.gz
dpdk-89f0711f9ddfb5822da9d34f384b92f72a61c4dc.tar.xz
examples: build some samples with meson
Add support for having selected example apps built as part of a meson, ninja build. By default none are built, and those to be built should be named directly in the -Dexamples='' meson configuration argument. This is useful for developers working on a feature who want to use a suitable example, or examples, to test that feature, as they can compile everything up in one go, and run the example without having to do a ninja install first. This commit adds examples which don't consist of multiple apps in subdirectories to the meson build, so they can be built by default by passing -Dexamples parameter to meson. Not included are the following examples: * ethtool * multi-process * netmap_compat * performance-thread * quota_watermark * server_node_efd * vm_power_manager To test the apps added here, use the following command, merged to one line, to add them to your meson build (command to be run inside the build directory): meson configure -Dexamples=bbdev_app,bond,cmdline,distributor,\ eventdev_pipeline_sw_pmd, exception_path,helloworld,\ ip_fragmentation,ip_pipeline,ip_reassembly, ipsec-secgw,\ ipv4_multicast,kni,l2fwd-cat,l2fwd-crypto,l2fwd-jobstats,\ l2fwd-keepalive,l2fwd,l3fwd-acl,l3fwd-power,l3fwd-vf,l3fwd,\ link_status_interrupt,load_balancer,packet_ordering,ptpclient,\ qos_meter,qos_sched,rxtx_callbacks,skeleton,tep_termination,\ timer,vhost,vhost_scsi,vmdq,vmdq_dcb Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 72aa093..8c08436 100644
--- a/meson.build
+++ b/meson.build
@@ -68,6 +68,11 @@ subdir('drivers')
subdir('usertools')
subdir('app')
+# build any examples explicitly requested - useful for developers
+if get_option('examples') != ''
+ subdir('examples')
+endif
+
# write the build config
build_cfg = 'rte_build_config.h'
configure_file(output: build_cfg,