summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAli Alnubani <alialnu@mellanox.com>2019-05-23 17:40:38 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-06-04 12:34:36 +0200
commit711d11c696d9cf2ef8ea9cd8405dc8484d3056d7 (patch)
tree66b16663fa956a971ce903310a2a5ddf7c143dfa /examples
parentb11d5de0d552e08e3c55968fc5238f33a4196d5c (diff)
downloaddpdk-711d11c696d9cf2ef8ea9cd8405dc8484d3056d7.zip
dpdk-711d11c696d9cf2ef8ea9cd8405dc8484d3056d7.tar.gz
dpdk-711d11c696d9cf2ef8ea9cd8405dc8484d3056d7.tar.xz
examples: use child directory as name
This would allow correctly naming an application residing in a subdirectory. For example, if the example is set to 'path/to/app', then the name would be 'app'. This doesn't affect the naming of an example that isn't in a subdirectory. Signed-off-by: Ali Alnubani <alialnu@mellanox.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/meson.build b/examples/meson.build
index de35656..53a786e 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -64,7 +64,7 @@ endif
default_cflags += '-D_GNU_SOURCE'
foreach example: examples
- name = example
+ name = example.split('/')[-1]
build = true
sources = []
allow_experimental_apis = false