From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1755E4574D; Tue, 6 Aug 2024 15:42:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ADAA42EDB; Tue, 6 Aug 2024 15:42:37 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011020.outbound.protection.outlook.com [52.101.65.20]) by mails.dpdk.org (Postfix) with ESMTP id A9B4642ED7 for ; Tue, 6 Aug 2024 15:42:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NaEn3PXPSz8QBNmhjMzRZ9ulT5+eV3wYKxPR97yXIsC4ef1IHD+2S0tAfLAjya8WZgL7Nm20uPRmPNifN/SOvszuNV1P+0Fm0gNy/7ZDuvzgqqzS/+C1OG6Y4rBmj14ceL6SkCu0WoCC1AYKHaxtdoINUxyJlM7eRx15Eo3GI3MirmhCulYYInb6U2MG5h4Fv9Moy75pnNl6T7fmp0i64KTBU+OtpJX7Fey8BiM5WeF0YqGkAvfeUQpPdmJyW5atBccxPr9OdyRjFSMnOS7XnguXJZSYxTrezofRs3oIPm8H62fRrAPXBWx75hRLsQnJ2IH4txOwghK6/j6fQyI6ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d8Gj/HN+/PozG9qSS448gEdDKqSQmtMI556FbAqZGH8=; b=AX8dIq2QbjyX3UdtgxPdKS64oU1XiWA2ZodzhNjxAyozh95uaVK48GjOrR52HWE2qUFQ+fynz7uaBFfj9kHHUc3mBJnQhZmgEH/r5umAwmqw4HvIJxfm4c5BC12rW4y9IDglQ1u/HaEQy1jXsXy0LPP21yYuA2iO94KXeVGquDZEIp5jm7j79/3AscJEv2IH0wwvxnbuKlXnF7H1jhcpvb29XDycxTTOCxqzqmqcCGUXTLbKRMDR/1H0uAx4HrXax7Cw8vISCARWsy0KCvAepEwCEUGI16GO+OUbk1fplSUQk/UteC7U7ihSkLkpSQrBFRmhtpBwFNpyLFlOWSftrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d8Gj/HN+/PozG9qSS448gEdDKqSQmtMI556FbAqZGH8=; b=eZ4v7SmIXi4sAZ6jwuxywWzqLcb8o3d23P+hFGnftsByFAFidfH4WfLVPMGIm4fAHRcLxG5OfvzGuH9UPJhlzAImtsCp2tr3BrZU7xLfom7kIyp69M8A2piQ/ozurFytVZLMBptLOL9B0Ub5Jbu/lCKrEi0HM/kitSbyfwQDw0RHlTe1BTFsntZwaAJvxDY/BptPOmYEGXrZ089jf87gYrjRcCqVNGEQ7yQ3lwcjAPLGT8edm+M0BLT4TViP4TPGcWmSBcEUZ13GMhplaTOO3bHZ+i/J4jfyK47hzDbKTNcz2SHeRddg55xSs1WkyOd5dM55ZACAWJLJbCL1PWu5xQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by AS8PR04MB7783.eurprd04.prod.outlook.com (2603:10a6:20b:2a4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 13:42:33 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 13:42:33 +0000 From: Gagandeep Singh To: dev@dpdk.org, Bruce Richardson Subject: [v1 1/3] meson: add a meson option to install examples Date: Tue, 6 Aug 2024 19:12:16 +0530 Message-Id: <20240806134218.3619913-2-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806134218.3619913-1-g.singh@nxp.com> References: <20240806134218.3619913-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0004.apcprd02.prod.outlook.com (2603:1096:4:194::14) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|AS8PR04MB7783:EE_ X-MS-Office365-Filtering-Correlation-Id: 121ccad7-95ea-45ab-2b82-08dcb61d9fff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?h5jTpEz7yYzvSZmN4plC2Pd3sqfVkG++187ZQ5gC6OM5NtsJe7dXlyj3zR5k?= =?us-ascii?Q?wvaYO50YdWA8xSZqt7WQuL/QJnxyR0hghkH743PciVqw15fvk464vveUSPHd?= =?us-ascii?Q?JqMuOElXR1qwrfX9j0KJYs1v6ZFOjPSJ1NS+u3W+5oocXkRpRcatkTPRTOTB?= =?us-ascii?Q?CN5eoHGU0XSUuLvvukKucMNdv0Vvj6dzJ0t2RRJ32nos7H8JqxikexubB2AV?= =?us-ascii?Q?AJd3QDPFwu6+JN5ec/vQzzNi9TGAq3gm9R6WC1gc95NbkCnW5dxqHJfm8d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DA5N2/ozWUiWc2twCRT5UO/OPrbaGU3C?= =?us-ascii?Q?JDTEcvQSbbD6cNnllr2Yd2zyKMFlfoI31y1Np6suRJzVcgE1hvx8Ajplb2ZS?= =?us-ascii?Q?TZkJG+kFFX0MTSn1Va1bsZzexXVA9+vTM0X7JzXD3SyqkipDC3Qcp4MvWV3f?= =?us-ascii?Q?Q03kJZIqvGxa2/0MngWoWediiiCcYw8o0xFnPbOxWDPQKjlCBV9zUmA5FFi4?= =?us-ascii?Q?dLc4cZFJ2j9ugtqVrwSLmePYQyO4b6Ll5qjQKD0vEMF/U5CUdA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kFi7qBtsilSfCUaj/qBhkv7llrd2nLKzadrV2z66TDAZhx4foYDE9IciX4Hj?= =?us-ascii?Q?fugQg/2SfBZ4jqRf7ybbXjgg2Wmo8NAjqjHATp1Tco9U1JwbeCZOAXcanvs4?= =?us-ascii?Q?6tn3vRUuCiDt7ktLZBF4yW7YoIvdq8jnWsKFH9cm+nQuHvY2sNXJCWgeDhQN?= =?us-ascii?Q?27/f+tHf4s1/Cd50aLgXIa6ygdEi0WdqB4YOCYSkr6WDhcpGZxQyFBcnDvXY?= =?us-ascii?Q?zND9pVVExW7q8aoql7cGCbAcMJwBLgoABa/ul9pwnn2jtpx70cJW0yV8uhro?= =?us-ascii?Q?pzQovwJudqVwp8e8xtUBDRxYarO6SViucPlNaNa6Y2eZNA2vKYJszFmqIqBD?= =?us-ascii?Q?+MF3WCICUuBbGDpDXX08vpaL9vellg3lsrmbSPIbHVSW6NvVbr11MBlqykul?= =?us-ascii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YN2IEaO9FZ8ALmrxQddaOLaAhmo1EdF1p9wz6jD?= =?us-ascii?Q?hi4Vx75JuzGCy7ExphJXDsXNzg4P1FkzxEk3DMaT/msQZ8Idl6C+3lUOZtQ0?= =?us-ascii?Q?1CoQupdDBKUtVZCod89+BKF/jx7OiwE6z8U+VqvAgp2qDThpltoxdHMIQoWl?= =?us-ascii?Q?geM1I8HV3JJqrTJYbcwrsy7HbC6JwwqBzBF64uUwoTFW6EQ1AQgF3R3b8KDw?= =?us-ascii?Q?4gq2dOrmblW+Eb/m4VDPprSz/LK5o6ovlQT2fmpYdbeUIVldfJciBzIeUO9U?= =?us-ascii?Q?IjfjWNJjKeP/W4JkAhsnmfA5FFC6quN5K7qkudL9?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 121ccad7-95ea-45ab-2b82-08dcb61d9fff X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 13:42:33.7180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Sk9Ba+x1aOzReNgjkVRFA18mjYEVpgfI9QuhCl8Nb05tLwQV0mfTZNqmkax5ZZI6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7783 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Adding a meson option "enable_examples_bin_install" to install the examples binaries in bin. Default value is false. Signed-off-by: Gagandeep Singh --- examples/meson.build | 13 ++++++++++++- meson_options.txt | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index 8e8968a1fa..0d0df4e36d 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -124,10 +124,21 @@ foreach example: examples if allow_experimental_apis cflags += '-DALLOW_EXPERIMENTAL_API' endif - executable('dpdk-' + name, sources, + if get_option('enable_examples_bin_install') + executable('dpdk-' + name, sources, + include_directories: includes, + link_whole: link_whole_libs, + link_args: ldflags, + c_args: cflags, + dependencies: dep_objs, + install_rpath: join_paths(get_option('prefix'), driver_install_path), + install: true) + else + executable('dpdk-' + name, sources, include_directories: includes, link_whole: link_whole_libs, link_args: ldflags, c_args: cflags, dependencies: dep_objs) + endif endforeach diff --git a/meson_options.txt b/meson_options.txt index e49b2fc089..e6f83f3f92 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,6 +24,8 @@ option('enable_drivers', type: 'string', value: '', description: 'Comma-separated list of drivers to build. If unspecified, build all drivers.') option('enable_driver_sdk', type: 'boolean', value: false, description: 'Install headers to build drivers.') +option('enable_examples_bin_install', type: 'boolean', value: false, description: + 'Install examples binaries') option('enable_kmods', type: 'boolean', value: true, description: '[Deprecated - will be removed in future release] build kernel modules') option('enable_libs', type: 'string', value: '', description: -- 2.25.1