summaryrefslogtreecommitdiffstats
path: root/src/locale/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /src/locale/meson.build
parentInitial commit. (diff)
downloadsystemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz
systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/locale/meson.build')
-rw-r--r--src/locale/meson.build62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/locale/meson.build b/src/locale/meson.build
new file mode 100644
index 0000000..3d3aa58
--- /dev/null
+++ b/src/locale/meson.build
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+systemd_localed_sources = files(
+ 'localed-util.c',
+ 'localed.c',
+ 'xkbcommon-util.c',
+)
+
+localectl_sources = files('localectl.c')
+
+# logind will load libxkbcommon.so dynamically on its own, but we still need to
+# specify where the headers are.
+if conf.get('HAVE_XKBCOMMON') == 1
+ libxkbcommon_deps = [
+ libdl,
+ libxkbcommon.partial_dependency(compile_args: true),
+ ]
+else
+ libxkbcommon_deps = []
+endif
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-localed',
+ 'dbus' : true,
+ 'conditions' : ['ENABLE_LOCALED'],
+ 'sources' : systemd_localed_sources,
+ 'dependencies' : libxkbcommon_deps,
+ },
+ executable_template + {
+ 'name' : 'localectl',
+ 'public' : true,
+ 'conditions' : ['ENABLE_LOCALED'],
+ 'sources' : files('localectl.c'),
+ },
+ test_template + {
+ 'sources' : files(
+ 'test-localed-util.c',
+ 'localed-util.c',
+ 'xkbcommon-util.c',
+ ),
+ 'dependencies' : libxkbcommon_deps,
+ },
+]
+
+# If you know a way that allows the same variables to be used
+# in sources list and concatenated to a string for test_env,
+# let me know.
+kbd_model_map = meson.current_source_dir() / 'kbd-model-map'
+language_fallback_map = meson.current_source_dir() / 'language-fallback-map'
+
+if conf.get('ENABLE_LOCALED') == 1
+ install_data('org.freedesktop.locale1.conf',
+ install_dir : dbuspolicydir)
+ install_data('org.freedesktop.locale1.service',
+ install_dir : dbussystemservicedir)
+ install_data('org.freedesktop.locale1.policy',
+ install_dir : polkitpolicydir)
+ install_data('kbd-model-map',
+ 'language-fallback-map',
+ install_dir : pkgdatadir)
+endif