blob: 8b81214e507b03211f4baa4b497028d5eb111edd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
if meson.is_cross_build()
pcap_dep = cc.find_library('pcap', required: false)
if pcap_dep.found()
ext_deps += pcap_dep
else
build = false
endif
else
pcap_dep = dependency('pcap', required: false)
if pcap_dep.found() == true
ext_deps += pcap_dep
elif find_program('pcap-config', required: false).found() == true
ext_deps += cc.find_library('pcap')
else
build = false
endif
endif
sources = files('rte_eth_pcap.c')
pkgconfig_extra_libs += '-lpcap'
|