summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2017-10-11 18:03:45 -0400
committerAdam Jackson <ajax@redhat.com>2017-10-12 12:14:47 -0400
commit10cba7d54668698741510374ee63dec7a3cc3647 (patch)
tree67ba2c8979c5d348183bf2ab893b1a9a5d63a9a0 /meson.build
parentb747da5e25be944337a9cd1415506fc06b70aa81 (diff)
meson: Add xkb_bin_dir option
Now that we can actually configure all of the directories xkb uses for finding things, we can (finally, but only with meson) finally make it so that with the correct meson configuration the Xserver will "just work" without any additional changes to the installation prefix after building. For the people like me who have since scripted this part out of their build process and forgotten about it, building and installing the X server into a non-standard prefix has always required the following (or something else that makes sure that X has a valid xkbcomp configuration) commands be run right after doing the installation: # start in root of prefix you installed X to mkdir -pv share/X11/xkb/rules ln -s /usr/share/X11/xkb/rules/evdev share/X11/xkb/rules/ rm -f bin/xkbcomp ln -s /usr/bin/xkbcomp bin/ The one last piece of getting rid of this post-install junk is making sure that we can control the directory that X uses for finding the xkbcomp binary from meson so we can point it at the system provided xkbcomp (/usr/bin/xkbcomp or similar). So, this patch adds a configuration option for controlling this called xkb_bin_dir. Signed-off-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index d71cfed5a..f9b21b36c 100644
--- a/meson.build
+++ b/meson.build
@@ -107,6 +107,11 @@ if xkb_output_dir == ''
xkb_output_dir = join_paths(get_option('prefix'), 'share/X11/xkb/compiled')
endif
+xkb_bin_dir = get_option('xkb_bin_dir')
+if xkb_bin_dir == ''
+ xkb_bin_dir = join_paths(get_option('prefix'), get_option('bindir'))
+endif
+
hal_option = get_option('hal')
glamor_option = get_option('glamor')