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 0DAC6456F4; Tue, 30 Jul 2024 17:24:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20F8C40E4B; Tue, 30 Jul 2024 17:24:07 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by mails.dpdk.org (Postfix) with ESMTP id 88077402EB for ; Tue, 30 Jul 2024 17:21:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722352887; x=1753888887; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=6MQ1mx9AGtWB7iRjJHYM9dXz3Z9uGPspUVgfYMfFWIU=; b=DaOtoq3tMGNqTVl+e01SSKM/e3BpFjfaX2YbPF9IHlZkO+ey8BgwWeol qvyZZ0vqbiPa2mDR/aFaOAUGWrvQNYcs27aD/aAaUsp9lXK1zJdan7Pf9 LazjHRf0e7nBAv7bYxQW/7/ON6QNUVBB2/AFE3av/sTb03zaLGox56YVI 7rxpmHM8gsudER53aiutGr/JipuixQtLuWWjEonX1j4YblJ9RFKqxdF/O TCw/9DnHpOuEhVnV9/0iH140HOWCwBxUHl44gjDwLeG4KgB5CcixN0y70 Ga8Z6noODwpn9pjKqyFyLYupMm5qJIVcbE0DaQjIEmlK4ATYglFTV+c1q Q==; X-CSE-ConnectionGUID: ZuR/xwDpRwu/IcpNzyEqxQ== X-CSE-MsgGUID: 5rfQIVSEQf2c74q8h5O/tQ== X-IronPort-AV: E=McAfee;i="6700,10204,11149"; a="20338193" X-IronPort-AV: E=Sophos;i="6.09,248,1716274800"; d="scan'208";a="20338193" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2024 08:19:49 -0700 X-CSE-ConnectionGUID: 1ugQADLBSpyvS7jGsPwvxg== X-CSE-MsgGUID: 2oxcq4dUT0CtAp2IDC7UjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,248,1716274800"; d="scan'208";a="77613223" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Jul 2024 08:19:49 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 30 Jul 2024 08:19:48 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 30 Jul 2024 08:19:48 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 30 Jul 2024 08:19:48 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 30 Jul 2024 08:19:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sYpDyI8jKhdaUkFBj0mQpFNqsING4MOgfmoW2bbd9s5Dx2kHN2tuuazzG4/QfQ4yd0tb6vgWqPzBlLW8lyxlcFQoCSJ/2wInggXpoYKzqrAc/Sm8yhNC08kSvyLZBRTk+JX2iw8M2RzBcghl6kzFtLTFRTUnc/NjsPh+1RJhuM0hGa4gLjANHs6KZ9lgexeqiRbMIIh66cM/iqsipP1ZcJQhfeFo5tOFs0GbqRL0ylgNbH0CI1+hOMHvb2kRP/lWG2z+8sbKwRDcv5PtoKSI8mw/WRjo+u2eO2llN5j/g4jzlrHb1snlDC0v5WKTzlX18Z8xtofVISzSDqtRbOLrLQ== 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=kX0J2322wmUTSfgO2jmRy19aKQkyLakScEaQlOOscto=; b=yGqE1JUN2pdXK5QsUfQ7jhB0k7dUms/TKXmyWcuzlzFD31ynlwS7PR+IELvI5tKBq24AB/iZIObtCpkSEVZIa7DJ9AweQk/BLN4bZjaR6TfwLMmfVqRhNqhuCRvfKJhis7I3YWImvlxXGeJMXV8idBEiURG/DHOirf40V6z6G454y0+qhv2awKcUwsFlO1+yR7j4n0D0gyV778rRTWwSK6C4YnPBzuyvWj4gN++KTQJytRz7ATpdbI+0C0hM3b8j/xxAOgXy9vKDBZlfBvpw3kxWC65hVB71QR9xBr/LM0YnUnE80p46NcrqYfmWCy8XNzM++XWWRkZpHKjjod3HVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SN7PR11MB7440.namprd11.prod.outlook.com (2603:10b6:806:340::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.23; Tue, 30 Jul 2024 15:19:42 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%2]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 15:19:42 +0000 Date: Tue, 30 Jul 2024 16:19:37 +0100 From: Bruce Richardson To: "Burakov, Anatoly" CC: , Subject: Re: [RFC PATCH v2 0/1] Add Visual Studio Code configuration script Message-ID: References: <47f8ac03-239a-4560-b30d-f651b99592eb@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <47f8ac03-239a-4560-b30d-f651b99592eb@intel.com> X-ClientProxiedBy: DB3PR08CA0016.eurprd08.prod.outlook.com (2603:10a6:8::29) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SN7PR11MB7440:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b3dd51e-5cad-4c03-8951-08dcb0ab0901 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?3lmKca9JvdxXiWWsoiZZfvjFsrT/pfVSPFh3CHqb7qhEE9mS2ReB3nEeZDTQ?= =?us-ascii?Q?A12/4a4LLeRoxT6ldSCvoWXZrJthYZKvL4Yzr6TOgV5hUgsndhH4nMR/sckz?= =?us-ascii?Q?GsBc8yN4LQNeYQ51p7ntgl322TRh4SZNXGklRJPFuNGS0hrSWtU1W/rz0b4L?= =?us-ascii?Q?ITbQkKVMCTQ1bicq+wC9k1/HXIp6yS66m5WlIamxULQAodjy82NjHFWgezIa?= =?us-ascii?Q?8a5A+crCMHdAsu7v2Hh2jT8kUAFhn5nCXN09DlHAYfyWwdhT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/4EErfBq2mOVTHHZ+TMzBqNVDjllQXhvSQ?= =?us-ascii?Q?jMLZqj/Kqyx3O1KFJ45rZEsAcBVAWZmTJRzEW1EimRHlLYzVHYdCm/hgOOqf?= =?us-ascii?Q?BPDmn5ExOgTHmd1F4D9OIKr3Wo4Zq/oVU4TsNJd3wZaC/478dpLPixGmb+Ki?= =?us-ascii?Q?keQ/Ip3Q2xr4QJdCMbIuJVIb57pmmM/LZDmVnZcDA3jg7w=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wlgZ46a09FITQbWI5Qy4NF5A+ODR46j7ZSC/VQ5jmROw9O1zpRLwtDlAYcRz?= =?us-ascii?Q?+L9W6pde58DKMJi/14VL2M5h7M/ynbzATNTXk0rBgPz5DnAJ2qsOh9CMsT+b?= =?us-ascii?Q?pGZmLbeFAGsM3Xld5FHa6yUPzI2CTiFkrqKFs0KeRC9OgCqEBOFn2ubWboTI?= =?us-ascii?Q?jN4evu7Wb5qaLWps78LuaJaCPdmVgJ0bL7LZby/zLwQ6ZfHjG8gDC6pyQswv?= =?us-ascii?Q?CtmSz4P1haaIQlo5FCZ4MqY6RDAA/tESQCUACeY41viZPMs2PK6NQdQWk9Hz?= =?us-ascii?Q?XFFL5SkfyvNnYV3HWHDB819zxZpPti4QiSPnkXk4MLCHVyLbVScPDJHVJ1OH?= =?us-ascii?Q?3rcusOs/Z7xyMgfHZFkAPHQCWugRBbU8Gyb1QquLGMUtW+rMbBfNPeN+NLWk?= =?us-ascii?Q?JjWzgogQbIIEsa0a9RiuTbPAB5NbxJU8CSMQ0eJqg6cNQRYzv2W49+dKolkD?= =?us-asc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ZW1GtICjhl97p3yaZajtUDw5YaxOAD2qn1?= =?us-ascii?Q?rH2FLq2MRjkdzCJbJ77/BkLn844hMAItclAdZt/zxdxNmdcbvmDRKw4CQErV?= =?us-ascii?Q?lhr0Oo0jFKRGTe8ofzbbcQWGKct5vVQT8GJfSnOdmCiUjovJ4pgiw7Xui0RT?= =?us-ascii?Q?YhmoAU9uHvfDPHrEZQWYl9xQZYwUkiiZ+3y58Ay+B7UpUr77G+RsYHJwwah2?= =?us-ascii?Q?7c+ixqvnzqDxYigYKHEcqL4qZdyNLcqQytcrpVQDaWBs/75st373ainFLUMA?= =?us-ascii?Q?/Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 7b3dd51e-5cad-4c03-8951-08dcb0ab0901 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 15:19:41.9273 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lyD/AwyG7xu+ZJ7P/B9kbNStMcAtkPi1FqHGF18Pl0dj6FyAKNahG81ieP70F5aGPvowqYkYqrEIcnMmd8cTpQ+O9MS2WdB03uSq2ASmdVw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7440 X-OriginatorOrg: intel.com 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 On Tue, Jul 30, 2024 at 05:14:29PM +0200, Burakov, Anatoly wrote: > On 7/30/2024 5:01 PM, Bruce Richardson wrote: > > On Mon, Jul 29, 2024 at 02:05:51PM +0100, Anatoly Burakov wrote: > > > Lots of developers (myself included) uses Visual Studio Code as their primary > > > IDE for DPDK development. I have been successfully using various incarnations of > > > this script internally to quickly set up my development trees whenever I need a > > > new configuration, so this script is being shared in hopes that it will be > > > useful both to new developers starting with DPDK, and to seasoned DPDK > > > developers who are already using Visual Studio Code. It makes starting working > > > on DPDK in Visual Studio Code so much easier! > > > > > > ** NOTE: Currently, only x86 configuration is generated as I have no way to test > > > the code analysis configuration on any other platforms. > > > > > > ** NOTE 2: this is not for *Visual Studio* the Windows IDE, this is for *Visual > > > Studio Code* the cross-platform code editor. Specifically, main target > > > audience for this script is people who either run DPDK directly on their > > > Linux machine, or who use Remote SSH functionality to connect to a remote > > > Linux machine and set up VSCode build there. No other OS's are currently > > > supported by the script. > > > > > > (if you're unaware of what is Remote SSH, I highly suggest checking it out [1]) > > > > > > Philosophy behind this script is as follows: > > > > > > - The assumption is made that a developer will not be using wildly different > > > configurations from build to build - usually, they build the same things, work > > > with the same set of apps/drivers for a while, then switch to something else, > > > at which point a new configuration is needed > > > > > > - Some configurations I consider to be "common" are included: debug build, debug > > > optimized build, release build with docs, and ASan build (feel free to make > > > suggestions here!) > > > > > > - By default, the script will not add any meson flags unless user requested it, > > > however it will create launch configurations for all apps because not > > > specifying any flags leads to all apps being enabled > > > > > > - All parameters that can be adjusted by TUI are also available as command line > > > arguments, so while user interaction is the default (using whiptail), it's > > > actually not required and can be bypassed > > > > > > > The management of dependencies of components to be built is obviously a > > tricky area here, when specifying e.g. enable_drivers flags. It may be > > possible to improve the situation in meson itself, but that probably > > requires massive rework of the lib/meson.build, drivers/meson.build and > > app/meson.build files to process the subdirs and save the results for later > > use (effectively process them twice within the restrictions of meson only > > allowing subdir once). > > > > In the meantime, as a better-than-nothing improvement, I've pushed a draft > > patch to have meson produce a dependencies file as part of its processing[1]. > > That may be of use to you in doing new versions of the TUI - i.e. in the > > background you could run a dummy meson config to /tmp and then process the > > resulting deps file from it, to allow you to recursively enable > > dependencies of the user-selected components.. > > Thanks, this looks very interesting! It's a shame it can't be done without > creating a build directory at all (e.g. by using meson dummy runs or > something), but like you said, better than nothing! Yes. I was wracking my brains to find a better way to do this, but haven't come up with one yet.