doc: add Meson coding style to contributors guide
[dpdk.git] / lib / librte_port / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 sources = files(
5         'rte_port_ethdev.c',
6         'rte_port_fd.c',
7         'rte_port_frag.c',
8         'rte_port_ras.c',
9         'rte_port_ring.c',
10         'rte_port_sched.c',
11         'rte_port_source_sink.c',
12         'rte_port_sym_crypto.c',
13         'rte_port_eventdev.c',
14         'rte_swx_port_ethdev.c',
15         'rte_swx_port_fd.c',
16         'rte_swx_port_ring.c',
17         'rte_swx_port_source_sink.c',
18 )
19 headers = files(
20         'rte_port_ethdev.h',
21         'rte_port_fd.h',
22         'rte_port_frag.h',
23         'rte_port_ras.h',
24         'rte_port.h',
25         'rte_port_ring.h',
26         'rte_port_sched.h',
27         'rte_port_source_sink.h',
28         'rte_port_sym_crypto.h',
29         'rte_port_eventdev.h',
30         'rte_swx_port.h',
31         'rte_swx_port_ethdev.h',
32         'rte_swx_port_fd.h',
33         'rte_swx_port_ring.h',
34         'rte_swx_port_source_sink.h',
35 )
36 deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev']
37
38 if dpdk_conf.has('RTE_PORT_PCAP')
39     ext_deps += pcap_dep # dependency provided in config/meson.build
40 endif
41
42 if dpdk_conf.has('RTE_LIB_KNI')
43     sources += files('rte_port_kni.c')
44     headers += files('rte_port_kni.h')
45     deps += 'kni'
46 endif