xref: /dpdk/drivers/net/ixgbe/base/meson.build (revision 6be66901)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2017-2020 Intel Corporation
3
4sources = [
5        'ixgbe_82598.c',
6        'ixgbe_82599.c',
7        'ixgbe_api.c',
8        'ixgbe_common.c',
9        'ixgbe_dcb_82598.c',
10        'ixgbe_dcb_82599.c',
11        'ixgbe_dcb.c',
12        'ixgbe_hv_vf.c',
13        'ixgbe_mbx.c',
14        'ixgbe_phy.c',
15        'ixgbe_vf.c',
16        'ixgbe_x540.c',
17        'ixgbe_x550.c',
18]
19
20error_cflags = ['-Wno-unused-value',
21        '-Wno-unused-but-set-variable',
22        '-Wno-unused-parameter',
23        ]
24c_args = cflags
25foreach flag: error_cflags
26    if cc.has_argument(flag)
27        c_args += flag
28    endif
29endforeach
30
31base_lib = static_library('ixgbe_base', sources,
32    dependencies: [static_rte_eal, static_rte_net],
33    c_args: c_args)
34base_objs = base_lib.extract_all_objects(recursive: true)
35