xref: /dpdk/drivers/regex/mlx5/meson.build (revision b7b8de26f34d39c8aaded44d8a468da5e68f19da)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright 2020 Mellanox Technologies, Ltd
3
4if not is_linux
5    build = false
6    reason = 'only supported on Linux'
7    subdir_done()
8endif
9
10deps += ['common_mlx5', 'eal']
11if not dpdk_conf.has('RTE_COMMON_MLX5')
12    # avoid referencing undefined variables from common/mlx5
13    subdir_done()
14endif
15
16sources = files(
17        'mlx5_regex.c',
18        'mlx5_rxp.c',
19        'mlx5_regex_devx.c',
20        'mlx5_regex_control.c',
21        'mlx5_regex_fastpath.c',
22)
23cflags_options = [
24        '-std=c11',
25        '-Wno-strict-prototypes',
26        '-D_BSD_SOURCE',
27        '-D_DEFAULT_SOURCE',
28        '-D_XOPEN_SOURCE=600',
29]
30foreach option:cflags_options
31    if cc.has_argument(option)
32        cflags += option
33    endif
34endforeach
35
36require_iova_in_mbuf = false
37