net/mlx5: fix meter policy flow match item
[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 deps += ['hash', 'common_mlx5', 'vhost', 'pci', 'eal', 'sched']
11 sources = files(
12         'mlx5_vdpa.c',
13         'mlx5_vdpa_mem.c',
14         'mlx5_vdpa_event.c',
15         'mlx5_vdpa_virtq.c',
16         'mlx5_vdpa_steer.c',
17         'mlx5_vdpa_lm.c',
18 )
19 cflags_options = [
20         '-std=c11',
21         '-Wno-strict-prototypes',
22         '-D_BSD_SOURCE',
23         '-D_DEFAULT_SOURCE',
24         '-D_XOPEN_SOURCE=600',
25 ]
26 foreach option:cflags_options
27     if cc.has_argument(option)
28         cflags += option
29     endif
30 endforeach
31
32 if get_option('buildtype').contains('debug')
33     cflags += [ '-pedantic', '-DPEDANTIC' ]
34 else
35     cflags += [ '-UPEDANTIC' ]
36 endif