[dpdk-dev,4/6] test/test: fix dependency on power lib for BSD meson build

Message ID 20180131174249.257933-5-bruce.richardson@intel.com
State Superseded, archived
Delegated to: Bruce Richardson
Headers show


Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Jan. 31, 2018, 5:42 p.m.
The power library is not built on FreeBSD, so it needs to be an
optional rather than a mandatory dependency for building the autotest

Fixes: b5dc795a8a55 ("test: build app with meson as dpdk-test")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
 test/test/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


diff --git a/test/test/meson.build b/test/test/meson.build
index 2457a2adb..e8ddb76e3 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -111,7 +111,6 @@  test_deps = ['acl',
-	'power',
@@ -228,6 +227,9 @@  endif
 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
 	test_deps += 'pmd_ring'
+if dpdk_conf.has('RTE_LIBRTE_POWER')
+	test_deps += 'power'
 test_dep_objs = []
 foreach d:test_deps