]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/locale/meson.build
po: add a copy of polkit its rules
[thirdparty/systemd.git] / src / locale / meson.build
1 systemd_localed_sources = files('''
2 localed.c
3 keymap-util.c
4 keymap-util.h
5 '''.split())
6
7 localectl_sources = files('localectl.c')
8
9 if conf.get('ENABLE_LOCALED') == 1
10 install_data('org.freedesktop.locale1.conf',
11 install_dir : dbuspolicydir)
12 install_data('org.freedesktop.locale1.service',
13 install_dir : dbussystemservicedir)
14
15 i18n.merge_file(
16 'org.freedesktop.locale1.policy',
17 input : 'org.freedesktop.locale1.policy.in',
18 output : 'org.freedesktop.locale1.policy',
19 po_dir : po_dir,
20 data_dirs : po_dir,
21 install : install_polkit,
22 install_dir : polkitpolicydir)
23 endif
24
25 # If you know a way that allows the same variables to be used
26 # in sources list and concatenated to a string for test_env,
27 # let me know.
28 kbd_model_map = join_paths(meson.current_source_dir(), 'kbd-model-map')
29 language_fallback_map = join_paths(meson.current_source_dir(), 'language-fallback-map')
30
31 if conf.get('ENABLE_LOCALED') == 1
32 install_data('kbd-model-map',
33 'language-fallback-map',
34 install_dir : pkgdatadir)
35 endif
36
37 tests += [
38 [['src/locale/test-keymap-util.c',
39 'src/locale/keymap-util.c',
40 'src/locale/keymap-util.h'],
41 [libshared],
42 [libdl]],
43 ]