xref: /dpdk/drivers/crypto/cnxk/meson.build (revision 26bb5c4de63effe12e8e52e12b1b1d292fcb2d72)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(C) 2021 Marvell.
3#
4
5if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
6    build = false
7    reason = 'only supported on 64-bit Linux'
8    subdir_done()
9endif
10
11sources = files(
12        'cn9k_cryptodev.c',
13        'cn9k_cryptodev_ops.c',
14        'cn9k_ipsec.c',
15        'cn10k_cryptodev.c',
16        'cn10k_cryptodev_ops.c',
17        'cn10k_cryptodev_sec.c',
18        'cn10k_ipsec.c',
19        'cn10k_tls.c',
20        'cnxk_cryptodev.c',
21        'cnxk_cryptodev_capabilities.c',
22        'cnxk_cryptodev_devargs.c',
23        'cnxk_cryptodev_ops.c',
24        'cnxk_cryptodev_sec.c',
25)
26
27headers = files('rte_pmd_cnxk_crypto.h')
28deps += ['bus_pci', 'common_cnxk', 'security', 'eventdev']
29includes += include_directories('../../../lib/net', '../../event/cnxk')
30
31if get_option('buildtype').contains('debug')
32    cflags += [ '-DLA_IPSEC_DEBUG','-DCNXK_CRYPTODEV_DEBUG' ]
33else
34    cflags += [ '-ULA_IPSEC_DEBUG','-UCNXK_CRYPTODEV_DEBUG' ]
35endif
36
37require_iova_in_mbuf = false
38