xref: /dpdk/lib/port/meson.build (revision 1783f057acdbbd9bd58908b915e33ce38bac620e)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2017 Intel Corporation
3
4if is_windows
5    build = false
6    reason = 'not supported on Windows'
7    subdir_done()
8endif
9
10sources = files(
11        'port_log.c',
12        'rte_port_ethdev.c',
13        'rte_port_fd.c',
14        'rte_port_frag.c',
15        'rte_port_ras.c',
16        'rte_port_ring.c',
17        'rte_port_sched.c',
18        'rte_port_source_sink.c',
19        'rte_port_sym_crypto.c',
20        'rte_port_eventdev.c',
21        'rte_swx_port_ethdev.c',
22        'rte_swx_port_fd.c',
23        'rte_swx_port_ring.c',
24        'rte_swx_port_source_sink.c',
25)
26headers = files(
27        'rte_port_ethdev.h',
28        'rte_port_fd.h',
29        'rte_port_frag.h',
30        'rte_port_ras.h',
31        'rte_port.h',
32        'rte_port_ring.h',
33        'rte_port_sched.h',
34        'rte_port_source_sink.h',
35        'rte_port_sym_crypto.h',
36        'rte_port_eventdev.h',
37        'rte_swx_port.h',
38        'rte_swx_port_ethdev.h',
39        'rte_swx_port_fd.h',
40        'rte_swx_port_ring.h',
41        'rte_swx_port_source_sink.h',
42)
43deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev']
44
45if dpdk_conf.has('RTE_HAS_LIBPCAP')
46    dpdk_conf.set('RTE_PORT_PCAP', 1)
47    ext_deps += pcap_dep # dependency provided in config/meson.build
48endif
49