[v3,3/8] build: make membership library optional

Message ID 20230623111508.786020-4-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 success coding style OK

Commit Message

Bruce Richardson June 23, 2023, 11:15 a.m. UTC
  This library is not essential for most DPDK uses, so mark it as optional
in the build config.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.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 379effd10b..9166a1f3d6 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -76,8 +76,6 @@  test_sources = files(
         'test_malloc.c',
         'test_malloc_perf.c',
         'test_mbuf.c',
-        'test_member.c',
-        'test_member_perf.c',
         'test_memcpy.c',
         'test_memcpy_perf.c',
         'test_memory.c',
@@ -227,7 +225,6 @@  fast_tests = [
         ['ipsec_autotest', true, true],
         ['kni_autotest', false, true],
         ['kvargs_autotest', true, true],
-        ['member_autotest', true, true],
         ['power_cpufreq_autotest', false, true],
         ['power_autotest', true, true],
         ['power_kvm_vm_autotest', false, true],
@@ -265,7 +262,6 @@  perf_test_names = [
         'timer_racecond_autotest',
         'efd_autotest',
         'hash_functions_autotest',
-        'member_perf_autotest',
         'efd_perf_autotest',
         'lpm6_perf_autotest',
         'rib6_slow_autotest',
@@ -379,6 +375,11 @@  if dpdk_conf.has('RTE_LIB_METRICS')
     test_sources += ['test_metrics.c']
     fast_tests += [['metrics_autotest', true, true]]
 endif
+if dpdk_conf.has('RTE_LIB_MEMBER')
+    test_sources += ['test_member.c', 'test_member_perf.c']
+    fast_tests += [['member_autotest', true, true]]
+    perf_test_names += 'member_perf_autotest'
+endif
 if not is_windows and dpdk_conf.has('RTE_LIB_TELEMETRY')
     test_sources += ['test_telemetry_json.c', 'test_telemetry_data.c']
     fast_tests += [['telemetry_json_autotest', true, true]]
diff --git a/lib/meson.build b/lib/meson.build
index 98a0672a04..de7069a078 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -82,6 +82,7 @@  optional_libs = [
         'kni',
         'jobstats',
         'latencystats',
+        'member',
         'metrics',
         'mldev',
         'node',