]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
locale: use include directory for libxkbcommon
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 04:02:07 +0000 (13:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 04:06:02 +0000 (13:06 +0900)
To support the case the headers are installed at an unusual place.

meson.build
src/locale/meson.build

index 1251ecf322d51c8ff04b92625ca5d5f1b3c30283..8bd21e64373c6f2b478a76054230c4fc6c662427 100644 (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',
index c41759168014f6576f578a7da0acb95950e57d5f..2994080d1f00a0b0e56267f60f29c3b8615d5326 100644 (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 = []