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 740D542495; Thu, 26 Jan 2023 19:03:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A9AA42BFE; Thu, 26 Jan 2023 19:03:30 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id EAA6540685 for ; Thu, 26 Jan 2023 19:03:26 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3CEA620E6598; Thu, 26 Jan 2023 10:03:26 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3CEA620E6598 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1674756206; bh=2KyHSleZoPK6yRWfAd4AZF6hzUUffdCiob2yZvdAH9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HNm/2hDvBBw9+E253COeMT7vZ6leqZAGR/zqwBttWcLIFvremwa8uldmpGQxoojqR 3kSIbcRU27WOJzg9A4RmZwF6X0C0tRlQ7RrmL/DAGeXm8VjSlcu8T8aQaP3KwuIChN lrTEhuj6x+5HVDYl0f44MMsdP12nb3sn+lNrCP4w= From: Tyler Retzlaff To: dev@dpdk.org Cc: bruce.richardson@intel.com, Tyler Retzlaff Subject: [PATCH v2 3/3] build: limit what is built when using MSVC compiler Date: Thu, 26 Jan 2023 10:03:24 -0800 Message-Id: <1674756204-25965-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1674756204-25965-1-git-send-email-roretzla@linux.microsoft.com> References: <1674674707-3094-1-git-send-email-roretzla@linux.microsoft.com> <1674756204-25965-1-git-send-email-roretzla@linux.microsoft.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 Build only kvargs and telemetry when is_ms_compiler. Signed-off-by: Tyler Retzlaff --- app/meson.build | 5 +++++ drivers/meson.build | 4 ++++ lib/meson.build | 7 +++++++ usertools/meson.build | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/app/meson.build b/app/meson.build index e32ea4b..a606510 100644 --- a/app/meson.build +++ b/app/meson.build @@ -1,6 +1,11 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation +if is_ms_compiler + enabled_apps = [] + subdir_done() +endif + disable_apps = ',' + get_option('disable_apps') disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().split() diff --git a/drivers/meson.build b/drivers/meson.build index c6d6192..8ed1213 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -1,6 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017-2019 Intel Corporation +if is_ms_compiler + subdir_done() +endif + fs = import('fs') # Defines the order of dependencies evaluation diff --git a/lib/meson.build b/lib/meson.build index 82e4666..8e99e21 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -65,6 +65,13 @@ libraries = [ 'node', ] +if is_ms_compiler + libraries = [ + 'kvargs', + 'telemetry', + ] +endif + optional_libs = [ 'bitratestats', 'cfgfile', diff --git a/usertools/meson.build b/usertools/meson.build index b6271a2..1a56248 100644 --- a/usertools/meson.build +++ b/usertools/meson.build @@ -1,6 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +if is_ms_compiler + subdir_done() +endif + install_data([ 'dpdk-devbind.py', 'dpdk-pmdinfo.py', -- 1.8.3.1