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 61E6C4574D; Tue, 6 Aug 2024 15:42:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79B0B42F35; Tue, 6 Aug 2024 15:42:38 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011039.outbound.protection.outlook.com [52.101.65.39]) by mails.dpdk.org (Postfix) with ESMTP id 5A2FD42EDA for ; Tue, 6 Aug 2024 15:42:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EqYla4f/qaXCHip5Aq4C7Djk74lowYR3TgNoRWrFcz39yTB8IJlWdNTakMtGbzxQugppeoSOafHshLVJOT63/RrPrk2mvHtbH5yFmrzxU1yXi0EXsRMXkaL0tnlGzobUeOuwWuXhHWi8ew2jQ8MuEFWdTTHYE1IFfzSDr0TSos8JUjsiMGEiCg+FZoqLmHa2RA2uxnNL70RZ+CB7ojab/99zuerTRKoXWCDhqGj+oTJzuZLMyCKUiF892bCO0APK9rgPcAJdUQBL7g1Uf6gFSFcGKTkB5M4vY4d4ylBuTA4uMXTTNcqW0tGzBQW/enRWhYnjVDtpcAuQUbwGngor9A== 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=DAUV9snNBUW5rkFOgs4ysuANbna831gHNMhdCtY9sTI=; b=mlbOAp20oQLS9Qj3HnezDXwF18+CRQa0IQ4uvOjnesHocbI/r2OzwES7gJ57ynHK3SJI6p3UztfjlwNqrBaUyWoXF2XpGg1PxQ5KhmPWP8zdbC/OJ5oAllCNhoo2ybWj4ZxLp3XnYNl+orRCLBTJ+vUXSbBVlQvJ654Jm9C7X0EpxFuN4RCxD0WVq8xjp5LNcc0VMP5iAW3y8yNGNf4Y3ee5bTBZizCZ9gB6cj4HwdUaNTZVBM1rmueEfsPkolWDbjjzNvlbFtbvBo8mY4lw7pus1+jboXJeyAAdqeLVhOuKPoBdwpx282DxGR/RkwcnkzNESZ2jT+LJfExLbeho+A== 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=DAUV9snNBUW5rkFOgs4ysuANbna831gHNMhdCtY9sTI=; b=Bqa4nOYPnovxRi+WITNnQuL0F5XkZPMq4ecpu8iW6WPPMkarivdA7nYLSBPZ+9FgH5UjH76kxCOrPuC5k0rbXUBLKEokOK/TkRT3b5dt+ZZ8SCY8kwe9OkGl/CDA7jPk404eCJDQjr6Au17HT+sl1LW5i7dBL4Pb/AwNrJsJkUFyKeXSEF36KJiWc+6h/UO1LdWe0GV4E/IbyMQ2K7mDyjARurPJaWmCmSyKeSZfZRbSvnJjRkekz40VvoJeG66Gio2H1TYFcl0+v6CogmlbbQonozUFM7I7AbCusi6Aoa8Oefkh5XSy49urnQykeidsbMLYfHNNA3XxMvc3nJ4RoA== 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:35 +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:35 +0000 From: Gagandeep Singh To: dev@dpdk.org, Bruce Richardson Subject: [v1 2/3] meson: add a meson option to install examples source Date: Tue, 6 Aug 2024 19:12:17 +0530 Message-Id: <20240806134218.3619913-3-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: bd89bb52-ca2a-49cc-7183-08dcb61da0f8 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?ng4zEPLAOqB7ARo9Z9A31n1XkDvbfZjvEXGwWsJZkfZCcD+kloq8h9o1ro75?= =?us-ascii?Q?rHokqYUo/l1tq5vL22P907dGuptQF012ntyikkJR+R4hS+yLWgm8paja3tBg?= =?us-ascii?Q?dTT+6It6R0JsNX0HsYSiszflokh3UpUzzgQkn4EkJl2hMTp0wboGtDnNcnNG?= =?us-ascii?Q?haBLSbHZO6bOiOGkRYQZTtjvzkUgmZILqHTgLYd7ymTFAf/3P6b8TBX/2+3x?= =?us-ascii?Q?RJViPWqR67hRsqzZyl/B1JiHdlaESxas0cyX6UN3eZ4/YDQolqbcfX5L53BY?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Tdvoafg2k09ri8wD16OrADJKgZR4ZC?= =?us-ascii?Q?WjWAaQvwIwOJRlq4YoXbH98MFVpfgg90Yg1CfUaS4P3QgPulf5Fzd457BnfO?= =?us-ascii?Q?EQIlld1lWZFfhYhIO9l5lo05n2Z09F35R2zFp2uZi97uEvKP2wD828jH18Kt?= =?us-ascii?Q?I0VwYcjhhVeYR6gqrHCH2/dqLK3M4EieCEI+roS7TlrQpijgB8hrdg3/4/Rv?= =?us-ascii?Q?JW04YsV8L8v1THfBwrB8aSU4eDd0GTC7FxaDY496QjSoe619LQ=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?cV/vhFVzVsc2cg+jNVp1B4NByNSpL7TPWrFQT41YxY094rrOt/dzqg+tkjcf?= =?us-ascii?Q?brTYUU9568/w+DiQ8A4FHRuD38p0SW+rcFZYYSkfIycWY4S3meNq8TBMMgdT?= =?us-ascii?Q?/EdwTHDwo7Agnos9pfzxO9yoTihenRFYY4xue4gCSrO8c7/0eVuVEfGRPIRI?= =?us-ascii?Q?xxHlBN3tikMpQz7aOMdtqmCXRAdLRXAUGOhaNSOSYlki9HZN/d60wZYDjtQ+?= =?us-ascii?Q?6enV9+payFE51e66onGriio/FYUiDsOXb1RmlfhRpQZc3wSCDUlUUKIjTVWu?= =?us-ascii?Q?zZBcH/0Uf/Cs6gQLdlwcFiHLs00JKlgqnoh8KEB29KVFjANY6cpxASUBLbN2?= =?us-ascii?Q?UF/RNZ6oAjU4dorRD68E/eBDnDbeFGjEyyLNqaBtL7hX89x1JeLa8EZAogCi?= =?us-ascii?Q?QOhcRf4+x+gtaNq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us-ascii?Q?/gc5VuaLRg6useIUMRv+TbTbqOHpUQEF3MCL9JAYN0xl8P7fpkQOGvHoawU7?= =?us-ascii?Q?JGtkW55wi2tlw/bOsBPAztcvm5KCV6N2KklYtEUVW/QMT2l9I0Ip9kT94t9E?= =?us-ascii?Q?dJUspu7ZM5koiv22WrhcT0iYZEaSuk0MZbq7PCiDwDrurIw9iv/M1YUEi+sl?= =?us-ascii?Q?aDOvbMHvc4yqzqAlQ5e/jL0sSdk0s0M57MAy2tnJh8W3z/+OcPNmjVRC/jhm?= =?us-ascii?Q?DeYNBR5DQSl4RAJ+MK0nRsxpTGPCleEPjHNa9oFf?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd89bb52-ca2a-49cc-7183-08dcb61da0f8 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:35.2882 (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: HmWFL8YuLf5aR4qFGAZm4MjmxG2jr4Z4q2N5vjoPGPzgxK0OA5QypBTZAQn1KbkX 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_source_install" to enable or disable installation of examples source code. Default value is true. Signed-off-by: Gagandeep Singh --- meson.build | 7 ++++--- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 8b248d4505..7cdd54f088 100644 --- a/meson.build +++ b/meson.build @@ -88,12 +88,13 @@ subdir('app') # build docs subdir('doc') -# build any examples explicitly requested - useful for developers - and -# install any example code into the appropriate install path +# build any examples explicitly requested subdir('examples') -install_subdir('examples', +if get_option('enable_examples_source_install') + install_subdir('examples', install_dir: get_option('datadir') + '/dpdk', exclude_files: ex_file_excludes) +endif # build kernel modules subdir('kernel') diff --git a/meson_options.txt b/meson_options.txt index e6f83f3f92..4f498093e6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -26,6 +26,8 @@ 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_examples_source_install', type: 'boolean', value: true, description: + 'Install examples source code') 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