New upstream version 18.11-rc1
[deb_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 allow_experimental_apis = true
7 cflags += '-Wno-deprecated-declarations'
8 sources = files('cmdline.c',
9         'cmdline_flow.c',
10         'cmdline_mtr.c',
11         'cmdline_tm.c',
12         'config.c',
13         'csumonly.c',
14         'flowgen.c',
15         'icmpecho.c',
16         'ieee1588fwd.c',
17         'iofwd.c',
18         'macfwd.c',
19         'macswap.c',
20         'noisy_vnf.c',
21         'parameters.c',
22         'rxonly.c',
23         'testpmd.c',
24         'txonly.c',
25         'util.c')
26
27 deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
28 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
29         deps += 'pdump'
30 endif
31 if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
32         deps += 'pmd_bnxt'
33 endif
34 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
35         deps += 'pmd_i40e'
36 endif
37 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
38         deps += 'pmd_ixgbe'
39 endif
40 if dpdk_conf.has('RTE_LIBRTE_SOFTNIC_PMD')
41         sources += files('softnicfwd.c')
42         deps += 'pmd_softnic'
43 endif
44 if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD')
45         deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa']
46 endif
47 if dpdk_conf.has('RTE_LIBRTE_BPF')
48         sources += files('bpf_cmd.c')
49         deps += 'bpf'
50 endif