numam-dpdk/lib/librte_metrics
Jie Zhou 88f4450ab2 metrics: export telemetry stubs if no libjansson
This patch allows the same set of rte_metrics_tel_* functions to be
exported no matter JANSSON is available or not, by doing following:
1.	Leverage dpdk_conf to set configuration flag RTE_HAS_JANSSON
when Jansson dependency is found.
2.	In rte_metrics_telemetry.c, leverage RTE_HAS_JANSSON to handle the
case when JANSSON is not available by adding stubs for all the instances.
3.	In meson.build, per dpdk/doc/guides/rel_notes/release_20_05.rst,
it is claimed that "Telemetry library is no longer dependent on the
external Jansson library, which allows Telemetry be enabled by default.",
thus make the deps and includes of Telemetry as not conditional anymore.

Signed-off-by: Jie Zhou <jizh@microsoft.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
2021-03-16 10:08:06 +01:00
..
meson.build metrics: export telemetry stubs if no libjansson 2021-03-16 10:08:06 +01:00
rte_metrics_telemetry.c metrics: export telemetry stubs if no libjansson 2021-03-16 10:08:06 +01:00
rte_metrics_telemetry.h metrics: export telemetry stubs if no libjansson 2021-03-16 10:08:06 +01:00
rte_metrics.c metrics: fix library cleanup 2020-05-19 14:05:21 +02:00
rte_metrics.h telemetry: invert dependency on metrics library 2020-05-10 23:52:00 +02:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00