Meson can use cmake as a fallback for detecting packages, and this can lead to picking up 64-libs for 32-bit builds. To work around this, force the use of pkg-config only for detecting libcrypto, zlib, jansson and other package dependencies. Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Ruifeng Wang <ruifeng.wang@arm.com> Tested-by: Liron Himi <lironh@marvell.com> Tested-by: Lee Daly <lee.daly@intel.com> Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com> Tested-by: Martin Spinler <spinler@cesnet.cz>
15 lines
442 B
Meson
15 lines
442 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
sources = files('rte_metrics.c')
|
|
headers = files('rte_metrics.h')
|
|
|
|
jansson = dependency('jansson', required: false, method: 'pkg-config')
|
|
if jansson.found()
|
|
ext_deps += jansson
|
|
sources += files('rte_metrics_telemetry.c')
|
|
headers += files('rte_metrics_telemetry.h')
|
|
deps += ['ethdev', 'telemetry']
|
|
includes += include_directories('../librte_telemetry')
|
|
endif
|