@@ -1,17 +1,19 @@
-executable('io_uring-cp',
- 'io_uring-cp.c',
- dependencies: uring)
-
-executable('io_uring-test',
- 'io_uring-test.c',
- dependencies: uring)
-
-executable('link-cp',
- 'link-cp.c',
- dependencies: uring)
+example_sources = [
+ 'io_uring-cp.c',
+ 'io_uring-test.c',
+ 'io_uring-udp.c',
+ 'link-cp.c',
+ 'poll-bench.c',
+ 'send-zerocopy.c',
+]
if has_ucontext
- executable('ucontext-cp',
- 'ucontext-cp.c',
- dependencies: uring)
+ example_sources += ['ucontext-cp.c']
endif
+
+foreach source: example_sources
+ name = source.split('.')[0]
+ executable(name,
+ source,
+ dependencies: uring)
+endforeach
Use an array of sources instead of declaring each example individually. Add examples introduced by Pavel and Dylan in 82001392, c1d15e78 and 61d472b. Signed-off-by: Florian Fischer <florian.fischer@muhq.space> --- examples/meson.build | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-)