[PATCH BlueZ v9 11/15] build: Only build gdbus library if there is a user

Bastien Nocera
2026-04-24T09:13:44Z

---
meson.build | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index b00e378d04ca..e034cdf80fb9 100644
--- a/meson.build
+++ b/meson.build
@@ -259,7 +259,9 @@ configure_file(
)

subdir('lib')
-subdir('gdbus')
+if not get_option('tools').disabled() or get_option('client').enabled() or get_option('obex').enabled() or not get_option('tests').disabled() or not get_option('daemon').disabled()
+ subdir('gdbus')
+endif
subdir('attrib')
subdir('btio')
subdir('plugins')
--
2.53.0