[5/7] build: make distributor library optional

Message ID 20230622134840.3225975-6-bruce.richardson@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series expand list of optional libraries |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Bruce Richardson June 22, 2023, 1:48 p.m. UTC
  Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 app/test/meson.build | 9 +++++----
 lib/meson.build      | 1 +
 2 files changed, 6 insertions(+), 4 deletions(-)
  

Patch

diff --git a/app/test/meson.build b/app/test/meson.build
index ab5bd370bf..749e929945 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -38,8 +38,6 @@  test_sources = files(
         'test_cycles.c',
         'test_debug.c',
         'test_devargs.c',
-        'test_distributor.c',
-        'test_distributor_perf.c',
         'test_eal_flags.c',
         'test_eal_fs.c',
         'test_errno.c',
@@ -216,7 +214,6 @@  fast_tests = [
         ['user_delay_us', true, true],
         ['version_autotest', true, true],
         ['crc_autotest', true, true],
-        ['distributor_autotest', false, true],
         ['fbarray_autotest', true, true],
         ['hash_readwrite_func_autotest', false, true],
         ['ipsec_autotest', true, true],
@@ -265,7 +262,6 @@  perf_test_names = [
         'rcu_qsbr_perf_autotest',
         'red_perf',
         'pie_perf',
-        'distributor_perf_autotest',
         'pmd_perf_autotest',
         'service_perf_autotest',
         'stack_perf_autotest',
@@ -366,6 +362,11 @@  if dpdk_conf.has('RTE_LIB_FLOW_CLASSIFY')
     test_sources += 'test_flow_classify.c'
     fast_tests += [['flow_classify_autotest', false, true]]
 endif
+if dpdk_conf.has('RTE_LIB_DISTRIBUTOR')
+    test_sources += ['test_distributor.c', 'test_distributor_perf.c']
+    fast_tests += [['distributor_autotest', false, true]]
+    perf_test_names += 'distributor_perf_autotest'
+endif
 if dpdk_conf.has('RTE_LIB_EFD')
     test_sources += ['test_efd.c', 'test_efd_perf.c']
     perf_test_names += ['efd_autotest', 'efd_perf_autotest']
diff --git a/lib/meson.build b/lib/meson.build
index 7de3b0d32c..ce147a0766 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -73,6 +73,7 @@  optional_libs = [
         'bpf',
         'cfgfile',
         'compressdev',
+        'distributor',
         'dmadev',
         'efd',
         'eventdev',