net/i40e: move testpmd commands
[dpdk.git] / app / test-pmd / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 # override default name to drop the hyphen
5 name = 'testpmd'
6 cflags += '-Wno-deprecated-declarations'
7 sources = 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
31 if dpdk_conf.has('RTE_HAS_JANSSON')
32     ext_deps += jansson_dep
33 endif
34
35 deps += ['ethdev', 'cmdline', 'bus_pci']
36 if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
37     deps += 'crypto_scheduler'
38 endif
39 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
40     deps += 'bitratestats'
41 endif
42 if dpdk_conf.has('RTE_LIB_BPF')
43     sources += files('bpf_cmd.c')
44     deps += 'bpf'
45 endif
46 if dpdk_conf.has('RTE_LIB_GRO')
47     deps += 'gro'
48 endif
49 if dpdk_conf.has('RTE_LIB_GSO')
50     deps += 'gso'
51 endif
52 if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
53     deps += 'latencystats'
54 endif
55 if dpdk_conf.has('RTE_LIB_METRICS')
56     deps += 'metrics'
57 endif
58 if dpdk_conf.has('RTE_LIB_PDUMP')
59     deps += 'pdump'
60 endif
61 if dpdk_conf.has('RTE_NET_BNXT')
62     deps += 'net_bnxt'
63 endif
64 if dpdk_conf.has('RTE_NET_I40E')
65     deps += 'net_i40e'
66 endif
67 if dpdk_conf.has('RTE_NET_IXGBE')
68     deps += 'net_ixgbe'
69 endif
70 if dpdk_conf.has('RTE_NET_DPAA')
71     deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
72 endif
73
74 # Driver-specific commands are located in driver directories.
75 includes = include_directories('.')
76 sources += testpmd_drivers_sources
77 deps += testpmd_drivers_deps