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 E2D3543037; Fri, 11 Aug 2023 20:24:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BDE1840E03; Fri, 11 Aug 2023 20:24:50 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 7585C40144 for ; Fri, 11 Aug 2023 20:24:49 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id CB3D520FCF8B; Fri, 11 Aug 2023 11:24:48 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com CB3D520FCF8B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691778288; bh=nCPKYaHyTEGSHDOZOKNhYe3Tb/Usdkg7PSLKs/iQaD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaE5v+7P//IexQN2UKfRjORYljQZqycYq++ouK8bpoVKDBbm32FIKQ7SDNFz/PJNI lLJKltQOP42e3IpBcQz7tSfyar8I/AFMCspsw4xVo84ekw2/G2ZVnJKcuyedzwojrc aZuwcPAh2HNHhE9OQ9hqfDsY81HgxyDYn0NKnIto= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Konstantin Ananyev , david.marchand@redhat.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH v4 3/4] build: limit what is built when using MSVC compiler Date: Fri, 11 Aug 2023 11:24:46 -0700 Message-Id: <1691778287-15746-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691778287-15746-1-git-send-email-roretzla@linux.microsoft.com> References: <1674674707-3094-1-git-send-email-roretzla@linux.microsoft.com> <1691778287-15746-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 | 6 ++++-- drivers/meson.build | 4 ++++ lib/meson.build | 8 ++++++++ usertools/meson.build | 4 ++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/meson.build b/app/meson.build index 4fc1a83..23a9d2e 100644 --- a/app/meson.build +++ b/app/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 + disable_apps = ',' + get_option('disable_apps') disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().split() @@ -38,8 +42,6 @@ if get_option('default_library') == 'static' and not is_windows default_ldflags += ['-Wl,--export-dynamic'] endif -enabled_apps = [] # used to print summary at the end - foreach app:apps name = app build = true diff --git a/drivers/meson.build b/drivers/meson.build index c909070..417b64b 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 7da3698..77c3e74 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -66,6 +66,14 @@ libraries = [ 'node', ] +if is_ms_compiler + libraries = [ + 'log', + 'kvargs', + 'telemetry', + ] +endif + optional_libs = [ 'bitratestats', 'cfgfile', diff --git a/usertools/meson.build b/usertools/meson.build index 0efa4a8..740b483 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