xref: /f-stack/dpdk/drivers/net/ice/base/meson.build (revision 2d9fd380)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2018-2020 Intel Corporation
3
4sources = [
5	'ice_controlq.c',
6	'ice_common.c',
7	'ice_sched.c',
8	'ice_switch.c',
9	'ice_nvm.c',
10	'ice_flex_pipe.c',
11	'ice_flow.c',
12	'ice_dcb.c',
13	'ice_fdir.c',
14	'ice_acl.c',
15	'ice_acl_ctrl.c',
16]
17
18error_cflags = ['-Wno-unused-value',
19		'-Wno-unused-but-set-variable',
20		'-Wno-unused-variable',
21		'-Wno-unused-parameter',
22]
23c_args = cflags
24
25foreach flag: error_cflags
26	if cc.has_argument(flag)
27		c_args += flag
28	endif
29endforeach
30
31base_lib = static_library('ice_base', sources,
32	dependencies: static_rte_eal,
33	c_args: c_args)
34base_objs = base_lib.extract_all_objects()
35