[3/3] examples/vhost_crypto: fix dependency on vhost library

Message ID 20190225152304.62607-4-bruce.richardson@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series small fixes for FreeBSD builds |

Checks

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

Commit Message

Bruce Richardson Feb. 25, 2019, 3:23 p.m. UTC
  The vhost_crypto example app can't be used without the DPDK vhost
library, so disable the build of the example if the lib hasn't been
built.

CC: stable@dpdk.org
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 examples/vhost_crypto/meson.build | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Maxime Coquelin Feb. 25, 2019, 4:24 p.m. UTC | #1
On 2/25/19 4:23 PM, Bruce Richardson wrote:
> The vhost_crypto example app can't be used without the DPDK vhost
> library, so disable the build of the example if the lib hasn't been
> built.
> 
> CC: stable@dpdk.org
> Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>   examples/vhost_crypto/meson.build | 1 +
>   1 file changed, 1 insertion(+)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime
  

Patch

diff --git a/examples/vhost_crypto/meson.build b/examples/vhost_crypto/meson.build
index daf19fb87..8e9860f03 100644
--- a/examples/vhost_crypto/meson.build
+++ b/examples/vhost_crypto/meson.build
@@ -6,6 +6,7 @@ 
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
+build = dpdk_conf.has('RTE_LIBRTE_VHOST')
 allow_experimental_apis = true
 deps += ['vhost', 'cryptodev']
 cflags += ['-D_FILE_OFFSET_BITS=64']