1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4# override default name to drop the hyphen 5name = 'testpmd' 6allow_experimental_apis = true 7cflags += '-Wno-deprecated-declarations' 8sources = files('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 'parameters.c', 21 'rxonly.c', 22 'testpmd.c', 23 'txonly.c') 24 25deps = ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci'] 26if dpdk_conf.has('RTE_LIBRTE_PDUMP') 27 deps += 'pdump' 28endif 29if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD') 30 deps += 'pmd_bnxt' 31endif 32if dpdk_conf.has('RTE_LIBRTE_I40E_PMD') 33 deps += 'pmd_i40e' 34endif 35if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD') 36 deps += 'pmd_ixgbe' 37endif 38if dpdk_conf.has('RTE_LIBRTE_SOFTNIC_PMD') 39 sources += files('softnicfwd.c') 40 deps += 'pmd_softnic' 41endif 42if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD') 43 deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa'] 44endif 45if dpdk_conf.has('RTE_LIBRTE_BPF') 46 sources += files('bpf_cmd.c') 47 deps += 'bpf' 48endif 49