build: replace license text with SPDX tag
[dpdk.git] / drivers / net / e1000 / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 sources = [
5         'e1000_80003es2lan.c',
6         'e1000_82540.c',
7         'e1000_82541.c',
8         'e1000_82542.c',
9         'e1000_82543.c',
10         'e1000_82571.c',
11         'e1000_82575.c',
12         'e1000_api.c',
13         'e1000_i210.c',
14         'e1000_ich8lan.c',
15         'e1000_mac.c',
16         'e1000_manage.c',
17         'e1000_mbx.c',
18         'e1000_nvm.c',
19         'e1000_osdep.c',
20         'e1000_phy.c',
21         'e1000_vf.c'
22 ]
23
24 error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter',
25         '-Wno-unused-variable', '-Wno-misleading-indentation',
26         '-Wno-implicit-fallthrough']
27 c_args = cflags
28 foreach flag: error_cflags
29         if cc.has_argument(flag)
30                 c_args += flag
31         endif
32 endforeach
33
34 base_lib = static_library('e1000_base', sources,
35         dependencies: static_rte_eal,
36         c_args: c_args)
37 base_objs = base_lib.extract_all_objects()