# override default name to drop the hyphen
name = 'testpmd'
cflags += '-Wno-deprecated-declarations'
-sources = files('5tswap.c',
- 'cmdline.c',
- 'cmdline_flow.c',
- 'cmdline_mtr.c',
- 'cmdline_tm.c',
- 'config.c',
- 'csumonly.c',
- 'flowgen.c',
- 'icmpecho.c',
- 'ieee1588fwd.c',
- 'iofwd.c',
- 'macfwd.c',
- 'macswap.c',
- 'noisy_vnf.c',
- 'parameters.c',
- 'rxonly.c',
- 'testpmd.c',
- 'txonly.c',
- 'util.c')
+sources = files(
+ '5tswap.c',
+ 'cmdline.c',
+ 'cmdline_flow.c',
+ 'cmdline_mtr.c',
+ 'cmdline_tm.c',
+ 'cmd_flex_item.c',
+ 'config.c',
+ 'csumonly.c',
+ 'flowgen.c',
+ 'icmpecho.c',
+ 'ieee1588fwd.c',
+ 'iofwd.c',
+ 'macfwd.c',
+ 'macswap.c',
+ 'noisy_vnf.c',
+ 'parameters.c',
+ 'rxonly.c',
+ 'shared_rxq_fwd.c',
+ 'testpmd.c',
+ 'txonly.c',
+ 'util.c',
+)
deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
if dpdk_conf.has('RTE_LIB_BITRATESTATS')
- deps += 'bitratestats'
+ deps += 'bitratestats'
endif
if dpdk_conf.has('RTE_LIB_PDUMP')
- deps += 'pdump'
+ deps += 'pdump'
endif
if dpdk_conf.has('RTE_LIB_BITRATESTATS')
- deps += 'bitratestats'
+ deps += 'bitratestats'
endif
if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
- deps += 'latencystats'
+ deps += 'latencystats'
endif
if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
- deps += 'crypto_scheduler'
+ deps += 'crypto_scheduler'
endif
if dpdk_conf.has('RTE_NET_BOND')
- deps += 'net_bond'
+ deps += 'net_bond'
endif
if dpdk_conf.has('RTE_NET_BNXT')
- deps += 'net_bnxt'
+ deps += 'net_bnxt'
endif
if dpdk_conf.has('RTE_NET_I40E')
- deps += 'net_i40e'
+ deps += 'net_i40e'
endif
if dpdk_conf.has('RTE_NET_IXGBE')
- deps += 'net_ixgbe'
+ deps += 'net_ixgbe'
endif
if dpdk_conf.has('RTE_NET_DPAA')
- deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
+ deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
endif
if dpdk_conf.has('RTE_LIB_BPF')
- sources += files('bpf_cmd.c')
- deps += 'bpf'
+ sources += files('bpf_cmd.c')
+ deps += 'bpf'
+endif
+jansson_dep = dependency('jansson', required: false, method: 'pkg-config')
+if jansson_dep.found()
+ dpdk_conf.set('RTE_HAS_JANSSON', 1)
+ ext_deps += jansson_dep
endif