b05c531c7f05fcdf2eafb9d9465faf8ea143d91f
[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 deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'bus_pci']
32 if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
33     deps += 'crypto_scheduler'
34 endif
35 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
36     deps += 'bitratestats'
37 endif
38 if dpdk_conf.has('RTE_LIB_BPF')
39     sources += files('bpf_cmd.c')
40     deps += 'bpf'
41 endif
42 if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
43     deps += 'latencystats'
44 endif
45 if dpdk_conf.has('RTE_LIB_PDUMP')
46     deps += 'pdump'
47 endif
48 if dpdk_conf.has('RTE_NET_BOND')
49     deps += 'net_bond'
50 endif
51 if dpdk_conf.has('RTE_NET_BNXT')
52     deps += 'net_bnxt'
53 endif
54 if dpdk_conf.has('RTE_NET_I40E')
55     deps += 'net_i40e'
56 endif
57 if dpdk_conf.has('RTE_NET_IXGBE')
58     deps += 'net_ixgbe'
59 endif
60 if dpdk_conf.has('RTE_NET_DPAA')
61     deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
62 endif
63 jansson_dep = dependency('jansson', required: false, method: 'pkg-config')
64 if jansson_dep.found()
65     dpdk_conf.set('RTE_HAS_JANSSON', 1)
66     ext_deps += jansson_dep
67 endif