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 A347145DAB; Tue, 26 Nov 2024 14:30:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45EB740E36; Tue, 26 Nov 2024 14:30:40 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mails.dpdk.org (Postfix) with ESMTP id DB2EA4064A for ; Tue, 26 Nov 2024 14:30:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732627838; x=1764163838; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=loSBkop0UGoVfkVOKVjeChAxZ9f6Eh3ffHe3gmCV86I=; b=AmfTafnvNR+CKUtBIQN+vIeGV0VBnOyLWkbbrz5VC2MU6QTObu2AqiqN xnZqtse0Z3YE3ae85MUfsv24XdD8ftFVAYGIiCB+l0fQW8dSYnpD4j0W+ ECDA1hIQAQ8+xOeltnnqqPKJBmC6cHCU14InqUvHIvoA5iRPgaaKc+nq1 6+04dClsSulAju7h9MnZj7UVZIClwxOcvYiLJTXNMtaGs/Uw1+Zeo+y6h lmfxVEQadlqG+IPXgzPbzEFTJtwW022rb+XUr9en11ZBxnRCSp6QhOlRq VqR2CFsYt89eLr6XBFQfk3J49UFsGh9yi5JuTVi39idm4TtpAgroR8cG/ A==; X-CSE-ConnectionGUID: WJwbaxN9R5q2GoO8GmqURg== X-CSE-MsgGUID: ISAm5d4jTBmC97XFAIn+Mg== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="44171873" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="44171873" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 05:30:37 -0800 X-CSE-ConnectionGUID: niDfedRMRxCygn9zQCHnjw== X-CSE-MsgGUID: jeie7G9ZQAyzXcKUiZGC3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="91434351" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa007.fm.intel.com with ESMTP; 26 Nov 2024 05:30:36 -0800 From: Anatoly Burakov To: dev@dpdk.org Cc: john.mcnamara@intel.com, bruce.richardson@intel.com Subject: [PATCH v2 0/1] Add Visual Studio Code configuration script Date: Tue, 26 Nov 2024 13:30:32 +0000 Message-ID: X-Mailer: git-send-email 2.43.5 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 or may want to start using Visual Studio Code. ** NOTE: While code analysis configuration is now populated from Meson and should pick up platform- or OS-specifc configuration, I have no way to test the code analysis configuration on anything but Linux/x86. ** 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. While the script should in theory work with any OS/platform supported by DPDK, it was not tested under anything but Linux/x86. (if you're unaware of what is Remote SSH, I highly suggest checking it out [1]) At a glance, this script will do the following: - At meson setup time, configuration entries will be created under /.vscode - Any new compiled executable will be added to configuration - Nothing will ever be deleted or modified, only added if it doesn't exist - Launch configuration is created using `which gdb`, so by default non-root users will have to do additional system configuration for things to work. This is now documented in a new section called "Integration with IDE's". - For those concerned about "bloat", the configuration is just a few text files - .vscode directory starts with a dot, so it'll be excluded from any Git updates [1] https://code.visualstudio.com/docs/remote/ssh Anatoly Burakov (1): buildtools: add VSCode configuration generator app/meson.build | 14 +- buildtools/gen-vscode-conf.py | 570 ++++++++++++++++++++ buildtools/meson.build | 5 + devtools/test-meson-builds.sh | 3 + doc/guides/contributing/ide_integration.rst | 89 +++ doc/guides/contributing/index.rst | 1 + doc/guides/rel_notes/release_24_11.rst | 5 + examples/meson.build | 15 +- meson.build | 14 + 9 files changed, 714 insertions(+), 2 deletions(-) create mode 100755 buildtools/gen-vscode-conf.py create mode 100644 doc/guides/contributing/ide_integration.rst -- 2.43.5