1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4# override default name to drop the hyphen 5name = 'testpmd' 6cflags += '-Wno-deprecated-declarations' 7sources = files( 8 '5tswap.c', 9 'cmdline.c', 10 'cmdline_flow.c', 11 'cmdline_mtr.c', 12 'cmdline_tm.c', 13 'config.c', 14 'csumonly.c', 15 'flowgen.c', 16 'icmpecho.c', 17 'ieee1588fwd.c', 18 'iofwd.c', 19 'macfwd.c', 20 'macswap.c', 21 'noisy_vnf.c', 22 'parameters.c', 23 'rxonly.c', 24 'testpmd.c', 25 'txonly.c', 26 'util.c', 27) 28 29deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] 30if dpdk_conf.has('RTE_LIB_BITRATESTATS') 31 deps += 'bitratestats' 32endif 33if dpdk_conf.has('RTE_LIB_PDUMP') 34 deps += 'pdump' 35endif 36if dpdk_conf.has('RTE_LIB_BITRATESTATS') 37 deps += 'bitratestats' 38endif 39if dpdk_conf.has('RTE_LIB_LATENCYSTATS') 40 deps += 'latencystats' 41endif 42if dpdk_conf.has('RTE_CRYPTO_SCHEDULER') 43 deps += 'crypto_scheduler' 44endif 45if dpdk_conf.has('RTE_NET_BOND') 46 deps += 'net_bond' 47endif 48if dpdk_conf.has('RTE_NET_BNXT') 49 deps += 'net_bnxt' 50endif 51if dpdk_conf.has('RTE_NET_I40E') 52 deps += 'net_i40e' 53endif 54if dpdk_conf.has('RTE_NET_IXGBE') 55 deps += 'net_ixgbe' 56endif 57if dpdk_conf.has('RTE_NET_DPAA') 58 deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa'] 59endif 60if dpdk_conf.has('RTE_LIB_BPF') 61 sources += files('bpf_cmd.c') 62 deps += 'bpf' 63endif 64