From f64b299cb341284a1ddff21501979fb08e077d10 Mon Sep 17 00:00:00 2001 From: Elena Agostini Date: Wed, 17 Nov 2021 21:39:01 +0000 Subject: [PATCH] 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 --- doc/guides/prog_guide/gpudev.rst | 3 +++ lib/meson.build | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/guides/prog_guide/gpudev.rst b/doc/guides/prog_guide/gpudev.rst index e464109d35..ff4626812b 100644 --- a/doc/guides/prog_guide/gpudev.rst +++ b/doc/guides/prog_guide/gpudev.rst @@ -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 -------- diff --git a/lib/meson.build b/lib/meson.build index dad9fce14d..018976df17 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -67,6 +67,7 @@ libraries = [ optional_libs = [ 'bitratestats', + 'gpudev', 'gro', 'gso', 'kni', -- 2.39.5