common/mlx5: fix doorbell mapping configuration
[dpdk.git] / drivers / regex / mlx5 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2020 Mellanox Technologies, Ltd
3
4 if not is_linux
5     build = false
6     reason = 'only supported on Linux'
7     subdir_done()
8 endif
9
10 deps += ['common_mlx5', 'eal', 'regexdev']
11 sources = files(
12         'mlx5_regex.c',
13         'mlx5_rxp.c',
14         'mlx5_regex_devx.c',
15         'mlx5_regex_control.c',
16         'mlx5_regex_fastpath.c',
17 )
18 cflags_options = [
19         '-std=c11',
20         '-Wno-strict-prototypes',
21         '-D_BSD_SOURCE',
22         '-D_DEFAULT_SOURCE',
23         '-D_XOPEN_SOURCE=600',
24 ]
25 foreach option:cflags_options
26     if cc.has_argument(option)
27         cflags += option
28     endif
29 endforeach