xref: /dpdk/lib/ethdev/meson.build (revision e9fd1ebf981f361844aea9ec94e17f4bda5e1479)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2017 Intel Corporation
3
4sources = files(
5        'ethdev_driver.c',
6        'ethdev_private.c',
7        'ethdev_profile.c',
8        'ethdev_trace_points.c',
9        'rte_class_eth.c',
10        'rte_ethdev.c',
11        'rte_ethdev_cman.c',
12        'rte_ethdev_telemetry.c',
13        'rte_flow.c',
14        'rte_mtr.c',
15        'rte_tm.c',
16        'sff_telemetry.c',
17        'sff_common.c',
18        'sff_8079.c',
19        'sff_8472.c',
20        'sff_8636.c',
21)
22
23headers = files(
24        'rte_cman.h',
25        'rte_ethdev.h',
26        'rte_ethdev_trace_fp.h',
27        'rte_dev_info.h',
28        'rte_flow.h',
29        'rte_flow_driver.h',
30        'rte_mtr.h',
31        'rte_mtr_driver.h',
32        'rte_tm.h',
33        'rte_tm_driver.h',
34)
35
36indirect_headers += files(
37        'rte_ethdev_core.h',
38        'rte_eth_ctrl.h',
39)
40
41driver_sdk_headers += files(
42        'ethdev_driver.h',
43        'ethdev_pci.h',
44        'ethdev_vdev.h',
45)
46
47if is_linux
48    driver_sdk_headers += files(
49            'ethdev_linux_ethtool.h',
50    )
51    sources += files(
52            'ethdev_linux_ethtool.c',
53    )
54endif
55
56deps += ['net', 'kvargs', 'meter', 'telemetry']
57
58if is_freebsd
59    annotate_locks = false
60endif
61
62if get_option('buildtype').contains('debug')
63    cflags += ['-DRTE_FLOW_DEBUG']
64endif
65