xref: /dpdk/drivers/compress/mlx5/meson.build (revision b6883b9c91dd950f2d718aa9f4e68d1256945c18)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright 2021 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', 'compressdev']
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_compress.c',
18)
19cflags_options = [
20        '-std=c11',
21        '-Wno-strict-prototypes',
22        '-D_BSD_SOURCE',
23        '-D_DEFAULT_SOURCE',
24        '-D_XOPEN_SOURCE=600',
25]
26foreach option:cflags_options
27    if cc.has_argument(option)
28        cflags += option
29    endif
30endforeach
31
32require_iova_in_mbuf = false
33