Build only kvargs and telemetry when is_ms_compiler.
Signed-off-by: Tyler Retzlaff <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
---
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