xref: /dpdk/lib/ethdev/meson.build (revision 6285aa6af4d1e1899527884589cdd0025771edb3)
199a2dd95SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
299a2dd95SBruce Richardson# Copyright(c) 2017 Intel Corporation
399a2dd95SBruce Richardson
499a2dd95SBruce Richardsonsources = files(
5a41f593fSFerruh Yigit        'ethdev_driver.c',
699a2dd95SBruce Richardson        'ethdev_private.c',
799a2dd95SBruce Richardson        'ethdev_profile.c',
899a2dd95SBruce Richardson        'ethdev_trace_points.c',
999a2dd95SBruce Richardson        'rte_class_eth.c',
1099a2dd95SBruce Richardson        'rte_ethdev.c',
116b81dddbSJerin Jacob        'rte_ethdev_cman.c',
124fe767acSJie Hai        'rte_ethdev_telemetry.c',
1399a2dd95SBruce Richardson        'rte_flow.c',
1499a2dd95SBruce Richardson        'rte_mtr.c',
1599a2dd95SBruce Richardson        'rte_tm.c',
167546a2cdSRobin Zhang        'sff_telemetry.c',
17266c2bebSRobin Zhang        'sff_common.c',
18084b4880SRobin Zhang        'sff_8079.c',
190caf7f37SRobin Zhang        'sff_8472.c',
20c42754fdSRobin Zhang        'sff_8636.c',
2199a2dd95SBruce Richardson)
2299a2dd95SBruce Richardson
2399a2dd95SBruce Richardsonheaders = files(
246b81dddbSJerin Jacob        'rte_cman.h',
2599a2dd95SBruce Richardson        'rte_ethdev.h',
2699a2dd95SBruce Richardson        'rte_ethdev_trace_fp.h',
2799a2dd95SBruce Richardson        'rte_dev_info.h',
2899a2dd95SBruce Richardson        'rte_flow.h',
2999a2dd95SBruce Richardson        'rte_flow_driver.h',
3099a2dd95SBruce Richardson        'rte_mtr.h',
3199a2dd95SBruce Richardson        'rte_mtr_driver.h',
3299a2dd95SBruce Richardson        'rte_tm.h',
3399a2dd95SBruce Richardson        'rte_tm_driver.h',
3499a2dd95SBruce Richardson)
3599a2dd95SBruce Richardson
3699a2dd95SBruce Richardsonindirect_headers += files(
3799a2dd95SBruce Richardson        'rte_ethdev_core.h',
3899a2dd95SBruce Richardson        'rte_eth_ctrl.h',
3999a2dd95SBruce Richardson)
4099a2dd95SBruce Richardson
4199a2dd95SBruce Richardsondriver_sdk_headers += files(
4299a2dd95SBruce Richardson        'ethdev_driver.h',
4399a2dd95SBruce Richardson        'ethdev_pci.h',
4499a2dd95SBruce Richardson        'ethdev_vdev.h',
4599a2dd95SBruce Richardson)
4699a2dd95SBruce Richardson
47*6285aa6aSThomas Monjalonif is_linux
48*6285aa6aSThomas Monjalon    driver_sdk_headers += files(
49*6285aa6aSThomas Monjalon            'ethdev_linux_ethtool.h',
50*6285aa6aSThomas Monjalon    )
51*6285aa6aSThomas Monjalon    sources += files(
52*6285aa6aSThomas Monjalon            'ethdev_linux_ethtool.c',
53*6285aa6aSThomas Monjalon    )
54*6285aa6aSThomas Monjalonendif
55*6285aa6aSThomas Monjalon
5699a2dd95SBruce Richardsondeps += ['net', 'kvargs', 'meter', 'telemetry']
5770cc4e1fSDavid Marchand
5870cc4e1fSDavid Marchandif is_freebsd
5970cc4e1fSDavid Marchand    annotate_locks = false
6070cc4e1fSDavid Marchandendif
61537bfddaSDariusz Sosnowski
62537bfddaSDariusz Sosnowskiif get_option('buildtype').contains('debug')
63537bfddaSDariusz Sosnowski    cflags += ['-DRTE_FLOW_DEBUG']
64537bfddaSDariusz Sosnowskiendif
65