build: make gpudev optional
authorElena Agostini <eagostini@nvidia.com>
Wed, 17 Nov 2021 21:39:01 +0000 (21:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Nov 2021 17:16:57 +0000 (18:16 +0100)
This library can be made optional.
drivers/gpu and app/test-gpudev depend on this library,
so they are automatically disabled if the lib is disabled.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
doc/guides/prog_guide/gpudev.rst
lib/meson.build

index e464109..ff46268 100644 (file)
@@ -23,6 +23,9 @@ Out of scope of this library is to provide a wrapper for GPU specific libraries
 on the device or create GPU specific objects
 (e.g. CUDA Driver context or CUDA Streams in case of NVIDIA GPUs).
 
+This library is optional in DPDK
+and can be disabled with ``-Ddisable_libs=gpudev``.
+
 
 Features
 --------
index dad9fce..018976d 100644 (file)
@@ -67,6 +67,7 @@ libraries = [
 
 optional_libs = [
         'bitratestats',
+        'gpudev',
         'gro',
         'gso',
         'kni',