]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost_crypto/meson.build
test/spinlock: use compile atomics for lcores sync
[dpdk.git] / examples / vhost_crypto / meson.build
index 0f4876f06bb140dd94034c776d3c0418fb582d20..720f42dd702928d372e24c66bf21caa71c5b568e 100644 (file)
@@ -6,9 +6,13 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
+build = dpdk_conf.has('RTE_LIB_VHOST')
+if not build
+    subdir_done()
+endif
+
 allow_experimental_apis = true
 deps += ['vhost', 'cryptodev']
-cflags += ['-D_GNU_SOURCE','-D_FILE_OFFSET_BITS=64']
 sources = files(
-       'main.c'
+        'main.c',
 )