examples/l3fwd-power: use new telemetry
[dpdk.git] / examples / l3fwd-power / meson.build
index 61e8daa..e7c6be6 100644 (file)
@@ -1,12 +1,22 @@
 # SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2017 Intel Corporation
+# Copyright(c) 2018 Intel Corporation
 
 # meson file, for building this example as part of a main DPDK build.
 #
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-deps += ['power', 'timer', 'lpm', 'hash']
+if not dpdk_conf.has('RTE_LIBRTE_POWER')
+        build = false
+        subdir_done()
+endif
+
+allow_experimental_apis = true
+deps += ['power', 'timer', 'lpm', 'hash', 'metrics']
 sources = files(
-       'main.c'
+       'main.c', 'perf_core.c'
 )
+
+if dpdk_conf.has('RTE_LIBRTE_TELEMETRY')
+       deps += ['telemetry']
+endif