event/octeontx2: add crypto adapter datapath
[dpdk.git] / drivers / crypto / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (C) 2019 Marvell International Ltd.
3
4 if not is_linux
5         build = false
6         reason = 'only supported on Linux'
7 endif
8
9 deps += ['bus_pci']
10 deps += ['common_cpt']
11 deps += ['common_octeontx2']
12 deps += ['ethdev']
13 deps += ['eventdev']
14 deps += ['security']
15 name = 'octeontx2_crypto'
16
17 sources = files('otx2_cryptodev.c',
18                 'otx2_cryptodev_capabilities.c',
19                 'otx2_cryptodev_hw_access.c',
20                 'otx2_cryptodev_mbox.c',
21                 'otx2_cryptodev_ops.c',
22                 'otx2_cryptodev_sec.c')
23
24 extra_flags = []
25 # This integrated controller runs only on a arm64 machine, remove 32bit warnings
26 if not dpdk_conf.get('RTE_ARCH_64')
27         extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
28 endif
29
30 foreach flag: extra_flags
31         if cc.has_argument(flag)
32                 cflags += flag
33         endif
34 endforeach
35
36 includes += include_directories('../../common/cpt')
37 includes += include_directories('../../common/octeontx2')
38 includes += include_directories('../../crypto/octeontx2')
39 includes += include_directories('../../mempool/octeontx2')
40 includes += include_directories('../../net/octeontx2')