build/windows: remove separate list of libs
Subsystems (3)
PATCH 1/1 build/windows: remove separate list of libs
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
---
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(-)
lib/acl/meson.build +6 -0
@@ -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')
lib/bbdev/meson.build +6 -0
@@ -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',
lib/bpf/meson.build +6 -0
@@ -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',
lib/compressdev/meson.build +6 -0
@@ -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')
lib/distributor/meson.build +6 -0
@@ -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')
lib/efd/meson.build +6 -0
@@ -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']
lib/eventdev/meson.build +6 -0
@@ -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
lib/fib/meson.build +6 -0
@@ -2,6 +2,12 @@ # Copyright(c) 2018 Vladimir Medvedkin <[email protected]> # 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']
lib/flow_classify/meson.build +6 -0
@@ -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']
lib/graph/meson.build +6 -0
@@ -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',
lib/ip_frag/meson.build +6 -0
@@ -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',
lib/ipsec/meson.build +6 -0
@@ -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')
lib/jobstats/meson.build +6 -0
@@ -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')
lib/kni/meson.build +6 -0
@@ -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'
lib/lpm/meson.build +6 -0
@@ -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
lib/member/meson.build +6 -0
@@ -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']
lib/meson.build +0 -30
@@ -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',
lib/node/meson.build +6 -0
@@ -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',
lib/pipeline/meson.build +6 -0
@@ -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',
lib/port/meson.build +6 -0
@@ -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',
lib/power/meson.build +6 -0
@@ -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'
lib/rawdev/meson.build +6 -0
@@ -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')
lib/regexdev/meson.build +6 -0
@@ -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')
lib/reorder/meson.build +6 -0
@@ -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']
lib/rib/meson.build +6 -0
@@ -2,6 +2,12 @@ # Copyright(c) 2018 Vladimir Medvedkin <[email protected]> # 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']
lib/sched/meson.build +6 -0
@@ -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',
lib/table/meson.build +6 -0
@@ -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',
Signature · 1 line
2.30.2
Quoted 10 lines · Bruce Richardson
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.buildfile, 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.
Signature · 1 line
David Marchand
Quoted 11 lines · David Marchand
Quoted 9 lines · Bruce Richardson
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.buildfile, 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.
Quoted 7 lines
Quoted 1 line
Depends-on: patch-102219
Not all CI handle dependencies.
Can you resend those patches as a single series?Thanks.
Yes, will do.
v2 cover library build improvements on windows
In reply to Bruce RichardsonThis 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
PATCH v2 1/3 dmadev: remove symbol versioning for inline helpers
From: David Marchand <[email protected]>
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).
--- lib/dmadev/version.map | 7 ------- 1 file changed, 7 deletions(-)
lib/dmadev/version.map +0 -7
@@ -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;
Signature · 1 line
2.30.2
PATCH v2 2/3 dmadev: enable build on Windows
In reply to Bruce RichardsonThe 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.
---
drivers/dma/skeleton/skeleton_dmadev.c | 2 +- lib/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/dma/skeleton/skeleton_dmadev.c +1 -1
@@ -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 ;
lib/meson.build +1 -0
@@ -75,6 +75,7 @@ if is_windows 'net', 'meter', 'ethdev', + 'dmadev', 'pci', 'cmdline', 'metrics',
--
2.30.2
Re: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
Quoted 8 lines · Bruce Richardson
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 <[email protected]>---
Adding missed reviewed tag from V1:
Re: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
In reply to Bruce RichardsonQuoted 11 lines
From: dev <[email protected]> On Behalf Of Bruce Richardson
Sent: Wednesday 20 October 2021 12:26
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Kadam, Pallavi <[email protected]>; Richardson, Bruce <[email protected]>; Chengwen Feng <[email protected]>
Subject: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows
Quoted 8 lines
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 <[email protected]>---
(with MinGW and the Intel DMA drivers)
PATCH v2 3/3 build/windows: remove separate list of libs
In reply to Bruce RichardsonRather 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.
---
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(-)
lib/acl/meson.build +6 -0
@@ -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')
lib/bbdev/meson.build +6 -0
@@ -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',
lib/bpf/meson.build +6 -0
@@ -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',
lib/compressdev/meson.build +6 -0
@@ -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')
lib/distributor/meson.build +6 -0
@@ -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')
lib/efd/meson.build +6 -0
@@ -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']
lib/eventdev/meson.build +6 -0
@@ -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
lib/fib/meson.build +6 -0
@@ -2,6 +2,12 @@ # Copyright(c) 2018 Vladimir Medvedkin <[email protected]> # 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']
lib/flow_classify/meson.build +6 -0
@@ -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']
lib/graph/meson.build +6 -0
@@ -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',
lib/ip_frag/meson.build +6 -0
@@ -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',
lib/ipsec/meson.build +6 -0
@@ -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')
lib/jobstats/meson.build +6 -0
@@ -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')
lib/kni/meson.build +6 -0
@@ -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'
lib/lpm/meson.build +6 -0
@@ -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
lib/member/meson.build +6 -0
@@ -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']
lib/meson.build +0 -30
@@ -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',
lib/node/meson.build +6 -0
@@ -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',
lib/pipeline/meson.build +6 -0
@@ -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',
lib/port/meson.build +6 -0
@@ -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',
lib/power/meson.build +6 -0
@@ -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'
lib/rawdev/meson.build +6 -0
@@ -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')
lib/regexdev/meson.build +6 -0
@@ -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')
lib/reorder/meson.build +6 -0
@@ -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']
lib/rib/meson.build +6 -0
@@ -2,6 +2,12 @@ # Copyright(c) 2018 Vladimir Medvedkin <[email protected]> # 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']
lib/sched/meson.build +6 -0
@@ -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',
lib/table/meson.build +6 -0
@@ -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
Thomas Monjalon
AppliedRe: [dpdk-dev] [PATCH v2 0/3] library build improvements on windows
In reply to Bruce Richardson20/10/2021 13:25, Bruce Richardson:
Quoted 6 lines
This set enables dmadev library to be built on windows, and then does some cleanup of the
lib/meson.buildfile 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.
Quoted 6 lines
Bruce Richardson (2):
dmadev: enable build on Windows
build/windows: remove separate list of libsDavid Marchand (1):
dmadev: remove symbol versioning for inline helpers
Applied, thanks.
Note: I had to update the list of libs to disable (pdump & pcapng).