X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fcrypto%2Fqat%2Fmeson.build;h=c7c7daf3ac304beb1432f51f005d434fcd32dec7;hb=5731efea6f5d22517ca7522ded896471a9a658a1;hp=7b904630b67832c36962d7d1192dd5dce7985a41;hpb=6c9457c27954f16d99f3798711eb253fbaf05fa3;p=dpdk.git diff --git a/drivers/crypto/qat/meson.build b/drivers/crypto/qat/meson.build index 7b904630b6..c7c7daf3ac 100644 --- a/drivers/crypto/qat/meson.build +++ b/drivers/crypto/qat/meson.build @@ -1,14 +1,32 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2017 Intel Corporation +# Copyright(c) 2017-2018 Intel Corporation -dep = dependency('libcrypto', required: false) -if not dep.found() - build = false +if is_windows + build = false + reason = 'not supported on Windows' + subdir_done() +endif + +# this does not build the QAT driver, instead that is done in the compression +# driver which comes later. Here we just add our sources files to the list +build = false +reason = '' # sentinal value to suppress printout +dep = dependency('libcrypto', required: false, method: 'pkg-config') +qat_includes += include_directories('.') +qat_deps += 'cryptodev' +qat_deps += 'net' +qat_deps += 'security' +if dep.found() + # Add our sources files to the list + qat_sources += files( + 'qat_asym.c', + 'qat_asym_pmd.c', + 'qat_sym.c', + 'qat_sym_hw_dp.c', + 'qat_sym_pmd.c', + 'qat_sym_session.c', + ) + qat_ext_deps += dep + qat_cflags += '-DBUILD_QAT_SYM' + qat_cflags += '-DBUILD_QAT_ASYM' endif -sources = files('qat_crypto.c', 'qat_qp.c', - 'qat_adf/qat_algs_build_desc.c', - 'rte_qat_cryptodev.c') -includes += include_directories('qat_adf') -deps += ['bus_pci'] -ext_deps += dep -pkgconfig_extra_libs += '-lcrypto'