From patchwork Tue Apr 2 16:55:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 139022 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7773243DC3; Tue, 2 Apr 2024 18:55:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 045D6402D5; Tue, 2 Apr 2024 18:55:52 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E23B64028C for ; Tue, 2 Apr 2024 18:55:49 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3859E20E8BF3; Tue, 2 Apr 2024 09:55:49 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3859E20E8BF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712076949; bh=DYZCD2o+C8tFAEQ24MYme/mJCOJp2GLcBWUJtomM7cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bPpLvByejNYncXb77+b56Ea3wxBlLnUE+RNP5CXUeDRqDHUFR9h47nhJrlDZ9Y7TL 7ZLPRR7NOYsESyTqrJWDTqYiJ2ErokVyKaY4dmKK4HoeEuP6dMiLJ9MapJQiwB8GgO smm6ai4R+DQmBS7K6Yubtkcn7+v9+d89TmQZHQOY= From: Tyler Retzlaff To: dev@dpdk.org Cc: =?utf-8?q?Morten_Br=C3=B8rup?= , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Honnappa Nagarahalli , Kevin Laatz , Tyler Retzlaff Subject: [PATCH] build: exclude rather than include libs in MSVC build Date: Tue, 2 Apr 2024 09:55:48 -0700 Message-Id: <1712076948-25853-2-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1712076948-25853-1-git-send-email-roretzla@linux.microsoft.com> References: <1712076948-25853-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 Some libraries that could be built with MSVC were not being built. Switch from explicit include to exclude of libs to get immediate CI coverage of libraries that already work with MSVC Windows builds. Signed-off-by: Tyler Retzlaff Acked-by: Stephen Hemminger --- lib/argparse/meson.build | 6 ++++++ lib/dmadev/meson.build | 6 ++++++ lib/mbuf/meson.build | 6 ++++++ lib/mempool/meson.build | 6 ++++++ lib/meson.build | 10 ---------- lib/rcu/meson.build | 6 ++++++ lib/stack/meson.build | 6 ++++++ 7 files changed, 36 insertions(+), 10 deletions(-) diff --git a/lib/argparse/meson.build b/lib/argparse/meson.build index b6a08ca..8ab4c40 100644 --- a/lib/argparse/meson.build +++ b/lib/argparse/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2024 HiSilicon Limited. +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + sources = files('rte_argparse.c') headers = files('rte_argparse.h') diff --git a/lib/dmadev/meson.build b/lib/dmadev/meson.build index 62b0650..e66dcb6 100644 --- a/lib/dmadev/meson.build +++ b/lib/dmadev/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2021 HiSilicon Limited. +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + sources = files('rte_dmadev.c', 'rte_dmadev_trace_points.c') headers = files('rte_dmadev.h') indirect_headers += files('rte_dmadev_core.h', 'rte_dmadev_trace_fp.h') diff --git a/lib/mbuf/meson.build b/lib/mbuf/meson.build index 0435c5e..2cee905 100644 --- a/lib/mbuf/meson.build +++ b/lib/mbuf/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + sources = files( 'rte_mbuf.c', 'rte_mbuf_ptype.c', diff --git a/lib/mempool/meson.build b/lib/mempool/meson.build index 8099a56..acce66c 100644 --- a/lib/mempool/meson.build +++ b/lib/mempool/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + extra_flags = [] foreach flag: extra_flags diff --git a/lib/meson.build b/lib/meson.build index 179a272..94d2b72 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -68,16 +68,6 @@ libraries = [ 'node', ] -if is_ms_compiler - libraries = [ - 'log', - 'kvargs', - 'telemetry', - 'eal', - 'ring', - ] -endif - always_enable = [ 'cmdline', 'eal', diff --git a/lib/rcu/meson.build b/lib/rcu/meson.build index 09abc52..71143f5 100644 --- a/lib/rcu/meson.build +++ b/lib/rcu/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Arm Limited +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + sources = files('rte_rcu_qsbr.c') headers = files('rte_rcu_qsbr.h') diff --git a/lib/stack/meson.build b/lib/stack/meson.build index 18177a7..7631a14 100644 --- a/lib/stack/meson.build +++ b/lib/stack/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation +if is_ms_compiler + build = false + reason = 'not supported building with Visual Studio Toolset' + subdir_done() +endif + sources = files('rte_stack.c', 'rte_stack_std.c', 'rte_stack_lf.c') headers = files('rte_stack.h') # subheaders, not for direct inclusion by apps