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>
This commit is contained in:
parent
b11d5de0d5
commit
711d11c696
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user