xref: /dpdk/drivers/crypto/mlx5/meson.build (revision 04da07e6fa60639702edc2ff79511eb307567592)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright (c) 2021 NVIDIA Corporation & Affiliates
3
4if not (is_linux or is_windows)
5    build = false
6    reason = 'only supported on Linux and Windows'
7    subdir_done()
8endif
9
10deps += ['common_mlx5', 'eal', 'cryptodev']
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_crypto.c',
18        'mlx5_crypto_xts.c',
19        'mlx5_crypto_gcm.c',
20        'mlx5_crypto_dek.c',
21)
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