From 2f96664670c7196f4526006102a1cb80b95e441e Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Wed, 1 Oct 2025 21:09:17 +0900 Subject: [PATCH] build: fix build with libinput as a subproject Unfortunately, has_header_symbol() doesn't work with internal dependencies. Ref: https://github.com/mesonbuild/meson/issues/13553 --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d3ba14da..335bf629 100644 --- a/meson.build +++ b/meson.build @@ -127,7 +127,9 @@ conf_data.set10('HAVE_RSVG', have_rsvg) conf_data.set10('HAVE_LIBSFDO', have_libsfdo) foreach sym : ['LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY', 'LIBINPUT_CONFIG_3FG_DRAG_ENABLED_3FG'] - conf_data.set10('HAVE_' + sym, cc.has_header_symbol('libinput.h', sym, dependencies: input)) + has_sym = input.type_name() != 'internal' \ + and cc.has_header_symbol('libinput.h', sym, dependencies: input) + conf_data.set10('HAVE_' + sym, has_sym) endforeach if get_option('static_analyzer').enabled()