examples/l3fwd-power: use new telemetry
[dpdk.git] / examples / l3fwd-power / meson.build
index 20c8054..e7c6be6 100644 (file)
@@ -6,10 +6,17 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-if host_machine.system() != 'linux'
-       build = false
+if not dpdk_conf.has('RTE_LIBRTE_POWER')
+        build = false
+        subdir_done()
 endif
-deps += ['power', 'timer', 'lpm', 'hash']
+
+allow_experimental_apis = true
+deps += ['power', 'timer', 'lpm', 'hash', 'metrics']
 sources = files(
        'main.c', 'perf_core.c'
 )
+
+if dpdk_conf.has('RTE_LIBRTE_TELEMETRY')
+       deps += ['telemetry']
+endif