examples: build some samples with meson
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 12 Sep 2017 15:42:02 +0000 (16:42 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Jan 2018 20:58:59 +0000 (21:58 +0100)
commit89f0711f9ddfb5822da9d34f384b92f72a61c4dc
tree6adeec6aafdf924eb29bce35d1ea8c9b142c4133
parenta0ace286a60b7a03e4edf048b2794e76087a2832
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>
42 files changed:
examples/bbdev_app/meson.build [new file with mode: 0644]
examples/bond/meson.build [new file with mode: 0644]
examples/cmdline/meson.build [new file with mode: 0644]
examples/distributor/meson.build [new file with mode: 0644]
examples/eventdev_pipeline/meson.build [new file with mode: 0644]
examples/exception_path/meson.build [new file with mode: 0644]
examples/flow_classify/meson.build [new file with mode: 0644]
examples/flow_filtering/meson.build [new file with mode: 0644]
examples/helloworld/meson.build [new file with mode: 0644]
examples/ip_fragmentation/meson.build [new file with mode: 0644]
examples/ip_pipeline/meson.build [new file with mode: 0644]
examples/ip_reassembly/meson.build [new file with mode: 0644]
examples/ipsec-secgw/meson.build [new file with mode: 0644]
examples/ipv4_multicast/meson.build [new file with mode: 0644]
examples/kni/meson.build [new file with mode: 0644]
examples/l2fwd-cat/meson.build [new file with mode: 0644]
examples/l2fwd-crypto/meson.build [new file with mode: 0644]
examples/l2fwd-jobstats/meson.build [new file with mode: 0644]
examples/l2fwd-keepalive/meson.build [new file with mode: 0644]
examples/l2fwd/meson.build [new file with mode: 0644]
examples/l3fwd-acl/meson.build [new file with mode: 0644]
examples/l3fwd-power/meson.build [new file with mode: 0644]
examples/l3fwd-vf/meson.build [new file with mode: 0644]
examples/l3fwd/meson.build [new file with mode: 0644]
examples/link_status_interrupt/meson.build [new file with mode: 0644]
examples/load_balancer/meson.build [new file with mode: 0644]
examples/meson.build [new file with mode: 0644]
examples/packet_ordering/meson.build [new file with mode: 0644]
examples/ptpclient/meson.build [new file with mode: 0644]
examples/qos_meter/meson.build [new file with mode: 0644]
examples/qos_sched/meson.build [new file with mode: 0644]
examples/rxtx_callbacks/meson.build [new file with mode: 0644]
examples/service_cores/meson.build [new file with mode: 0644]
examples/skeleton/meson.build [new file with mode: 0644]
examples/tep_termination/meson.build [new file with mode: 0644]
examples/timer/meson.build [new file with mode: 0644]
examples/vhost/meson.build [new file with mode: 0644]
examples/vhost_scsi/meson.build [new file with mode: 0644]
examples/vmdq/meson.build [new file with mode: 0644]
examples/vmdq_dcb/meson.build [new file with mode: 0644]
meson.build
meson_options.txt