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_cman.c', 11 'cmdline_flow.c', 12 'cmdline_mtr.c', 13 'cmdline_tm.c', 14 'cmd_flex_item.c', 15 'config.c', 16 'csumonly.c', 17 'flowgen.c', 18 'hairpin.c', 19 'icmpecho.c', 20 'ieee1588fwd.c', 21 'iofwd.c', 22 'macfwd.c', 23 'macswap.c', 24 'noisy_vnf.c', 25 'parameters.c', 26 'recycle_mbufs.c', 27 'rxonly.c', 28 'shared_rxq_fwd.c', 29 'testpmd.c', 30 'txonly.c', 31 'util.c', 32) 33 34if dpdk_conf.has('RTE_HAS_JANSSON') 35 ext_deps += jansson_dep 36endif 37 38deps += ['ethdev', 'cmdline'] 39if dpdk_conf.has('RTE_CRYPTO_SCHEDULER') 40 deps += 'crypto_scheduler' 41endif 42if dpdk_conf.has('RTE_LIB_BITRATESTATS') 43 deps += 'bitratestats' 44endif 45if dpdk_conf.has('RTE_LIB_BPF') 46 sources += files('bpf_cmd.c') 47 deps += 'bpf' 48endif 49if dpdk_conf.has('RTE_LIB_GRO') 50 deps += 'gro' 51endif 52if dpdk_conf.has('RTE_LIB_GSO') 53 deps += 'gso' 54endif 55if dpdk_conf.has('RTE_LIB_LATENCYSTATS') 56 deps += 'latencystats' 57endif 58if dpdk_conf.has('RTE_LIB_METRICS') 59 deps += 'metrics' 60endif 61if dpdk_conf.has('RTE_LIB_PDUMP') 62 deps += 'pdump' 63endif 64if dpdk_conf.has('RTE_NET_BNXT') 65 deps += 'net_bnxt' 66endif 67if dpdk_conf.has('RTE_NET_I40E') 68 deps += 'net_i40e' 69endif 70if dpdk_conf.has('RTE_NET_IXGBE') 71 deps += 'net_ixgbe' 72endif 73if dpdk_conf.has('RTE_NET_DPAA') 74 deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa'] 75endif 76 77# Driver-specific commands are located in driver directories. 78includes = include_directories('.') 79sources += testpmd_drivers_sources 80deps += testpmd_drivers_deps 81