New upstream version 18.08
[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         'parameters.c',
21         'rxonly.c',
22         'testpmd.c',
23         'txonly.c')
24
25 deps = ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
26 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
27         deps += 'pdump'
28 endif
29 if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
30         deps += 'pmd_bnxt'
31 endif
32 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
33         deps += 'pmd_i40e'
34 endif
35 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
36         deps += 'pmd_ixgbe'
37 endif
38 if dpdk_conf.has('RTE_LIBRTE_SOFTNIC_PMD')
39         sources += files('softnicfwd.c')
40         deps += 'pmd_softnic'
41 endif
42 if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD')
43         deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa']
44 endif
45 if dpdk_conf.has('RTE_LIBRTE_BPF')
46         sources += files('bpf_cmd.c')
47         deps += 'bpf'
48 endif