test/spinlock: use compile atomics for lcores sync
[dpdk.git] / examples / vhost_crypto / meson.build
index 0f4876f..720f42d 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',
 )