]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: If expat is a submodule, explicitly disable its unit tests
authorSimon McVittie <smcv@collabora.com>
Fri, 28 Feb 2025 12:03:55 +0000 (12:03 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 28 Feb 2025 12:03:55 +0000 (12:03 +0000)
If we're falling back to building a local copy of expat, running or
debugging its unit tests is out-of-scope for maintenance of dbus.
In fact this is the default in the meson_options.txt provided by
WrapDB[1], but explicit is better than implicit.

[1] https://github.com/mesonbuild/wrapdb/blob/HEAD/subprojects/packagefiles/expat/meson_options.txt

Signed-off-by: Simon McVittie <smcv@collabora.com>
meson.build

index 97d14593f04f648f2e118866772f69faa21fa32c..2d8a1c6c78e7b3c967bdd296e08486daa812fc71 100644 (file)
@@ -396,7 +396,12 @@ endif
 use_glib = glib.found() and gio.found()
 
 if message_bus
-    expat = dependency('expat')
+    expat = dependency(
+        'expat',
+        default_options: [
+            'build_tests=false',
+        ],
+    )
 else
     expat = dependency('', required: false)
 endif