]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/dpdk/drivers/net/e1000/base/meson.build
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / drivers / net / e1000 / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 sources = [
5 'e1000_80003es2lan.c',
6 'e1000_82540.c',
7 'e1000_82541.c',
8 'e1000_82542.c',
9 'e1000_82543.c',
10 'e1000_82571.c',
11 'e1000_82575.c',
12 'e1000_api.c',
13 'e1000_i210.c',
14 'e1000_ich8lan.c',
15 'e1000_mac.c',
16 'e1000_manage.c',
17 'e1000_mbx.c',
18 'e1000_nvm.c',
19 'e1000_osdep.c',
20 'e1000_phy.c',
21 'e1000_vf.c'
22 ]
23
24 error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter',
25 '-Wno-unused-variable', '-Wno-misleading-indentation',
26 '-Wno-implicit-fallthrough']
27 c_args = cflags
28 if allow_experimental_apis
29 c_args += '-DALLOW_EXPERIMENTAL_API'
30 endif
31 foreach flag: error_cflags
32 if cc.has_argument(flag)
33 c_args += flag
34 endif
35 endforeach
36
37 base_lib = static_library('e1000_base', sources,
38 dependencies: static_rte_eal,
39 c_args: c_args)
40 base_objs = base_lib.extract_all_objects()