From b19f927f967f50aecd64913dc37ee92085919644 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 16 May 2020 09:27:05 +0200 Subject: [PATCH] meson: error out if introspection is enabled but gobject isn't In case a user passed -Dintrospection=enabled the build would just ignore it by default because gobject defaults to disabled and the introspection build gets skipped. Instead, if introspection is explicitly enabled but gobject is for some reason missing error out. Fixes #2404 --- src/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/meson.build b/src/meson.build index 5193269b6..6ccc51ce6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -657,6 +657,10 @@ if have_gobject install_headers(hb_gobject_headers, subdir: meson.project_name()) else + if get_option('introspection').enabled() + error('introspection requires gobject to be enabled') + endif + libharfbuzz_gobject_dep = dependency('', required: false) endif