summaryrefslogtreecommitdiff
path: root/lib/librte_telemetry/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_telemetry/meson.build')
-rw-r--r--lib/librte_telemetry/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/librte_telemetry/meson.build b/lib/librte_telemetry/meson.build
index 7716076..7b93980 100644
--- a/lib/librte_telemetry/meson.build
+++ b/lib/librte_telemetry/meson.build
@@ -5,3 +5,10 @@ sources = files('rte_telemetry.c')
headers = files('rte_telemetry.h', 'rte_telemetry_internal.h')
deps += ['metrics', 'ethdev']
cflags += '-DALLOW_EXPERIMENTAL_API'
+
+jansson = cc.find_library('jansson', required: false)
+if jansson.found()
+ ext_deps += jansson
+else
+ build = false
+endif