1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4if is_windows 5 build = false 6 reason = 'not supported on Windows' 7 subdir_done() 8endif 9 10sources = files( 11 'rte_port_ethdev.c', 12 'rte_port_fd.c', 13 'rte_port_frag.c', 14 'rte_port_ras.c', 15 'rte_port_ring.c', 16 'rte_port_sched.c', 17 'rte_port_source_sink.c', 18 'rte_port_sym_crypto.c', 19 'rte_port_eventdev.c', 20 'rte_swx_port_ethdev.c', 21 'rte_swx_port_fd.c', 22 'rte_swx_port_ring.c', 23 'rte_swx_port_source_sink.c', 24) 25headers = files( 26 'rte_port_ethdev.h', 27 'rte_port_fd.h', 28 'rte_port_frag.h', 29 'rte_port_ras.h', 30 'rte_port.h', 31 'rte_port_ring.h', 32 'rte_port_sched.h', 33 'rte_port_source_sink.h', 34 'rte_port_sym_crypto.h', 35 'rte_port_eventdev.h', 36 'rte_swx_port.h', 37 'rte_swx_port_ethdev.h', 38 'rte_swx_port_fd.h', 39 'rte_swx_port_ring.h', 40 'rte_swx_port_source_sink.h', 41) 42deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev'] 43 44if dpdk_conf.has('RTE_HAS_LIBPCAP') 45 dpdk_conf.set('RTE_PORT_PCAP', 1) 46 ext_deps += pcap_dep # dependency provided in config/meson.build 47endif 48 49if dpdk_conf.has('RTE_LIB_KNI') 50 sources += files('rte_port_kni.c') 51 headers += files('rte_port_kni.h') 52 deps += 'kni' 53endif 54