a29052bfeb
The library libnfb is part of netcope-common which provides
a pkg-config file: netcope-common.pc.
Looking for this .pc file - with dependency() - is preferred
than looking for the library - with cc.find_library().
If the library is not installed in a standard path,
it can be found thanks to PKG_CONFIG_PATH variable.
The previous solution required to use CFLAGS and LDFLAGS
environment variables.
Fixes: 6435f9a0ac
("net/nfb: add new netcope driver")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Jan Remes <remes@netcope.com>
12 lines
373 B
Meson
12 lines
373 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2019 Cesnet
|
|
# Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
|
|
# All rights reserved.
|
|
|
|
dep = dependency('netcope-common', required: false)
|
|
reason = 'missing dependency, "libnfb"'
|
|
build = dep.found()
|
|
ext_deps += dep
|
|
|
|
sources = files('nfb_rx.c', 'nfb_tx.c', 'nfb_stats.c', 'nfb_ethdev.c', 'nfb_rxmode.c')
|