Rather than having the telemetry library depend on the metrics lib we invert the dependency so that metrics instead depends on telemetry lib, and registers the needed functions with it at init time. This prepares the way for a cleaner telemetry architecture to be applied in later patches. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Keith Wiles <keith.wiles@intel.com>
15 lines
419 B
Meson
15 lines
419 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
|