vdpa/mlx5: disable RoCE
[dpdk.git] / drivers / vdpa / mlx5 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2019 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 fmt_name = 'mlx5_vdpa'
11 allow_experimental_apis = true
12 deps += ['hash', 'common_mlx5', 'vhost', 'pci', 'bus_pci', 'eal', 'sched']
13 sources = files(
14         'mlx5_vdpa.c',
15         'mlx5_vdpa_mem.c',
16         'mlx5_vdpa_event.c',
17         'mlx5_vdpa_virtq.c',
18         'mlx5_vdpa_steer.c',
19         'mlx5_vdpa_lm.c',
20 )
21 cflags_options = [
22         '-std=c11',
23         '-Wno-strict-prototypes',
24         '-D_BSD_SOURCE',
25         '-D_DEFAULT_SOURCE',
26         '-D_XOPEN_SOURCE=600'
27 ]
28 foreach option:cflags_options
29         if cc.has_argument(option)
30                 cflags += option
31         endif
32 endforeach
33
34 if get_option('buildtype').contains('debug')
35         cflags += [ '-pedantic', '-DPEDANTIC' ]
36 else
37         cflags += [ '-UPEDANTIC' ]
38 endif