[v3,7/8] build: make most device classes optional

Message ID 20230814182104.470270-8-bruce.richardson@intel.com (mailing list archive)
State New
Headers
Series [v3,1/8] app/test: add new macros for various test types |

Commit Message

Bruce Richardson Aug. 14, 2023, 6:21 p.m. UTC
  Apart from ethdev and cryptodev, which have lots of components and tests
which depend on them, we can make the device class libraries optional
without too much work.

This patch marks:
* bbdev,
* compressdev,
* dmadev,
* eventdev,
* mldev,
* rawdev,
* regexdev
optional, and ensures that DPDK - including tests - can be built with
these components disabled.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 lib/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
  

Patch

diff --git a/lib/meson.build b/lib/meson.build
index 92cbd6bb66..1a78c8c984 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -67,8 +67,12 @@  libraries = [
 ]
 
 optional_libs = [
+        'bbdev',
         'bitratestats',
         'cfgfile',
+        'compressdev',
+        'dmadev',
+        'eventdev',
         'gpudev',
         'graph',
         'gro',
@@ -76,11 +80,14 @@  optional_libs = [
         'jobstats',
         'latencystats',
         'metrics',
+        'mldev',
         'node',
         'pdump',
         'pipeline',
         'port',
         'power',
+        'rawdev',
+        'regexdev',
         'table',
         'vhost',
 ]