[PATCH liburing 9/9] meson: update available examples to liburing 2.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

diff --git a/examples/meson.build b/examples/meson.build
index becfc02..e7f5daf 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -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
-- 
2.37.1




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux