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