examples/vm_power: fix no port in guest
[dpdk.git] / examples / vm_power_manager / guest_cli / meson.build
index 9e821ce..8c72542 100644 (file)
@@ -6,9 +6,10 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-# Setting the name here because the default name will conflict with the
-# vm_power_manager app because of the way the directories are parsed.
-name = 'guest_cli'
+if not dpdk_conf.has('RTE_LIBRTE_POWER')
+        build = false
+        subdir_done()
+endif
 
 deps += ['power']
 
@@ -16,6 +17,8 @@ sources = files(
        'main.c', 'parse.c', 'vm_power_cli_guest.c'
 )
 
+allow_experimental_apis = true
+
 opt_dep = cc.find_library('virt', required : false)
 build = opt_dep.found()
 ext_deps += opt_dep