path: root/
diff options
authorBruce Richardson <>2017-09-12 16:42:02 +0100
committerBruce Richardson <>2018-01-30 21:58:59 +0100
commit89f0711f9ddfb5822da9d34f384b92f72a61c4dc (patch)
tree6adeec6aafdf924eb29bce35d1ea8c9b142c4133 /
parenta0ace286a60b7a03e4edf048b2794e76087a2832 (diff)
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 <> Reviewed-by: Luca Boccassi <>
Diffstat (limited to '')
1 files changed, 5 insertions, 0 deletions
diff --git a/ b/
index 72aa093..8c08436 100644
--- a/
+++ b/
@@ -68,6 +68,11 @@ subdir('drivers')
+# build any examples explicitly requested - useful for developers
+if get_option('examples') != ''
+ subdir('examples')
# write the build config
build_cfg = 'rte_build_config.h'
configure_file(output: build_cfg,