a232cb587b50147bcbdda33ebd149b6abe4ca06e
[dpdk.git] / lib / librte_port / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 version = 3
5 sources = files(
6         'rte_port_ethdev.c',
7         'rte_port_fd.c',
8         'rte_port_frag.c',
9         'rte_port_ras.c',
10         'rte_port_ring.c',
11         'rte_port_sched.c',
12         'rte_port_source_sink.c',
13         'rte_port_sym_crypto.c',
14         'rte_port_eventdev.c')
15 headers = files(
16         'rte_port_ethdev.h',
17         'rte_port_fd.h',
18         'rte_port_frag.h',
19         'rte_port_ras.h',
20         'rte_port.h',
21         'rte_port_ring.h',
22         'rte_port_sched.h',
23         'rte_port_source_sink.h',
24         'rte_port_sym_crypto.h',
25         'rte_port_eventdev.h')
26 deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev']
27
28 if dpdk_conf.has('RTE_PORT_PCAP')
29         ext_deps += pcap_dep # dependency provided in config/meson.build
30 endif
31
32 if dpdk_conf.has('RTE_LIBRTE_KNI')
33         sources += files('rte_port_kni.c')
34         headers += files('rte_port_kni.h')
35         deps += 'kni'
36 endif