* [dpdk-dev] [PATCH] build/windows: remove separate list of libs
@ 2021-10-19 16:15 Bruce Richardson
2021-10-20 6:29 ` David Marchand
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
0 siblings, 2 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-19 16:15 UTC (permalink / raw)
To: dev
Cc: thomas, david.marchand, dmitry.kozliuk, navasile, dmitrym,
pallavi.kadam, Bruce Richardson, Konstantin Ananyev,
Nicolas Chautru, Fiona Trahe, Ashish Gupta, David Hunt,
Byron Marohn, Yipeng Wang, Jerin Jacob, Vladimir Medvedkin,
Bernard Iremonger, Kiran Kumar K, Nithin Dabilpuram,
Ferruh Yigit, Sameh Gobriel, Pavan Nikhilesh,
Cristian Dumitrescu, Nipun Gupta, Hemant Agrawal, Ori Kam,
Reshma Pattan, Jasvinder Singh
Rather than maintaining a separate list of libraries which are to be
built on windows, use the standard library list and explicitly add to
each library that is not to be built a check for windows and disable
the library at that per-lib level. As well as shortening the main
lib/meson.build file, this also leads to the build summary at the end of
the meson config run correctly listing the libraries which are not to be
built.
Depends-on: patch-102219
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
NOTE: no attempt was made to add additional libraries to the windows,
build. This patch was generated by an automated script run using the
lists of libraries for windows/non-windows builds.
---
lib/acl/meson.build | 6 ++++++
lib/bbdev/meson.build | 6 ++++++
lib/bpf/meson.build | 6 ++++++
lib/compressdev/meson.build | 6 ++++++
lib/distributor/meson.build | 6 ++++++
lib/efd/meson.build | 6 ++++++
lib/eventdev/meson.build | 6 ++++++
lib/fib/meson.build | 6 ++++++
lib/flow_classify/meson.build | 6 ++++++
lib/graph/meson.build | 6 ++++++
lib/ip_frag/meson.build | 6 ++++++
lib/ipsec/meson.build | 6 ++++++
lib/jobstats/meson.build | 6 ++++++
lib/kni/meson.build | 6 ++++++
lib/lpm/meson.build | 6 ++++++
lib/member/meson.build | 6 ++++++
lib/meson.build | 30 ------------------------------
lib/node/meson.build | 6 ++++++
lib/pipeline/meson.build | 6 ++++++
lib/port/meson.build | 6 ++++++
lib/power/meson.build | 6 ++++++
lib/rawdev/meson.build | 6 ++++++
lib/regexdev/meson.build | 6 ++++++
lib/reorder/meson.build | 6 ++++++
lib/rib/meson.build | 6 ++++++
lib/sched/meson.build | 6 ++++++
lib/table/meson.build | 6 ++++++
27 files changed, 156 insertions(+), 30 deletions(-)
diff --git a/lib/acl/meson.build b/lib/acl/meson.build
index fbb1318230..f3dc513846 100644
--- a/lib/acl/meson.build
+++ b/lib/acl/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('acl_bld.c', 'acl_gen.c', 'acl_run_scalar.c',
'rte_acl.c', 'tb_mem.c')
headers = files('rte_acl.h', 'rte_acl_osdep.h')
diff --git a/lib/bbdev/meson.build b/lib/bbdev/meson.build
index 2969cab26b..07685e7578 100644
--- a/lib/bbdev/meson.build
+++ b/lib/bbdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_bbdev.c')
headers = files('rte_bbdev.h',
'rte_bbdev_pmd.h',
diff --git a/lib/bpf/meson.build b/lib/bpf/meson.build
index 63cbd60185..eb94bf18c4 100644
--- a/lib/bpf/meson.build
+++ b/lib/bpf/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('bpf.c',
'bpf_exec.c',
'bpf_load.c',
diff --git a/lib/compressdev/meson.build b/lib/compressdev/meson.build
index 663ceec0b9..75ea666a9b 100644
--- a/lib/compressdev/meson.build
+++ b/lib/compressdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_compressdev.c',
'rte_compressdev_pmd.c',
'rte_comp.c')
diff --git a/lib/distributor/meson.build b/lib/distributor/meson.build
index cefe1b9f19..24988c5827 100644
--- a/lib/distributor/meson.build
+++ b/lib/distributor/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_distributor.c', 'rte_distributor_single.c')
if arch_subdir == 'x86'
sources += files('rte_distributor_match_sse.c')
diff --git a/lib/efd/meson.build b/lib/efd/meson.build
index 07fb1c29a7..343f14e1f3 100644
--- a/lib/efd/meson.build
+++ b/lib/efd/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_efd.c')
headers = files('rte_efd.h')
deps += ['ring', 'hash']
diff --git a/lib/eventdev/meson.build b/lib/eventdev/meson.build
index 32abeba794..bf7cf82eee 100644
--- a/lib/eventdev/meson.build
+++ b/lib/eventdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if is_linux
cflags += '-DLINUX'
else
diff --git a/lib/fib/meson.build b/lib/fib/meson.build
index 5618c215a7..593c8c47c8 100644
--- a/lib/fib/meson.build
+++ b/lib/fib/meson.build
@@ -2,6 +2,12 @@
# Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
# Copyright(c) 2019 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_fib.c', 'rte_fib6.c', 'dir24_8.c', 'trie.c')
headers = files('rte_fib.h', 'rte_fib6.h')
deps += ['rib']
diff --git a/lib/flow_classify/meson.build b/lib/flow_classify/meson.build
index a7a5b3d577..3bb861c68f 100644
--- a/lib/flow_classify/meson.build
+++ b/lib/flow_classify/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_flow_classify.c', 'rte_flow_classify_parse.c')
headers = files('rte_flow_classify.h')
deps += ['net', 'table']
diff --git a/lib/graph/meson.build b/lib/graph/meson.build
index 6befb094d2..c7327549e8 100644
--- a/lib/graph/meson.build
+++ b/lib/graph/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(C) 2020 Marvell International Ltd.
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'node.c',
'graph.c',
diff --git a/lib/ip_frag/meson.build b/lib/ip_frag/meson.build
index ea2de09f75..3a252bdaf6 100644
--- a/lib/ip_frag/meson.build
+++ b/lib/ip_frag/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_ipv4_fragmentation.c',
'rte_ipv6_fragmentation.c',
diff --git a/lib/ipsec/meson.build b/lib/ipsec/meson.build
index 1497f573bb..531a97f143 100644
--- a/lib/ipsec/meson.build
+++ b/lib/ipsec/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('esp_inb.c', 'esp_outb.c', 'sa.c', 'ses.c', 'ipsec_sad.c')
headers = files('rte_ipsec.h', 'rte_ipsec_sa.h', 'rte_ipsec_sad.h')
diff --git a/lib/jobstats/meson.build b/lib/jobstats/meson.build
index 391e4f802e..6da2a95b75 100644
--- a/lib/jobstats/meson.build
+++ b/lib/jobstats/meson.build
@@ -1,5 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_jobstats.c')
headers = files('rte_jobstats.h')
diff --git a/lib/kni/meson.build b/lib/kni/meson.build
index e2e4e44fc6..8a71d8ba6f 100644
--- a/lib/kni/meson.build
+++ b/lib/kni/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false
reason = 'only supported on 64-bit Linux'
diff --git a/lib/lpm/meson.build b/lib/lpm/meson.build
index 5ca54815e4..78d91d3421 100644
--- a/lib/lpm/meson.build
+++ b/lib/lpm/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_lpm.c', 'rte_lpm6.c')
headers = files('rte_lpm.h', 'rte_lpm6.h')
# since header files have different names, we can install all vector headers
diff --git a/lib/member/meson.build b/lib/member/meson.build
index 0e6b34c406..e06fddc240 100644
--- a/lib/member/meson.build
+++ b/lib/member/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_member.c', 'rte_member_ht.c', 'rte_member_vbf.c')
headers = files('rte_member.h')
deps += ['hash']
diff --git a/lib/meson.build b/lib/meson.build
index 403b1f4aa4..c1bf2385a0 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -63,36 +63,6 @@ libraries = [
'node',
]
-if is_windows
- libraries = [
- 'kvargs',
- 'telemetry',
- 'eal',
- 'ring',
- 'rcu',
- 'mempool',
- 'mbuf',
- 'net',
- 'meter',
- 'ethdev',
- 'dmadev',
- 'pci',
- 'cmdline',
- 'metrics',
- 'hash',
- 'timer',
- 'bitratestats',
- 'cryptodev',
- 'cfgfile',
- 'gro',
- 'gso',
- 'latencystats',
- 'pdump',
- 'stack',
- 'security',
- ] # only supported libraries for windows
-endif
-
optional_libs = [
'kni',
'power',
diff --git a/lib/node/meson.build b/lib/node/meson.build
index 230aa6fa0f..dbdf673c86 100644
--- a/lib/node/meson.build
+++ b/lib/node/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(C) 2020 Marvell International Ltd.
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'ethdev_ctrl.c',
'ethdev_rx.c',
diff --git a/lib/pipeline/meson.build b/lib/pipeline/meson.build
index 9132bb517a..3ca98ed194 100644
--- a/lib/pipeline/meson.build
+++ b/lib/pipeline/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_pipeline.c',
'rte_port_in_action.c',
diff --git a/lib/port/meson.build b/lib/port/meson.build
index 289bc47f6e..854bf39cd9 100644
--- a/lib/port/meson.build
+++ b/lib/port/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_port_ethdev.c',
'rte_port_fd.c',
diff --git a/lib/power/meson.build b/lib/power/meson.build
index bf937acde4..ba8d66074b 100644
--- a/lib/power/meson.build
+++ b/lib/power/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if not is_linux
build = false
reason = 'only supported on Linux'
diff --git a/lib/rawdev/meson.build b/lib/rawdev/meson.build
index 30d363cd2d..7dfc3d5cf9 100644
--- a/lib/rawdev/meson.build
+++ b/lib/rawdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_rawdev.c')
headers = files('rte_rawdev.h', 'rte_rawdev_pmd.h')
diff --git a/lib/regexdev/meson.build b/lib/regexdev/meson.build
index 7e12d8cd6d..426e764ece 100644
--- a/lib/regexdev/meson.build
+++ b/lib/regexdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Mellanox Technologies, Ltd
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_regexdev.c')
headers = files('rte_regexdev.h', 'rte_regexdev_driver.h')
indirect_headers += files('rte_regexdev_core.h')
diff --git a/lib/reorder/meson.build b/lib/reorder/meson.build
index 03aed53d90..621c1f3501 100644
--- a/lib/reorder/meson.build
+++ b/lib/reorder/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_reorder.c')
headers = files('rte_reorder.h')
deps += ['mbuf']
diff --git a/lib/rib/meson.build b/lib/rib/meson.build
index 7bacbb4535..bda7f576e9 100644
--- a/lib/rib/meson.build
+++ b/lib/rib/meson.build
@@ -2,6 +2,12 @@
# Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
# Copyright(c) 2019 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_rib.c', 'rte_rib6.c')
headers = files('rte_rib.h', 'rte_rib6.h')
deps += ['mempool']
diff --git a/lib/sched/meson.build b/lib/sched/meson.build
index b24f7b8775..8ced4547aa 100644
--- a/lib/sched/meson.build
+++ b/lib/sched/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_sched.c', 'rte_red.c', 'rte_approx.c')
headers = files(
'rte_approx.h',
diff --git a/lib/table/meson.build b/lib/table/meson.build
index ac1f1aac27..d1f2f9dcf6 100644
--- a/lib/table/meson.build
+++ b/lib/table/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_swx_table_em.c',
'rte_swx_table_learner.c',
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] build/windows: remove separate list of libs
2021-10-19 16:15 [dpdk-dev] [PATCH] build/windows: remove separate list of libs Bruce Richardson
@ 2021-10-20 6:29 ` David Marchand
2021-10-20 8:30 ` Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
1 sibling, 1 reply; 10+ messages in thread
From: David Marchand @ 2021-10-20 6:29 UTC (permalink / raw)
To: Bruce Richardson
Cc: dev, Thomas Monjalon, Dmitry Kozlyuk, Narcisa Ana Maria Vasile,
Dmitry Malloy (MESHCHANINOV),
Pallavi Kadam, Konstantin Ananyev, Nicolas Chautru, Fiona Trahe,
Ashish Gupta, David Hunt, Byron Marohn, Yipeng Wang, Jerin Jacob,
Vladimir Medvedkin, Bernard Iremonger, Kiran Kumar K,
Nithin Dabilpuram, Ferruh Yigit, Sameh Gobriel, Pavan Nikhilesh,
Cristian Dumitrescu, Nipun Gupta, Hemant Agrawal, Ori Kam,
Reshma Pattan, Jasvinder Singh
On Tue, Oct 19, 2021 at 6:19 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> Rather than maintaining a separate list of libraries which are to be
> built on windows, use the standard library list and explicitly add to
> each library that is not to be built a check for windows and disable
> the library at that per-lib level. As well as shortening the main
> lib/meson.build file, this also leads to the build summary at the end of
> the meson config run correctly listing the libraries which are not to be
> built.
>
> Depends-on: patch-102219
Not all CI handle dependencies.
Can you resend those patches as a single series?
Thanks.
--
David Marchand
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] build/windows: remove separate list of libs
2021-10-20 6:29 ` David Marchand
@ 2021-10-20 8:30 ` Bruce Richardson
0 siblings, 0 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 8:30 UTC (permalink / raw)
To: David Marchand
Cc: dev, Thomas Monjalon, Dmitry Kozlyuk, Narcisa Ana Maria Vasile,
Dmitry Malloy (MESHCHANINOV),
Pallavi Kadam, Konstantin Ananyev, Nicolas Chautru, Fiona Trahe,
Ashish Gupta, David Hunt, Byron Marohn, Yipeng Wang, Jerin Jacob,
Vladimir Medvedkin, Bernard Iremonger, Kiran Kumar K,
Nithin Dabilpuram, Ferruh Yigit, Sameh Gobriel, Pavan Nikhilesh,
Cristian Dumitrescu, Nipun Gupta, Hemant Agrawal, Ori Kam,
Reshma Pattan, Jasvinder Singh
On Wed, Oct 20, 2021 at 08:29:09AM +0200, David Marchand wrote:
> On Tue, Oct 19, 2021 at 6:19 PM Bruce Richardson
> <bruce.richardson@intel.com> wrote:
> >
> > Rather than maintaining a separate list of libraries which are to be
> > built on windows, use the standard library list and explicitly add to
> > each library that is not to be built a check for windows and disable
> > the library at that per-lib level. As well as shortening the main
> > lib/meson.build file, this also leads to the build summary at the end of
> > the meson config run correctly listing the libraries which are not to be
> > built.
> >
> > Depends-on: patch-102219
>
> Not all CI handle dependencies.
> Can you resend those patches as a single series?
>
> Thanks.
>
Yes, will do.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dpdk-dev] [PATCH v2 0/3] library build improvements on windows
2021-10-19 16:15 [dpdk-dev] [PATCH] build/windows: remove separate list of libs Bruce Richardson
2021-10-20 6:29 ` David Marchand
@ 2021-10-20 11:25 ` Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 1/3] dmadev: remove symbol versioning for inline helpers Bruce Richardson
` (3 more replies)
1 sibling, 4 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 11:25 UTC (permalink / raw)
To: dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam,
Bruce Richardson
This set enables dmadev library to be built on windows, and then does some
cleanup of the lib/meson.build file to remove the separate listing of libraries
for windows builds - instead having library disabling done via the normal method
of each library reporting its own buildable status, and providing a reason if it
can't be built.
Bruce Richardson (2):
dmadev: enable build on Windows
build/windows: remove separate list of libs
David Marchand (1):
dmadev: remove symbol versioning for inline helpers
drivers/dma/skeleton/skeleton_dmadev.c | 2 +-
lib/acl/meson.build | 6 ++++++
lib/bbdev/meson.build | 6 ++++++
lib/bpf/meson.build | 6 ++++++
lib/compressdev/meson.build | 6 ++++++
lib/distributor/meson.build | 6 ++++++
lib/dmadev/version.map | 7 -------
lib/efd/meson.build | 6 ++++++
lib/eventdev/meson.build | 6 ++++++
lib/fib/meson.build | 6 ++++++
lib/flow_classify/meson.build | 6 ++++++
lib/graph/meson.build | 6 ++++++
lib/ip_frag/meson.build | 6 ++++++
lib/ipsec/meson.build | 6 ++++++
lib/jobstats/meson.build | 6 ++++++
lib/kni/meson.build | 6 ++++++
lib/lpm/meson.build | 6 ++++++
lib/member/meson.build | 6 ++++++
lib/meson.build | 29 --------------------------
lib/node/meson.build | 6 ++++++
lib/pipeline/meson.build | 6 ++++++
lib/port/meson.build | 6 ++++++
lib/power/meson.build | 6 ++++++
lib/rawdev/meson.build | 6 ++++++
lib/regexdev/meson.build | 6 ++++++
lib/reorder/meson.build | 6 ++++++
lib/rib/meson.build | 6 ++++++
lib/sched/meson.build | 6 ++++++
lib/table/meson.build | 6 ++++++
29 files changed, 157 insertions(+), 37 deletions(-)
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dpdk-dev] [PATCH v2 1/3] dmadev: remove symbol versioning for inline helpers
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
@ 2021-10-20 11:25 ` Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows Bruce Richardson
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 11:25 UTC (permalink / raw)
To: dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam,
Bruce Richardson, Ray Kinsella, Chengwen Feng, Conor Walsh,
Kevin Laatz, Morten Brørup
From: David Marchand <david.marchand@redhat.com>
Inline helpers have no global symbols in shared libraries.
There is no reason to ask for versioning (plus this library would not
build on Windows).
Fixes: 91e581e5c924 ("dmadev: add data plane API")
Fixes: ea8cf0f8536d ("dmadev: add burst capacity API")
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/dmadev/version.map | 7 -------
1 file changed, 7 deletions(-)
diff --git a/lib/dmadev/version.map b/lib/dmadev/version.map
index ef561acd46..23b3a34c4d 100644
--- a/lib/dmadev/version.map
+++ b/lib/dmadev/version.map
@@ -1,17 +1,11 @@
EXPERIMENTAL {
global:
- rte_dma_burst_capacity;
rte_dma_close;
- rte_dma_completed;
- rte_dma_completed_status;
rte_dma_configure;
- rte_dma_copy;
- rte_dma_copy_sg;
rte_dma_count_avail;
rte_dma_dev_max;
rte_dma_dump;
- rte_dma_fill;
rte_dma_get_dev_id_by_name;
rte_dma_info_get;
rte_dma_is_valid;
@@ -20,7 +14,6 @@ EXPERIMENTAL {
rte_dma_stats_get;
rte_dma_stats_reset;
rte_dma_stop;
- rte_dma_submit;
rte_dma_vchan_setup;
rte_dma_vchan_status;
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 1/3] dmadev: remove symbol versioning for inline helpers Bruce Richardson
@ 2021-10-20 11:25 ` Bruce Richardson
2021-10-20 12:42 ` Bruce Richardson
2021-10-20 13:01 ` Walsh, Conor
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 3/3] build/windows: remove separate list of libs Bruce Richardson
2021-10-22 20:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Thomas Monjalon
3 siblings, 2 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 11:25 UTC (permalink / raw)
To: dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam,
Bruce Richardson, Chengwen Feng
The dmadev library was not added to the list of libraries built on
Windows, meaning it was skipped in those builds and also that none of
the drivers were being considered for build. Adding dmadev to the list
fixes this, and also enables the skeleton dmadev driver to be built -
all-be-it with a small fix necessary.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/dma/skeleton/skeleton_dmadev.c | 2 +-
lib/meson.build | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/skeleton/skeleton_dmadev.c b/drivers/dma/skeleton/skeleton_dmadev.c
index 2952417126..d9e4f731d7 100644
--- a/drivers/dma/skeleton/skeleton_dmadev.c
+++ b/drivers/dma/skeleton/skeleton_dmadev.c
@@ -153,7 +153,7 @@ skeldma_stop(struct rte_dma_dev *dev)
hw->exit_flag = true;
rte_delay_ms(1);
- pthread_cancel(hw->thread);
+ (void)pthread_cancel(hw->thread);
pthread_join(hw->thread, NULL);
return 0;
diff --git a/lib/meson.build b/lib/meson.build
index 3b8b099820..403b1f4aa4 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -75,6 +75,7 @@ if is_windows
'net',
'meter',
'ethdev',
+ 'dmadev',
'pci',
'cmdline',
'metrics',
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows Bruce Richardson
@ 2021-10-20 12:42 ` Bruce Richardson
2021-10-20 13:01 ` Walsh, Conor
1 sibling, 0 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 12:42 UTC (permalink / raw)
To: dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam,
Chengwen Feng
On Wed, Oct 20, 2021 at 12:25:53PM +0100, Bruce Richardson wrote:
> The dmadev library was not added to the list of libraries built on
> Windows, meaning it was skipped in those builds and also that none of
> the drivers were being considered for build. Adding dmadev to the list
> fixes this, and also enables the skeleton dmadev driver to be built -
> all-be-it with a small fix necessary.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
Adding missed reviewed tag from V1:
Reviewed-by: Chengwen Feng <fengchengwen@huawei.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows Bruce Richardson
2021-10-20 12:42 ` Bruce Richardson
@ 2021-10-20 13:01 ` Walsh, Conor
1 sibling, 0 replies; 10+ messages in thread
From: Walsh, Conor @ 2021-10-20 13:01 UTC (permalink / raw)
To: Richardson, Bruce, dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, Kadam,
Pallavi, Richardson, Bruce, Chengwen Feng
> From: dev <dev-bounces@dpdk.org> On Behalf Of Bruce Richardson
> Sent: Wednesday 20 October 2021 12:26
> To: dev@dpdk.org
> Cc: david.marchand@redhat.com; dmitry.kozliuk@gmail.com;
> navasile@linux.microsoft.com; dmitrym@microsoft.com; Kadam, Pallavi
> <pallavi.kadam@intel.com>; Richardson, Bruce
> <bruce.richardson@intel.com>; Chengwen Feng
> <fengchengwen@huawei.com>
> Subject: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
>
> The dmadev library was not added to the list of libraries built on
> Windows, meaning it was skipped in those builds and also that none of
> the drivers were being considered for build. Adding dmadev to the list
> fixes this, and also enables the skeleton dmadev driver to be built -
> all-be-it with a small fix necessary.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
Tested-by: Conor Walsh <conor.walsh@intel.com>
(with MinGW and the Intel DMA drivers)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [dpdk-dev] [PATCH v2 3/3] build/windows: remove separate list of libs
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 1/3] dmadev: remove symbol versioning for inline helpers Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows Bruce Richardson
@ 2021-10-20 11:25 ` Bruce Richardson
2021-10-22 20:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Thomas Monjalon
3 siblings, 0 replies; 10+ messages in thread
From: Bruce Richardson @ 2021-10-20 11:25 UTC (permalink / raw)
To: dev
Cc: david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam,
Bruce Richardson, Konstantin Ananyev, Nicolas Chautru,
Fiona Trahe, Ashish Gupta, David Hunt, Byron Marohn, Yipeng Wang,
Jerin Jacob, Vladimir Medvedkin, Bernard Iremonger,
Kiran Kumar K, Nithin Dabilpuram, Ferruh Yigit, Sameh Gobriel,
Pavan Nikhilesh, Cristian Dumitrescu, Nipun Gupta,
Hemant Agrawal, Ori Kam, Reshma Pattan, Jasvinder Singh
Rather than maintaining a separate list of libraries which are to be
built on windows, use the standard library list and explicitly add to
each library that is not to be built a check for windows and disable
the library at that per-lib level. As well as shortening the main
lib/meson.build file, this also leads to the build summary at the end of
the meson config run correctly listing the libraries which are not to be
built.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
NOTE: no attempt was made to add additional libraries to the windows,
build. This patch was generated by an automated script run using the
lists of libraries for windows/non-windows builds.
---
lib/acl/meson.build | 6 ++++++
lib/bbdev/meson.build | 6 ++++++
lib/bpf/meson.build | 6 ++++++
lib/compressdev/meson.build | 6 ++++++
lib/distributor/meson.build | 6 ++++++
lib/efd/meson.build | 6 ++++++
lib/eventdev/meson.build | 6 ++++++
lib/fib/meson.build | 6 ++++++
lib/flow_classify/meson.build | 6 ++++++
lib/graph/meson.build | 6 ++++++
lib/ip_frag/meson.build | 6 ++++++
lib/ipsec/meson.build | 6 ++++++
lib/jobstats/meson.build | 6 ++++++
lib/kni/meson.build | 6 ++++++
lib/lpm/meson.build | 6 ++++++
lib/member/meson.build | 6 ++++++
lib/meson.build | 30 ------------------------------
lib/node/meson.build | 6 ++++++
lib/pipeline/meson.build | 6 ++++++
lib/port/meson.build | 6 ++++++
lib/power/meson.build | 6 ++++++
lib/rawdev/meson.build | 6 ++++++
lib/regexdev/meson.build | 6 ++++++
lib/reorder/meson.build | 6 ++++++
lib/rib/meson.build | 6 ++++++
lib/sched/meson.build | 6 ++++++
lib/table/meson.build | 6 ++++++
27 files changed, 156 insertions(+), 30 deletions(-)
diff --git a/lib/acl/meson.build b/lib/acl/meson.build
index fbb1318230..f3dc513846 100644
--- a/lib/acl/meson.build
+++ b/lib/acl/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('acl_bld.c', 'acl_gen.c', 'acl_run_scalar.c',
'rte_acl.c', 'tb_mem.c')
headers = files('rte_acl.h', 'rte_acl_osdep.h')
diff --git a/lib/bbdev/meson.build b/lib/bbdev/meson.build
index 2969cab26b..07685e7578 100644
--- a/lib/bbdev/meson.build
+++ b/lib/bbdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_bbdev.c')
headers = files('rte_bbdev.h',
'rte_bbdev_pmd.h',
diff --git a/lib/bpf/meson.build b/lib/bpf/meson.build
index 63cbd60185..eb94bf18c4 100644
--- a/lib/bpf/meson.build
+++ b/lib/bpf/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('bpf.c',
'bpf_exec.c',
'bpf_load.c',
diff --git a/lib/compressdev/meson.build b/lib/compressdev/meson.build
index 663ceec0b9..75ea666a9b 100644
--- a/lib/compressdev/meson.build
+++ b/lib/compressdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_compressdev.c',
'rte_compressdev_pmd.c',
'rte_comp.c')
diff --git a/lib/distributor/meson.build b/lib/distributor/meson.build
index cefe1b9f19..24988c5827 100644
--- a/lib/distributor/meson.build
+++ b/lib/distributor/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_distributor.c', 'rte_distributor_single.c')
if arch_subdir == 'x86'
sources += files('rte_distributor_match_sse.c')
diff --git a/lib/efd/meson.build b/lib/efd/meson.build
index 07fb1c29a7..343f14e1f3 100644
--- a/lib/efd/meson.build
+++ b/lib/efd/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_efd.c')
headers = files('rte_efd.h')
deps += ['ring', 'hash']
diff --git a/lib/eventdev/meson.build b/lib/eventdev/meson.build
index 32abeba794..bf7cf82eee 100644
--- a/lib/eventdev/meson.build
+++ b/lib/eventdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if is_linux
cflags += '-DLINUX'
else
diff --git a/lib/fib/meson.build b/lib/fib/meson.build
index 5618c215a7..593c8c47c8 100644
--- a/lib/fib/meson.build
+++ b/lib/fib/meson.build
@@ -2,6 +2,12 @@
# Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
# Copyright(c) 2019 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_fib.c', 'rte_fib6.c', 'dir24_8.c', 'trie.c')
headers = files('rte_fib.h', 'rte_fib6.h')
deps += ['rib']
diff --git a/lib/flow_classify/meson.build b/lib/flow_classify/meson.build
index a7a5b3d577..3bb861c68f 100644
--- a/lib/flow_classify/meson.build
+++ b/lib/flow_classify/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_flow_classify.c', 'rte_flow_classify_parse.c')
headers = files('rte_flow_classify.h')
deps += ['net', 'table']
diff --git a/lib/graph/meson.build b/lib/graph/meson.build
index 6befb094d2..c7327549e8 100644
--- a/lib/graph/meson.build
+++ b/lib/graph/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(C) 2020 Marvell International Ltd.
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'node.c',
'graph.c',
diff --git a/lib/ip_frag/meson.build b/lib/ip_frag/meson.build
index ea2de09f75..3a252bdaf6 100644
--- a/lib/ip_frag/meson.build
+++ b/lib/ip_frag/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_ipv4_fragmentation.c',
'rte_ipv6_fragmentation.c',
diff --git a/lib/ipsec/meson.build b/lib/ipsec/meson.build
index 1497f573bb..531a97f143 100644
--- a/lib/ipsec/meson.build
+++ b/lib/ipsec/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('esp_inb.c', 'esp_outb.c', 'sa.c', 'ses.c', 'ipsec_sad.c')
headers = files('rte_ipsec.h', 'rte_ipsec_sa.h', 'rte_ipsec_sad.h')
diff --git a/lib/jobstats/meson.build b/lib/jobstats/meson.build
index 391e4f802e..6da2a95b75 100644
--- a/lib/jobstats/meson.build
+++ b/lib/jobstats/meson.build
@@ -1,5 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_jobstats.c')
headers = files('rte_jobstats.h')
diff --git a/lib/kni/meson.build b/lib/kni/meson.build
index e2e4e44fc6..8a71d8ba6f 100644
--- a/lib/kni/meson.build
+++ b/lib/kni/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false
reason = 'only supported on 64-bit Linux'
diff --git a/lib/lpm/meson.build b/lib/lpm/meson.build
index 5ca54815e4..78d91d3421 100644
--- a/lib/lpm/meson.build
+++ b/lib/lpm/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_lpm.c', 'rte_lpm6.c')
headers = files('rte_lpm.h', 'rte_lpm6.h')
# since header files have different names, we can install all vector headers
diff --git a/lib/member/meson.build b/lib/member/meson.build
index 0e6b34c406..e06fddc240 100644
--- a/lib/member/meson.build
+++ b/lib/member/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_member.c', 'rte_member_ht.c', 'rte_member_vbf.c')
headers = files('rte_member.h')
deps += ['hash']
diff --git a/lib/meson.build b/lib/meson.build
index 403b1f4aa4..c1bf2385a0 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -63,36 +63,6 @@ libraries = [
'node',
]
-if is_windows
- libraries = [
- 'kvargs',
- 'telemetry',
- 'eal',
- 'ring',
- 'rcu',
- 'mempool',
- 'mbuf',
- 'net',
- 'meter',
- 'ethdev',
- 'dmadev',
- 'pci',
- 'cmdline',
- 'metrics',
- 'hash',
- 'timer',
- 'bitratestats',
- 'cryptodev',
- 'cfgfile',
- 'gro',
- 'gso',
- 'latencystats',
- 'pdump',
- 'stack',
- 'security',
- ] # only supported libraries for windows
-endif
-
optional_libs = [
'kni',
'power',
diff --git a/lib/node/meson.build b/lib/node/meson.build
index 230aa6fa0f..dbdf673c86 100644
--- a/lib/node/meson.build
+++ b/lib/node/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(C) 2020 Marvell International Ltd.
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'ethdev_ctrl.c',
'ethdev_rx.c',
diff --git a/lib/pipeline/meson.build b/lib/pipeline/meson.build
index 9132bb517a..3ca98ed194 100644
--- a/lib/pipeline/meson.build
+++ b/lib/pipeline/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_pipeline.c',
'rte_port_in_action.c',
diff --git a/lib/port/meson.build b/lib/port/meson.build
index 289bc47f6e..854bf39cd9 100644
--- a/lib/port/meson.build
+++ b/lib/port/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_port_ethdev.c',
'rte_port_fd.c',
diff --git a/lib/power/meson.build b/lib/power/meson.build
index bf937acde4..ba8d66074b 100644
--- a/lib/power/meson.build
+++ b/lib/power/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
if not is_linux
build = false
reason = 'only supported on Linux'
diff --git a/lib/rawdev/meson.build b/lib/rawdev/meson.build
index 30d363cd2d..7dfc3d5cf9 100644
--- a/lib/rawdev/meson.build
+++ b/lib/rawdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_rawdev.c')
headers = files('rte_rawdev.h', 'rte_rawdev_pmd.h')
diff --git a/lib/regexdev/meson.build b/lib/regexdev/meson.build
index 7e12d8cd6d..426e764ece 100644
--- a/lib/regexdev/meson.build
+++ b/lib/regexdev/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Mellanox Technologies, Ltd
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_regexdev.c')
headers = files('rte_regexdev.h', 'rte_regexdev_driver.h')
indirect_headers += files('rte_regexdev_core.h')
diff --git a/lib/reorder/meson.build b/lib/reorder/meson.build
index 03aed53d90..621c1f3501 100644
--- a/lib/reorder/meson.build
+++ b/lib/reorder/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_reorder.c')
headers = files('rte_reorder.h')
deps += ['mbuf']
diff --git a/lib/rib/meson.build b/lib/rib/meson.build
index 7bacbb4535..bda7f576e9 100644
--- a/lib/rib/meson.build
+++ b/lib/rib/meson.build
@@ -2,6 +2,12 @@
# Copyright(c) 2018 Vladimir Medvedkin <medvedkinv@gmail.com>
# Copyright(c) 2019 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_rib.c', 'rte_rib6.c')
headers = files('rte_rib.h', 'rte_rib6.h')
deps += ['mempool']
diff --git a/lib/sched/meson.build b/lib/sched/meson.build
index b24f7b8775..8ced4547aa 100644
--- a/lib/sched/meson.build
+++ b/lib/sched/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files('rte_sched.c', 'rte_red.c', 'rte_approx.c')
headers = files(
'rte_approx.h',
diff --git a/lib/table/meson.build b/lib/table/meson.build
index ac1f1aac27..d1f2f9dcf6 100644
--- a/lib/table/meson.build
+++ b/lib/table/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+if is_windows
+ build = false
+ reason = 'not supported on Windows'
+ subdir_done()
+endif
+
sources = files(
'rte_swx_table_em.c',
'rte_swx_table_learner.c',
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH v2 0/3] library build improvements on windows
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
` (2 preceding siblings ...)
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 3/3] build/windows: remove separate list of libs Bruce Richardson
@ 2021-10-22 20:25 ` Thomas Monjalon
3 siblings, 0 replies; 10+ messages in thread
From: Thomas Monjalon @ 2021-10-22 20:25 UTC (permalink / raw)
To: Bruce Richardson
Cc: dev, david.marchand, dmitry.kozliuk, navasile, dmitrym, pallavi.kadam
20/10/2021 13:25, Bruce Richardson:
> This set enables dmadev library to be built on windows, and then does some
> cleanup of the lib/meson.build file to remove the separate listing of libraries
> for windows builds - instead having library disabling done via the normal method
> of each library reporting its own buildable status, and providing a reason if it
> can't be built.
>
> Bruce Richardson (2):
> dmadev: enable build on Windows
> build/windows: remove separate list of libs
>
> David Marchand (1):
> dmadev: remove symbol versioning for inline helpers
Applied, thanks.
Note: I had to update the list of libs to disable (pdump & pcapng).
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-10-22 20:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 16:15 [dpdk-dev] [PATCH] build/windows: remove separate list of libs Bruce Richardson
2021-10-20 6:29 ` David Marchand
2021-10-20 8:30 ` Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 1/3] dmadev: remove symbol versioning for inline helpers Bruce Richardson
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows Bruce Richardson
2021-10-20 12:42 ` Bruce Richardson
2021-10-20 13:01 ` Walsh, Conor
2021-10-20 11:25 ` [dpdk-dev] [PATCH v2 3/3] build/windows: remove separate list of libs Bruce Richardson
2021-10-22 20:25 ` [dpdk-dev] [PATCH v2 0/3] library build improvements on windows Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).