net/af_xdp: introduce AF_XDP PMD
[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         pkgconfig_extra_libs += '-lbpf'
14 else
15         build = false
16 endif