]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/locale/meson.build
Merge pull request #8529 from poettering/logind-fixlets
[thirdparty/systemd.git] / src / locale / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9 #
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 systemd_localed_sources = files('''
19 localed.c
20 keymap-util.c
21 keymap-util.h
22 '''.split())
23
24 localectl_sources = files('localectl.c')
25
26 if conf.get('ENABLE_LOCALED') == 1
27 install_data('org.freedesktop.locale1.conf',
28 install_dir : dbuspolicydir)
29 install_data('org.freedesktop.locale1.service',
30 install_dir : dbussystemservicedir)
31 install_data('org.freedesktop.locale1.policy',
32 install_dir : polkitpolicydir)
33 endif
34
35 # If you know a way that allows the same variables to be used
36 # in sources list and concatenated to a string for test_env,
37 # let me know.
38 kbd_model_map = join_paths(meson.current_source_dir(), 'kbd-model-map')
39 language_fallback_map = join_paths(meson.current_source_dir(), 'language-fallback-map')
40
41 if conf.get('ENABLE_LOCALED') == 1
42 install_data('kbd-model-map',
43 'language-fallback-map',
44 install_dir : pkgdatadir)
45 endif
46
47 tests += [
48 [['src/locale/test-keymap-util.c',
49 'src/locale/keymap-util.c',
50 'src/locale/keymap-util.h'],
51 [libshared],
52 [libdl]],
53 ]