common/mlx5: remove NDEBUG
[dpdk.git] / drivers / net / mlx5 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2018 6WIND S.A.
3 # Copyright 2018 Mellanox Technologies, Ltd
4
5 if not is_linux
6         build = false
7         reason = 'only supported on Linux'
8         subdir_done()
9 endif
10
11 allow_experimental_apis = true
12 deps += ['hash', 'common_mlx5']
13 sources = files(
14         'mlx5.c',
15         'mlx5_ethdev.c',
16         'mlx5_flow.c',
17         'mlx5_flow_meter.c',
18         'mlx5_flow_dv.c',
19         'mlx5_flow_verbs.c',
20         'mlx5_mac.c',
21         'mlx5_mr.c',
22         'mlx5_rss.c',
23         'mlx5_rxmode.c',
24         'mlx5_rxq.c',
25         'mlx5_rxtx.c',
26         'mlx5_mp.c',
27         'mlx5_stats.c',
28         'mlx5_trigger.c',
29         'mlx5_txq.c',
30         'mlx5_vlan.c',
31         'mlx5_utils.c',
32         'mlx5_socket.c',
33 )
34 if (dpdk_conf.has('RTE_ARCH_X86_64')
35         or dpdk_conf.has('RTE_ARCH_ARM64')
36         or dpdk_conf.has('RTE_ARCH_PPC_64'))
37         sources += files('mlx5_rxtx_vec.c')
38 endif
39 cflags_options = [
40         '-std=c11',
41         '-Wno-strict-prototypes',
42         '-D_BSD_SOURCE',
43         '-D_DEFAULT_SOURCE',
44         '-D_XOPEN_SOURCE=600'
45 ]
46 foreach option:cflags_options
47         if cc.has_argument(option)
48                 cflags += option
49         endif
50 endforeach
51 if get_option('buildtype').contains('debug')
52         cflags += [ '-pedantic', '-DPEDANTIC' ]
53 else
54         cflags += [ '-UPEDANTIC' ]
55 endif