New upstream version 18.02
[deb_dpdk.git] / drivers / net / sfc / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 #
3 # Copyright (c) 2016-2018 Solarflare Communications Inc.
4 # All rights reserved.
5 #
6 # This software was jointly developed between OKTET Labs (under contract
7 # for Solarflare) and Solarflare Communications, Inc.
8
9 if arch_subdir != 'x86'
10         build = false
11 endif
12
13 allow_experimental_apis = true
14
15 extra_flags = []
16
17 # Strict-aliasing rules are violated by rte_eth_link to uint64_t casts
18 extra_flags += '-Wno-strict-aliasing'
19
20 # Enable more warnings
21 extra_flags += [
22         '-Wextra',
23         '-Wdisabled-optimization'
24 ]
25
26 # Compiler and version dependent flags
27 extra_flags += [
28         '-Waggregate-return',
29         '-Wnested-externs',
30         '-Wbad-function-cast'
31 ]
32
33 # Suppress ICC false positive warning on 'bulk' may be used before its
34 # value is set
35 extra_flags += '-wd3656'
36
37 foreach flag: extra_flags
38         if cc.has_argument(flag)
39                 cflags += flag
40         endif
41 endforeach
42
43 subdir('base')
44 objs = [base_objs]
45
46 sources = files(
47         'sfc_ethdev.c',
48         'sfc_kvargs.c',
49         'sfc.c',
50         'sfc_mcdi.c',
51         'sfc_intr.c',
52         'sfc_ev.c',
53         'sfc_port.c',
54         'sfc_rx.c',
55         'sfc_tx.c',
56         'sfc_tso.c',
57         'sfc_filter.c',
58         'sfc_flow.c',
59         'sfc_dp.c',
60         'sfc_ef10_rx.c',
61         'sfc_ef10_tx.c'
62 )
63
64 includes += include_directories('base')