]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/vm_power_manager/meson.build
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / examples / vm_power_manager / meson.build
index f98445bc6e054c294c4f3b1bee2d94a8de63c2e9..54e2b584f666b9a0647f8c1bb25cc9ff3087d0ca 100644 (file)
@@ -6,6 +6,13 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
+if not dpdk_conf.has('RTE_LIBRTE_POWER')
+       build = false
+       subdir_done()
+endif
+
+deps += ['power']
+
 if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
        deps += ['pmd_bnxt']
 endif
@@ -18,9 +25,7 @@ if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
        deps += ['pmd_ixgbe']
 endif
 
-deps += ['power']
-
-
+allow_experimental_apis = true
 sources = files(
        'channel_manager.c', 'channel_monitor.c', 'main.c', 'parse.c', 'power_manager.c', 'vm_power_cli.c'
 )