From patchwork Wed Jul 27 15:27:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fischer X-Patchwork-Id: 12930488 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D985BC19F2D for ; Wed, 27 Jul 2022 15:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231748AbiG0Pef (ORCPT ); Wed, 27 Jul 2022 11:34:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233934AbiG0Pec (ORCPT ); Wed, 27 Jul 2022 11:34:32 -0400 Received: from euporie.uberspace.de (euporie.uberspace.de [185.26.156.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98B11237F4 for ; Wed, 27 Jul 2022 08:34:31 -0700 (PDT) Received: (qmail 15389 invoked by uid 989); 27 Jul 2022 15:27:48 -0000 Authentication-Results: euporie.uberspace.de; auth=pass (plain) From: Florian Fischer To: io-uring@vger.kernel.org Cc: Florian Schmaus , Florian Fischer Subject: [PATCH liburing 9/9] meson: update available examples to liburing 2.3 Date: Wed, 27 Jul 2022 17:27:23 +0200 Message-Id: <20220727152723.3320169-10-florian.fischer@muhq.space> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727152723.3320169-1-florian.fischer@muhq.space> References: <20220727152723.3320169-1-florian.fischer@muhq.space> MIME-Version: 1.0 X-Rspamd-Bar: ----- X-Rspamd-Report: R_MISSING_CHARSET(0.5) MIME_GOOD(-0.1) REPLY(-4) MID_CONTAINS_FROM(1) BAYES_HAM(-2.999993) X-Rspamd-Score: -5.599993 Received: from unknown (HELO unkown) (::1) by euporie.uberspace.de (Haraka/2.8.28) with ESMTPSA; Wed, 27 Jul 2022 17:27:48 +0200 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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 --- 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