From: Florian Fischer <[email protected]>
To: [email protected]
Cc: Florian Schmaus <[email protected]>,
Florian Fischer <[email protected]>
Subject: [PATCH liburing 9/9] meson: update available examples to liburing 2.3
Date: Wed, 27 Jul 2022 17:27:23 +0200 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
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 <[email protected]>
---
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
next prev parent reply other threads:[~2022-07-27 15:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-27 15:27 [PATCH liburing] add additional meson build system support Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 1/9] add Meson build system Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 2/9] meson: update meson build files for liburing 2.3 Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 3/9] meson: update available tests to " Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 4/9] meson: update installed manpages " Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 5/9] meson: add default test setup running each test once Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 6/9] meson: support building without libc Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 7/9] meson: add 'raw' test suite Florian Fischer
2022-07-27 15:27 ` [PATCH liburing 8/9] github bot: add jobs for meson Florian Fischer
2022-07-27 15:27 ` Florian Fischer [this message]
2022-07-27 19:21 ` [PATCH liburing] add additional meson build system support Bart Van Assche
2022-07-27 20:53 ` Florian Fischer
2022-07-29 7:47 ` Florian Schmaus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220727152723.3320169-10-florian.fischer@muhq.space \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox