]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/drivers/net/ixgbe/base/meson.build
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / ixgbe / base / meson.build
CommitLineData
11fdf7f2
TL
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2017 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']
22c_args = cflags
9f95a23c
TL
23if allow_experimental_apis
24 c_args += '-DALLOW_EXPERIMENTAL_API'
25endif
11fdf7f2
TL
26foreach flag: error_cflags
27 if cc.has_argument(flag)
28 c_args += flag
29 endif
30endforeach
31
32base_lib = static_library('ixgbe_base', sources,
33 dependencies: static_rte_eal,
34 c_args: c_args)
35base_objs = base_lib.extract_all_objects()