Samples apps that depend on the power library should not build if
the power library is not present. So now the following apps will
check to see if it's built, else skip building.
* l3fwd-pwer
* vm_power_manager
* guest_cli
Fixes:
e0130788576f ("examples/power: support meson/ninja build")
Fixes:
89f0711f9ddf ("examples: build some samples with meson")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if not is_linux
- build = false
+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(
# 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']
sources = files(
# 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
deps += ['pmd_ixgbe']
endif
-deps += ['power']
-
-
sources = files(
'channel_manager.c', 'channel_monitor.c', 'main.c', 'parse.c', 'power_manager.c', 'vm_power_cli.c'
)