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