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

29 lines
689 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
sources = [
2022-09-06 04:00:10 +00:00
'fm10k_api.c',
'fm10k_common.c',
'fm10k_mbx.c',
'fm10k_pf.c',
'fm10k_tlv.c',
'fm10k_vf.c',
2019-06-25 11:12:58 +00:00
]
error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value',
2022-09-06 04:00:10 +00:00
'-Wno-strict-aliasing', '-Wno-format-extra-args',
'-Wno-unused-variable',
'-Wno-implicit-fallthrough'
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('fm10k_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)