crypto/snow3g: use IPsec library
[dpdk.git] / drivers / crypto / snow3g / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019-2020 Intel Corporation
3
4 IMB_required_ver = '0.53.0'
5 lib = cc.find_library('IPSec_MB', required: false)
6 if not lib.found()
7         build = false
8         reason = 'missing dependency, "libIPSec_MB"'
9 else
10         # version comes with quotes, so we split based on " and take the middle
11         imb_ver = cc.get_define('IMB_VERSION_STR',
12                 prefix : '#include<intel-ipsec-mb.h>').split('"')[1]
13
14         if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver))
15                 reason = 'IPSec_MB version >= @0@ is required, found version @1@'.format(
16                                 IMB_required_ver, imb_ver)
17                 build = false
18         endif
19
20 endif
21
22 allow_experimental_apis = true
23 ext_deps += lib
24 sources = files('rte_snow3g_pmd.c', 'rte_snow3g_pmd_ops.c')
25 deps += ['bus_vdev', 'cryptodev']