Skip to content

Commit b2e1313

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 and Dylan in 8200139, c1d15e7 and 61d472b. Signed-off-by: Florian Fischer <[email protected]>
1 parent f93781b commit b2e1313

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

examples/meson.build

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
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+
'io_uring-udp.c',
5+
'link-cp.c',
6+
'poll-bench.c',
7+
'send-zerocopy.c',
8+
]
129

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

0 commit comments

Comments
 (0)