1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
4 IMB_required_ver = '0.52.0'
5 lib = cc.find_library('IPSec_MB', required: false)
8 reason = 'missing dependency, "libIPSec_MB"'
12 # version comes with quotes, so we split based on " and take the middle
13 imb_ver = cc.get_define('IMB_VERSION_STR',
14 prefix : '#include<intel-ipsec-mb.h>').split('"')[1]
16 if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver))
17 reason = 'IPSec_MB version >= @0@ is required, found version @1@'.format(
18 IMB_required_ver, imb_ver)
24 sources = files('rte_aesni_mb_pmd.c', 'rte_aesni_mb_pmd_ops.c')
25 allow_experimental_apis = true