xref: /dpdk/app/test-pmd/meson.build (revision bb9be9a4)
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_flow.c',
11        'cmdline_mtr.c',
12        'cmdline_tm.c',
13        'cmd_flex_item.c',
14        'config.c',
15        'csumonly.c',
16        'flowgen.c',
17        'icmpecho.c',
18        'ieee1588fwd.c',
19        'iofwd.c',
20        'macfwd.c',
21        'macswap.c',
22        'noisy_vnf.c',
23        'parameters.c',
24        'rxonly.c',
25        'shared_rxq_fwd.c',
26        'testpmd.c',
27        'txonly.c',
28        'util.c',
29)
30
31if dpdk_conf.has('RTE_HAS_JANSSON')
32    ext_deps += jansson_dep
33endif
34
35deps += ['ethdev', 'cmdline', 'bus_pci']
36if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
37    deps += 'crypto_scheduler'
38endif
39if dpdk_conf.has('RTE_LIB_BITRATESTATS')
40    deps += 'bitratestats'
41endif
42if dpdk_conf.has('RTE_LIB_BPF')
43    sources += files('bpf_cmd.c')
44    deps += 'bpf'
45endif
46if dpdk_conf.has('RTE_LIB_GRO')
47    deps += 'gro'
48endif
49if dpdk_conf.has('RTE_LIB_GSO')
50    deps += 'gso'
51endif
52if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
53    deps += 'latencystats'
54endif
55if dpdk_conf.has('RTE_LIB_METRICS')
56    deps += 'metrics'
57endif
58if dpdk_conf.has('RTE_LIB_PDUMP')
59    deps += 'pdump'
60endif
61if dpdk_conf.has('RTE_NET_BOND')
62    deps += 'net_bond'
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