e30b4e566f
Whenever possible (if the library ships a pkg-config file) use meson's dependency() function to look for it, as it will automatically add it to the Requires.private list if needed, to allow for static builds to succeed for reverse dependencies of DPDK. Otherwise the recursive dependencies are not parsed, and users doing static builds have to resolve them manually by themselves. When using this API avoid additional checks that are superfluous and take extra time, and avoid adding the linker flag manually which causes it to be duplicated. Signed-off-by: Luca Boccassi <bluca@debian.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Bruce Richardson <bruce.richardson@intel.com>
15 lines
307 B
Meson
15 lines
307 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
dep = dependency('zlib', required: false)
|
|
build = dep.found()
|
|
ext_deps += dep
|
|
cflags += '-DZLIB_CONST'
|
|
sources = files('bnx2x.c',
|
|
'bnx2x_ethdev.c',
|
|
'bnx2x_rxtx.c',
|
|
'bnx2x_stats.c',
|
|
'bnx2x_vfpf.c',
|
|
'ecore_sp.c',
|
|
'elink.c')
|