Skip to content

Commit

Permalink
meson: update available examples to liburing 2.3
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
fischerling committed Jul 26, 2022
1 parent f0fea02 commit 714c149
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions examples/meson.build
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
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',
'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

0 comments on commit 714c149

Please sign in to comment.