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 B751B429D8; Tue, 25 Apr 2023 22:09:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D873342D16; Tue, 25 Apr 2023 22:08:54 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 01636410EA for ; Tue, 25 Apr 2023 22:08:50 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 4D8E621C2B2E; Tue, 25 Apr 2023 13:08:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4D8E621C2B2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682453330; bh=AEHlQ/DPR59l7wV4E3tRBNZfmFSoPZlEbxXwmG6f+YM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l5kwYLqmsz+KMVSL7yoTnh35Rb21JXVH42/YK1/TX1aE5nQePk6v2dLCWFofkJIrA 8alL5bVA67PhEFliyoZ4aXBta2/qOIujZ1NyFsFScGJeQ38A7YCnvKGbva/WYMSF0S qu+7csGvQHSN8txdRtpTpbYfs2VOSmr0gyhVaSy8= From: Tyler Retzlaff To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH v3 3/4] build: limit what is built when using MSVC compiler Date: Tue, 25 Apr 2023 13:08:48 -0700 Message-Id: <1682453329-20435-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1682453329-20435-1-git-send-email-roretzla@linux.microsoft.com> References: <1674674707-3094-1-git-send-email-roretzla@linux.microsoft.com> <1682453329-20435-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 Acked-by: Bruce Richardson --- 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 74d2420..94fd7c9 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 74ae8cb..749ec20 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 40c632a..777d3d3 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -66,6 +66,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