summaryrefslogtreecommitdiffstats
path: root/drivers/net/fm10k/base/meson.build
blob: 5525cdc82c4fe469d40fdc16e7d27571541b9ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation

sources = [
	'fm10k_api.c',
	'fm10k_common.c',
	'fm10k_mbx.c',
	'fm10k_pf.c',
	'fm10k_tlv.c',
	'fm10k_vf.c'
]

error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value',
	'-Wno-strict-aliasing', '-Wno-format-extra-args',
	'-Wno-unused-variable', '-Wno-missing-field-initializers'
]
c_args = cflags
if allow_experimental_apis
	c_args += '-DALLOW_EXPERIMENTAL_API'
endif
foreach flag: error_cflags
	if cc.has_argument(flag)
		c_args += flag
	endif
endforeach

base_lib = static_library('fm10k_base', sources,
	dependencies: static_rte_eal,
	c_args: c_args)
base_objs = base_lib.extract_all_objects()