Added new meson.build file for ZUC Exported dependency library path through meson_options.txt file
Signed-off-by: Hari Kumar Vemula <hari.kumarx.vem...@intel.com> --- drivers/crypto/meson.build | 2 +- drivers/crypto/zuc/meson.build | 18 ++++++++++++++++++ meson_options.txt | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/zuc/meson.build diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 4ed87c367..b45049ce3 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'kasumi', 'mvsam', - 'null', 'openssl', 'qat', 'scheduler', 'virtio'] + 'null', 'openssl', 'qat', 'scheduler', 'virtio', 'zuc'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' diff --git a/drivers/crypto/zuc/meson.build b/drivers/crypto/zuc/meson.build new file mode 100644 index 000000000..4fa5d9b8c --- /dev/null +++ b/drivers/crypto/zuc/meson.build @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +path = get_option('libsso_zuc_dir') +lib_dir = path + '/build' +inc_dir = path + '/include' + +lib = cc.find_library('libsso_zuc', dirs: lib_dir, required: false) +if not lib.found() + build = false +else + ext_deps += lib + includes += include_directories(inc_dir) +endif + +sources = files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c') + +deps += ['bus_vdev'] diff --git a/meson_options.txt b/meson_options.txt index 782213477..842b6c6de 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -28,3 +28,5 @@ option('lib_IPSec_MB', type: 'string', value: '', description: 'path to the IPSec_MB library installation directory') option('libsso_kasumi_dir', type: 'string', value: '', description: 'path to the KASUMI library installation directory') +option('libsso_zuc_dir', type: 'string', value: '', + description: 'path to the ZUC library installation directory') -- 2.13.6