]> git.droids-corp.org - dpdk.git/commitdiff
examples/power: fix FreeBSD meson lib dependency
authorDavid Hunt <david.hunt@intel.com>
Fri, 12 Jul 2019 09:06:51 +0000 (10:06 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 12 Jul 2019 09:26:55 +0000 (10:26 +0100)
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>
examples/l3fwd-power/meson.build
examples/vm_power_manager/guest_cli/meson.build
examples/vm_power_manager/meson.build

index b38a7a0d758ffbfe3ea01391020a7955dd09a573..d5a3d4bb2fb99301313c8fabf25d4cc94ba0c167 100644 (file)
@@ -6,9 +6,11 @@
 # 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(
index 9e821ceb803fca2743e25e735d4021e6e557714f..38bd8d837883cf1fe31d334615dbc330548b8d26 100644 (file)
 # 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(
index f98445bc6e054c294c4f3b1bee2d94a8de63c2e9..20a4a05b3bd23ebf3686cb491fc297cf67a62aa8 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,6 @@ if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
        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'
 )