vdpa/mlx5: introduce Mellanox vDPA driver
[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', 'bus_pci', 'eal']
13 sources = files(
14         'mlx5_vdpa.c',
15 )
16 cflags_options = [
17         '-std=c11',
18         '-Wno-strict-prototypes',
19         '-D_BSD_SOURCE',
20         '-D_DEFAULT_SOURCE',
21         '-D_XOPEN_SOURCE=600'
22 ]
23 foreach option:cflags_options
24         if cc.has_argument(option)
25                 cflags += option
26         endif
27 endforeach
28
29 if get_option('buildtype').contains('debug')
30         cflags += [ '-pedantic', '-DPEDANTIC' ]
31 else
32         cflags += [ '-UPEDANTIC' ]
33 endif