From 711d11c696d9cf2ef8ea9cd8405dc8484d3056d7 Mon Sep 17 00:00:00 2001 From: Ali Alnubani Date: Thu, 23 May 2019 17:40:38 +0000 Subject: [PATCH] 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 Acked-by: Luca Boccassi --- examples/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index de35656d4a..53a786eb48 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 -- 2.20.1