summaryrefslogtreecommitdiffstats
path: root/src/locale
diff options
context:
space:
mode:
authoruserwithuid <userwithuid@gmail.com>2017-04-27 19:47:04 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-27 19:47:04 +0200
commit1c9f131444693c6f863a66dc5b189df037e22ff7 (patch)
tree20a7fb407586010897aa41e520852a38c8e87382 /src/locale
parentMerge pull request #5818 from mbiebl/meson-no-libudev (diff)
downloadsystemd-1c9f131444693c6f863a66dc5b189df037e22ff7.tar.xz
systemd-1c9f131444693c6f863a66dc5b189df037e22ff7.zip
meson: do not install files from disabled features (#5811)
Mirror conditions from Makefile.am.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/meson.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/locale/meson.build b/src/locale/meson.build
index f722e0ed92..d03af4c0e2 100644
--- a/src/locale/meson.build
+++ b/src/locale/meson.build
@@ -27,9 +27,11 @@ endif
kbd_model_map = join_paths(meson.current_source_dir(), 'kbd-model-map')
language_fallback_map = join_paths(meson.current_source_dir(), 'language-fallback-map')
-install_data('kbd-model-map',
- 'language-fallback-map',
- install_dir : pkgdatadir)
+if conf.get('ENABLE_LOCALED', 0) == 1
+ install_data('kbd-model-map',
+ 'language-fallback-map',
+ install_dir : pkgdatadir)
+endif
tests += [
[['src/locale/test-keymap-util.c',