eal/windows: add missing SPDX license tag
[dpdk.git] / drivers / crypto / armv8 / meson.build
index 6ecb78b..027173b 100644 (file)
@@ -1,25 +1,13 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019 Arm Limited
 
-path = get_option('armv8_crypto_dir')
-if path == ''
+dep = dependency('libAArch64crypto', required: false, method: 'pkg-config')
+if not dep.found()
        build = false
-       reason = 'missing dependency, "armv8_crypto"'
+       reason = 'missing dependency, "libAArch64crypto"'
        subdir_done()
 endif
 
-inc_dir = path
-
-lib = cc.find_library('libAArch64crypto', dirs: [path], required: false)
-if not lib.found()
-       build = false
-       reason = 'missing dependency, "AArch64crypto"'
-       subdir_done()
-else
-       ext_deps += lib
-       includes += include_directories(inc_dir)
-endif
-
+ext_deps += dep
 deps += ['bus_vdev']
 sources = files('rte_armv8_pmd.c', 'rte_armv8_pmd_ops.c')
-allow_experimental_apis = true