locale: use include directory for libxkbcommon

To support the case the headers are installed at an unusual place.
This commit is contained in:
Yu Watanabe
2025-10-25 13:02:07 +09:00
parent 85fb6ad573
commit 5e385fe16e
2 changed files with 2 additions and 1 deletions

View File

@@ -1457,6 +1457,7 @@ conf.set10('HAVE_LIBARCHIVE_HARDLINK_IS_SET',
libxkbcommon = dependency('xkbcommon',
version : '>= 0.3.0',
required : get_option('xkbcommon'))
libxkbcommon_cflags = libxkbcommon.partial_dependency(includes: true, compile_args: true)
conf.set10('HAVE_XKBCOMMON', libxkbcommon.found())
libpcre2 = dependency('libpcre2-8',

View File

@@ -19,7 +19,7 @@ localectl_sources = files('localectl.c')
if conf.get('HAVE_XKBCOMMON') == 1
libxkbcommon_deps = [
libdl,
libxkbcommon.partial_dependency(compile_args: true),
libxkbcommon_cflags,
]
else
libxkbcommon_deps = []