Skip to content

Commit 714c149

Browse files
committed
meson: update available examples to liburing 2.3
Use an array of sources instead of declaring each example individually. Add examples introduced by Pavel in 8200139 and c1d15e7. Signed-off-by: Florian Fischer <[email protected]>
1 parent f0fea02 commit 714c149

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

examples/meson.build

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
executable('io_uring-cp',
2-
'io_uring-cp.c',
3-
dependencies: uring)
4-
5-
executable('io_uring-test',
6-
'io_uring-test.c',
7-
dependencies: uring)
8-
9-
executable('link-cp',
10-
'link-cp.c',
11-
dependencies: uring)
1+
example_sources = [
2+
'io_uring-cp.c',
3+
'io_uring-test.c',
4+
'link-cp.c',
5+
'poll-bench.c',
6+
'send-zerocopy.c',
7+
]
128

139
if has_ucontext
14-
executable('ucontext-cp',
15-
'ucontext-cp.c',
16-
dependencies: uring)
10+
example_sources += ['ucontext-cp.c']
1711
endif
12+
13+
foreach source: example_sources
14+
name = source.split('.')[0]
15+
executable(name,
16+
source,
17+
dependencies: uring)
18+
endforeach

0 commit comments

Comments
 (0)