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('5tswap.c', 8 'cmdline.c', 9 'cmdline_flow.c', 10 'cmdline_mtr.c', 11 'cmdline_tm.c', 12 'config.c', 13 'csumonly.c', 14 'flowgen.c', 15 'icmpecho.c', 16 'ieee1588fwd.c', 17 'iofwd.c', 18 'macfwd.c', 19 'macswap.c', 20 'noisy_vnf.c', 21 'parameters.c', 22 'rxonly.c', 23 'testpmd.c', 24 'txonly.c', 25 'util.c') 26 27deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] 28if dpdk_conf.has('RTE_LIB_BITRATESTATS') 29 deps += 'bitratestats' 30endif 31if dpdk_conf.has('RTE_LIB_PDUMP') 32 deps += 'pdump' 33endif 34if dpdk_conf.has('RTE_LIB_BITRATESTATS') 35 deps += 'bitratestats' 36endif 37if dpdk_conf.has('RTE_LIB_LATENCYSTATS') 38 deps += 'latencystats' 39endif 40if dpdk_conf.has('RTE_CRYPTO_SCHEDULER') 41 deps += 'crypto_scheduler' 42endif 43if dpdk_conf.has('RTE_NET_BOND') 44 deps += 'net_bond' 45endif 46if dpdk_conf.has('RTE_NET_BNXT') 47 deps += 'net_bnxt' 48endif 49if dpdk_conf.has('RTE_NET_I40E') 50 deps += 'net_i40e' 51endif 52if dpdk_conf.has('RTE_NET_IXGBE') 53 deps += 'net_ixgbe' 54endif 55if dpdk_conf.has('RTE_NET_DPAA') 56 deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa'] 57endif 58if dpdk_conf.has('RTE_LIB_BPF') 59 sources += files('bpf_cmd.c') 60 deps += 'bpf' 61endif 62