1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2021 Intel Corporation
6 reason = 'not supported on Windows'
10 IMB_required_ver = '1.0.0'
11 lib = cc.find_library('IPSec_MB', required: false)
14 reason = 'missing dependency, "libIPSec_MB"'
18 # version comes with quotes, so we split based on " and take the middle
19 imb_ver = cc.get_define('IMB_VERSION_STR',
20 prefix : '#include<intel-ipsec-mb.h>').split('"')[1]
22 if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver))
23 reason = 'IPSec_MB version >= @0@ is required, found version @1@'.format(
24 IMB_required_ver, imb_ver)
39 deps += ['bus_vdev', 'net', 'security']