Debian Codegraph @

src/locale/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if conf.get('ENABLE_LOCALED') != 1
4 subdir_done()
5 endif
6
7 systemd_localed_sources = files(
8 'localed.c'
9 )
10 systemd_localed_extract_sources = files(
11 'localed-util.c',
12 'xkbcommon-util.c',
13 )
14
15 localectl_sources = files('localectl.c')
16
17 # logind will load libxkbcommon.so dynamically on its own, but we still need to
18 # specify where the headers are.
19 if conf.get('HAVE_XKBCOMMON') == 1
20 libxkbcommon_deps = [
21 libxkbcommon_cflags,
22 ]
23 else
24 libxkbcommon_deps = []
25 endif
26
27 executables += [
28 libexec_template + {
29 'name' : 'systemd-localed',
30 'dbus' : true,
31 'sources' : systemd_localed_sources,
32 'extract' : systemd_localed_extract_sources,
33 'dependencies' : libxkbcommon_deps,
34 },
35 executable_template + {
36 'name' : 'localectl',
37 'public' : true,
38 'sources' : files('localectl.c'),
39 },
40 test_template + {
41 'sources' : files('test-localed-util.c'),
42 'objects' : ['systemd-localed'],
43 'dependencies' : libxkbcommon_deps,
44 },
45 ]
46
47 # If you know a way that allows the same variables to be used
48 # in sources list and concatenated to a string for test_env,
49 # let me know.
50 kbd_model_map = meson.current_source_dir() / 'kbd-model-map'
51 language_fallback_map = meson.current_source_dir() / 'language-fallback-map'
52
53 install_data('org.freedesktop.locale1.conf',
54 install_dir : dbuspolicydir)
55 install_data('org.freedesktop.locale1.service',
56 install_dir : dbussystemservicedir)
57 install_data('org.freedesktop.locale1.policy',
58 install_dir : polkitpolicydir)
59 install_data('kbd-model-map',
60 'language-fallback-map',
61 install_dir : pkgdatadir)