X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Faf_xdp%2Fmeson.build;h=3ed2b29784aacba141a165a83457472e89ca12f0;hb=cc9dbd9aacf12d2cd0bae3add60cd30ed64bee4d;hp=dce1230365b9dc50e7fceeda2c15abdc50e1a70f;hpb=b9d60b5434e9df46f53fc1e3aa4b065f261adb83;p=dpdk.git diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build index dce1230365..3ed2b29784 100644 --- a/drivers/net/af_xdp/meson.build +++ b/drivers/net/af_xdp/meson.build @@ -2,25 +2,26 @@ # Copyright(c) 2019 Intel Corporation if is_windows - build = false - reason = 'not supported on Windows' - subdir_done() + build = false + reason = 'not supported on Windows' + subdir_done() endif sources = files('rte_eth_af_xdp.c') -bpf_dep = dependency('libbpf', required: false) +bpf_dep = dependency('libbpf', required: false, method: 'pkg-config') if not bpf_dep.found() - bpf_dep = cc.find_library('bpf', required: false) + 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 - bpf_ver_dep = dependency('libbpf', version : '>=0.2.0', required: false) - if bpf_ver_dep.found() - dpdk_conf.set('RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM', 1) - endif + ext_deps += bpf_dep + bpf_ver_dep = dependency('libbpf', version : '>=0.2.0', + required: false, method: 'pkg-config') + if bpf_ver_dep.found() + dpdk_conf.set('RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM', 1) + endif else - build = false - reason = 'missing dependency, "libbpf"' + build = false + reason = 'missing dependency, "libbpf"' endif