92e0ed65651a9e8da03056a253d3da24af726710
[dpdk.git] / drivers / crypto / qat / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2018 Intel Corporation
3
4 # this does not build the QAT driver, instead that is done in the compression
5 # driver which comes later. Here we just add our sources files to the list
6 build = false
7 reason = '' # sentinal value to suppress printout
8 dep = dependency('libcrypto', required: false, method: 'pkg-config')
9 qat_includes += include_directories('.')
10 qat_deps += 'cryptodev'
11 qat_deps += 'net'
12 qat_deps += 'security'
13 if dep.found()
14         # Add our sources files to the list
15         qat_sources += files('qat_sym_pmd.c',
16                              'qat_sym.c',
17                              'qat_sym_session.c',
18                              'qat_sym_hw_dp.c',
19                              'qat_asym_pmd.c',
20                              'qat_asym.c')
21         qat_ext_deps += dep
22         qat_cflags += '-DBUILD_QAT_SYM'
23         qat_cflags += '-DBUILD_QAT_ASYM'
24 endif