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. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
fed600889d
commit
b1094939a5
@ -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')
|
||||
|
@ -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',
|
||||
|
@ -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_dump.c',
|
||||
'bpf_exec.c',
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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']
|
||||
|
@ -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
|
||||
|
@ -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']
|
||||
|
@ -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']
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
'ipsec_telemetry.c')
|
||||
|
@ -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')
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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']
|
||||
|
@ -64,35 +64,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',
|
||||
'stack',
|
||||
'security',
|
||||
] # only supported libraries for windows
|
||||
endif
|
||||
|
||||
optional_libs = [
|
||||
'kni',
|
||||
'power',
|
||||
|
@ -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',
|
||||
|
@ -1,6 +1,12 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2019 Microsoft Corporation
|
||||
|
||||
if is_windows
|
||||
build = false
|
||||
reason = 'not supported on Windows'
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
sources = files('rte_pcapng.c')
|
||||
headers = files('rte_pcapng.h')
|
||||
|
||||
|
@ -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_pdump.c')
|
||||
headers = files('rte_pdump.h')
|
||||
deps += ['ethdev', 'bpf', 'pcapng']
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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'
|
||||
|
@ -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')
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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']
|
||||
|
@ -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']
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user