f-stack/dpdk/drivers/net/i40e/base/meson.build

31 lines
779 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
2021-01-28 17:08:59 +00:00
# Copyright(c) 2017-2020 Intel Corporation
2019-06-25 11:12:58 +00:00
sources = [
2022-09-06 04:00:10 +00:00
'i40e_adminq.c',
'i40e_common.c',
'i40e_dcb.c',
'i40e_diag.c',
'i40e_hmc.c',
'i40e_lan_hmc.c',
'i40e_nvm.c',
2019-06-25 11:12:58 +00:00
]
error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
2022-09-06 04:00:10 +00:00
'-Wno-format', '-Wno-format-security',
'-Wno-format-nonliteral',
'-Wno-strict-aliasing', '-Wno-unused-but-set-variable',
'-Wno-unused-parameter',
2019-06-25 11:12:58 +00:00
]
c_args = cflags
foreach flag: error_cflags
2022-09-06 04:00:10 +00:00
if cc.has_argument(flag)
c_args += flag
endif
2019-06-25 11:12:58 +00:00
endforeach
base_lib = static_library('i40e_base', sources,
2022-09-06 04:00:10 +00:00
dependencies: static_rte_eal,
c_args: c_args)
base_objs = base_lib.extract_all_objects(recursive: true)