net/bnxt: fix FW version query
[dpdk.git] / drivers / net / af_xdp / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Intel Corporation
3
4 sources = files('rte_eth_af_xdp.c')
5
6 bpf_dep = dependency('libbpf', required: false)
7 if not bpf_dep.found()
8         bpf_dep = cc.find_library('bpf', required: false)
9 endif
10
11 if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xdp.h')
12         ext_deps += bpf_dep
13 else
14         build = false
15         reason = 'missing dependency, "libbpf"'
16 endif