268fa581b1
The meson build was missing the define to enable pcap port support if libpcap (development) package was found on the build platform. Rather than duplicating the checks for libpcap found in the pcap net PMD build file, we can move the checks to the top-level config directory and reference the RTE_PCAP_PORT setting elsewhere in the build. Bugzilla ID: 351 Fixes: 5b9656b157d3 ("lib: build with meson") Cc: stable@dpdk.org Reported-by: Cristian Bidea <cristian.bidea@keysight.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Cristian Bidea <cristian.bidea@keysight.com>
37 lines
834 B
Meson
37 lines
834 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
version = 3
|
|
sources = files(
|
|
'rte_port_ethdev.c',
|
|
'rte_port_fd.c',
|
|
'rte_port_frag.c',
|
|
'rte_port_ras.c',
|
|
'rte_port_ring.c',
|
|
'rte_port_sched.c',
|
|
'rte_port_source_sink.c',
|
|
'rte_port_sym_crypto.c',
|
|
'rte_port_eventdev.c')
|
|
headers = files(
|
|
'rte_port_ethdev.h',
|
|
'rte_port_fd.h',
|
|
'rte_port_frag.h',
|
|
'rte_port_ras.h',
|
|
'rte_port.h',
|
|
'rte_port_ring.h',
|
|
'rte_port_sched.h',
|
|
'rte_port_source_sink.h',
|
|
'rte_port_sym_crypto.h',
|
|
'rte_port_eventdev.h')
|
|
deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev']
|
|
|
|
if dpdk_conf.has('RTE_PORT_PCAP')
|
|
ext_deps += pcap_dep # dependency provided in config/meson.build
|
|
endif
|
|
|
|
if dpdk_conf.has('RTE_LIBRTE_KNI')
|
|
sources += files('rte_port_kni.c')
|
|
headers += files('rte_port_kni.h')
|
|
deps += 'kni'
|
|
endif
|