build: make gpudev optional

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>
This commit is contained in:
Elena Agostini 2021-11-17 21:39:01 +00:00 committed by Thomas Monjalon
parent a750169c4f
commit f64b299cb3
2 changed files with 4 additions and 0 deletions

View 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
--------

View File

@ -67,6 +67,7 @@ libraries = [
optional_libs = [
'bitratestats',
'gpudev',
'gro',
'gso',
'kni',