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_LIBRTE_BITRATESTATS') 29 deps += 'bitratestats' 30endif 31if dpdk_conf.has('RTE_LIBRTE_PDUMP') 32 deps += 'pdump' 33endif 34if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD') 35 deps += 'pmd_bnxt' 36endif 37if dpdk_conf.has('RTE_LIBRTE_I40E_PMD') 38 deps += 'pmd_i40e' 39endif 40if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD') 41 deps += 'pmd_ixgbe' 42endif 43if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD') 44 deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa'] 45endif 46if dpdk_conf.has('RTE_LIBRTE_BPF') 47 sources += files('bpf_cmd.c') 48 deps += 'bpf' 49endif 50