]> git.droids-corp.org - dpdk.git/commitdiff
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 e464109d35f2ef97efae7e3d03d8b3cfb282bad6..ff4626812becda59fed854d92fc242f52ac8104a 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).
 
 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
 --------
 
 Features
 --------
index dad9fce14d02e5429fb9ac7a06f7cc25597a89ea..018976df17f6632daea198a19358b9e4e9a0728f 100644 (file)
@@ -67,6 +67,7 @@ libraries = [
 
 optional_libs = [
         'bitratestats',
 
 optional_libs = [
         'bitratestats',
+        'gpudev',
         'gro',
         'gso',
         'kni',
         'gro',
         'gso',
         'kni',