On 9/16/2020 3:42 AM, Tal Shnaiderman wrote:
Build the ring mempool handler for Windows OS.
Signed-off-by: Tal Shnaiderman <tal...@nvidia.com>
---
drivers/mempool/bucket/meson.build | 5 +++++
drivers/mempool/meson.build | 4 ----
drivers/mempool/octeontx/meson.build | 5 +++++
drivers/mempool/octeontx2/meson.build | 5 +++++
drivers/mempool/stack/meson.build | 5 +++++
5 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/drivers/mempool/bucket/meson.build
b/drivers/mempool/bucket/meson.build
index 618d791283..61de2dc9b9 100644
--- a/drivers/mempool/bucket/meson.build
+++ b/drivers/mempool/bucket/meson.build
@@ -6,4 +6,9 @@
# This software was jointly developed between OKTET Labs (under contract
# for Solarflare) and Solarflare Communications, Inc.
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+endif
+
sources = files('rte_mempool_bucket.c')
diff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build
index c9609f1453..7520e489f4 100644
--- a/drivers/mempool/meson.build
+++ b/drivers/mempool/meson.build
@@ -1,10 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
-if is_windows
- subdir_done()
-endif
-
drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring',
'stack']
std_deps = ['mempool']
config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'
diff --git a/drivers/mempool/octeontx/meson.build
b/drivers/mempool/octeontx/meson.build
index 3baaf7db25..b5695a9329 100644
--- a/drivers/mempool/octeontx/meson.build
+++ b/drivers/mempool/octeontx/meson.build
@@ -1,6 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+endif
+
sources = files('octeontx_fpavf.c',
'rte_mempool_octeontx.c'
)
diff --git a/drivers/mempool/octeontx2/meson.build
b/drivers/mempool/octeontx2/meson.build
index 9fde40f0e9..0226f76d4b 100644
--- a/drivers/mempool/octeontx2/meson.build
+++ b/drivers/mempool/octeontx2/meson.build
@@ -2,6 +2,11 @@
# Copyright(C) 2019 Marvell International Ltd.
#
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+endif
+
sources = files('otx2_mempool_ops.c',
'otx2_mempool.c',
'otx2_mempool_irq.c',
diff --git a/drivers/mempool/stack/meson.build
b/drivers/mempool/stack/meson.build
index 580dde79eb..8425772a42 100644
--- a/drivers/mempool/stack/meson.build
+++ b/drivers/mempool/stack/meson.build
@@ -1,6 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017-2019 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+endif
+
sources = files('rte_mempool_stack.c')
deps += ['stack']
Acked-by: Ranjit Menon <ranjit.me...@intel.com