From d13a7c3cf8f6cae061100352f467cb00090243b5 Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 19 Aug 2026 15:45:03 +0800 Subject: [PATCH] build: add tags for packaging Add tags to mctp utilities, mctpd, and debug tools to allow packagers to easily select features. Tag debug tools as installable to allow them to be installed when needed by packagers. Bump minimum meson version to allow tagging. Signed-off-by: James Lee --- meson.build | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2607f74..a51cded 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ # project( 'mctp', 'c', - meson_version: '>= 0.59.0', + meson_version: '>= 0.60.0', version: 'v2.6', license: 'GPLv2', default_options: [ @@ -66,6 +66,7 @@ toml_dep = declare_dependency( executable('mctp', sources: ['src/mctp.c'] + netlink_sources + util_sources + ops_sources, install: true, + install_tag: 'utils', ) mctp_test = executable('test-mctp', @@ -75,19 +76,26 @@ mctp_test = executable('test-mctp', executable('mctp-req', sources: ['src/mctp-req.c'] + util_sources, + install: true, + install_tag: 'debug', ) executable('mctp-echo', sources: ['src/mctp-echo.c'] + util_sources, + install: true, + install_tag: 'debug', ) executable('mctp-bench', sources: ['src/mctp-bench.c'] + util_sources, + install: true, + install_tag: 'debug', ) executable('mctp-client', sources: ['src/mctp-client.c'] + util_sources, - install: true + install: true, + install_tag: 'utils', ) if libsystemd.found() @@ -98,6 +106,7 @@ if libsystemd.found() dependencies: [libsystemd, toml_dep, libcap], install: true, install_dir: get_option('sbindir'), + install_tag: 'mctpd', c_args: ['-DOPS_SD_EVENT=1'], )