03a6c44f53461d9a1e4c65645450e7c2d6e81a1e
[dpdk.git] / drivers / net / qede / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
3
4 sources = [
5         'bcm_osal.c',
6         'ecore_cxt.c',
7         'ecore_dcbx.c',
8         'ecore_dev.c',
9         'ecore_hw.c',
10         'ecore_init_fw_funcs.c',
11         'ecore_init_ops.c',
12         'ecore_int.c',
13         'ecore_l2.c',
14         'ecore_mcp.c',
15         'ecore_sp_commands.c',
16         'ecore_spq.c',
17         'ecore_sriov.c',
18         'ecore_vf.c',
19 ]
20
21
22 error_cflags = [
23         '-Wno-unused-parameter',
24         '-Wno-sign-compare',
25         '-Wno-missing-prototypes',
26         '-Wno-cast-qual',
27         '-Wno-unused-function',
28         '-Wno-unused-variable',
29         '-Wno-strict-aliasing',
30         '-Wno-missing-prototypes',
31         '-Wno-unused-value',
32         '-Wno-format-nonliteral',
33         '-Wno-shift-negative-value',
34         '-Wno-unused-but-set-variable',
35         '-Wno-missing-declarations',
36         '-Wno-maybe-uninitialized',
37         '-Wno-strict-prototypes',
38         '-Wno-shift-negative-value',
39         '-Wno-implicit-fallthrough',
40         '-Wno-format-extra-args',
41         '-Wno-visibility',
42         '-Wno-empty-body',
43         '-Wno-invalid-source-encoding',
44         '-Wno-sometimes-uninitialized',
45         '-Wno-pointer-bool-conversion',
46 ]
47 c_args = cflags
48 foreach flag: error_cflags
49         if cc.has_argument(flag)
50                 c_args += flag
51         endif
52 endforeach
53
54 base_lib = static_library('qede_base', sources,
55         dependencies: [static_rte_net, static_rte_bus_pci],
56         c_args: c_args)
57 base_objs = base_lib.extract_all_objects()