summaryrefslogtreecommitdiffstats
path: root/src/seastar/dpdk/drivers/net/af_xdp/meson.build
blob: 7904840f0c388377a10775d90a7f65a88200a854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation

sources = files('rte_eth_af_xdp.c')

bpf_dep = dependency('libbpf', required: false)
if not bpf_dep.found()
	bpf_dep = cc.find_library('bpf', required: false)
endif

if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xdp.h')
	ext_deps += bpf_dep
	pkgconfig_extra_libs += '-lbpf'
else
	build = false
endif