9683022930
If Jansson was found, the headers list is overwritten when including
rte_metrics_telemetry.h, which prevents rte_metrics.h from being
installed. This is now fixed to add to headers, rather than overwrite,
to allow both headers be installed when Jansson is present.
Fixes: c5b7197f66
("telemetry: move some functions to metrics library")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
15 lines
420 B
Meson
15 lines
420 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)
|
|
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
|