xref: /dpdk/drivers/crypto/mlx5/meson.build (revision b4a4fb7e)
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
10fmt_name = 'mlx5_crypto'
11deps += ['common_mlx5', 'eal', 'cryptodev']
12sources = files(
13        'mlx5_crypto.c',
14        'mlx5_crypto_dek.c',
15)
16
17cflags_options = [
18        '-std=c11',
19        '-Wno-strict-prototypes',
20        '-D_BSD_SOURCE',
21        '-D_DEFAULT_SOURCE',
22        '-D_XOPEN_SOURCE=600',
23]
24foreach option:cflags_options
25    if cc.has_argument(option)
26        cflags += option
27    endif
28endforeach
29