]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/drivers/net/i40e/base/meson.build
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / i40e / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 sources = [
5 'i40e_adminq.c',
6 'i40e_common.c',
7 'i40e_dcb.c',
8 'i40e_diag.c',
9 'i40e_hmc.c',
10 'i40e_lan_hmc.c',
11 'i40e_nvm.c'
12 ]
13
14 error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
15 '-Wno-format', '-Wno-error=format-security',
16 '-Wno-strict-aliasing', '-Wno-unused-but-set-variable'
17 ]
18 c_args = cflags
19 if allow_experimental_apis
20 c_args += '-DALLOW_EXPERIMENTAL_API'
21 endif
22 foreach flag: error_cflags
23 if cc.has_argument(flag)
24 c_args += flag
25 endif
26 endforeach
27
28 base_lib = static_library('i40e_base', sources,
29 dependencies: static_rte_eal,
30 c_args: c_args)
31 base_objs = base_lib.extract_all_objects()