New upstream version 18.11-rc1
[deb_dpdk.git] / drivers / net / sfc / base / meson.build
1 # Copyright (c) 2016-2018 Solarflare Communications Inc.
2 # All rights reserved.
3 #
4 # This software was jointly developed between OKTET Labs (under contract
5 # for Solarflare) and Solarflare Communications, Inc.
6
7 sources = [
8         'efx_bootcfg.c',
9         'efx_crc32.c',
10         'efx_ev.c',
11         'efx_filter.c',
12         'efx_hash.c',
13         'efx_intr.c',
14         'efx_lic.c',
15         'efx_mac.c',
16         'efx_mcdi.c',
17         'efx_mon.c',
18         'efx_nic.c',
19         'efx_nvram.c',
20         'efx_phy.c',
21         'efx_port.c',
22         'efx_rx.c',
23         'efx_sram.c',
24         'efx_tunnel.c',
25         'efx_tx.c',
26         'efx_vpd.c',
27         'mcdi_mon.c',
28         'siena_mac.c',
29         'siena_mcdi.c',
30         'siena_nic.c',
31         'siena_nvram.c',
32         'siena_phy.c',
33         'siena_sram.c',
34         'siena_vpd.c',
35         'ef10_ev.c',
36         'ef10_filter.c',
37         'ef10_image.c',
38         'ef10_intr.c',
39         'ef10_mac.c',
40         'ef10_mcdi.c',
41         'ef10_nic.c',
42         'ef10_nvram.c',
43         'ef10_phy.c',
44         'ef10_rx.c',
45         'ef10_tx.c',
46         'ef10_vpd.c',
47         'hunt_nic.c',
48         'medford_nic.c',
49         'medford2_nic.c'
50 ]
51
52 extra_flags = [
53         '-Wno-sign-compare',
54         '-Wno-unused-parameter',
55         '-Wno-unused-variable',
56         '-Wno-empty-body',
57         '-Wno-unused-but-set-variable'
58 ]
59
60 c_args = cflags
61 if allow_experimental_apis
62         c_args += '-DALLOW_EXPERIMENTAL_API'
63 endif
64 foreach flag: extra_flags
65         if cc.has_argument(flag)
66                 c_args += flag
67         endif
68 endforeach
69
70 if build
71         base_lib = static_library('sfc_base', sources,
72                 include_directories: includes,
73                 dependencies: static_rte_eal,
74                 c_args: c_args)
75
76         base_objs = base_lib.extract_all_objects()
77 else
78         base_objs = []
79 endif