[v4,3/4] build: limit what is built when using MSVC compiler
Checks
Commit Message
Build only kvargs and telemetry when is_ms_compiler.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
app/meson.build | 6 ++++--
drivers/meson.build | 4 ++++
lib/meson.build | 8 ++++++++
usertools/meson.build | 4 ++++
4 files changed, 20 insertions(+), 2 deletions(-)
Comments
On Fri, Aug 11, 2023 at 11:24:46AM -0700, Tyler Retzlaff wrote:
> Build only kvargs and telemetry when is_ms_compiler.
>
> Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> 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
> -
oops, i shouldn't have removed this since David's patch removes it
already. please ignore this removal when reviewing.
@@ -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
@@ -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
@@ -66,6 +66,14 @@ libraries = [
'node',
]
+if is_ms_compiler
+ libraries = [
+ 'log',
+ 'kvargs',
+ 'telemetry',
+ ]
+endif
+
optional_libs = [
'bitratestats',
'cfgfile',
@@ -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',