common/mlx5: move netlink files under Linux directory
[dpdk.git] / drivers / common / mlx5 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2019 Mellanox Technologies, Ltd
3
4 if not (is_linux or is_windows)
5         build = false
6         reason = 'only supported on Linux and Windows'
7         subdir_done()
8 endif
9
10 allow_experimental_apis = true
11
12 deps += ['hash', 'pci', 'net', 'eal', 'kvargs']
13 sources += files(
14         'mlx5_devx_cmds.c',
15         'mlx5_common.c',
16         'mlx5_common_mp.c',
17         'mlx5_common_mr.c',
18 )
19
20 cflags_options = [
21         '-std=c11',
22         '-Wno-strict-prototypes',
23         '-D_BSD_SOURCE',
24         '-D_DEFAULT_SOURCE',
25         '-D_XOPEN_SOURCE=600'
26 ]
27 foreach option:cflags_options
28         if cc.has_argument(option)
29                 cflags += option
30         endif
31 endforeach
32 if get_option('buildtype').contains('debug')
33         cflags += [ '-pedantic', '-DPEDANTIC' ]
34 else
35         cflags += [ '-UPEDANTIC' ]
36 endif
37
38 subdir(exec_env)