summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-02-15 10:35:00 +1000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2024-05-24 14:08:14 +0000
commit29634510814edf6c66f903d146fad606eeba15a6 (patch)
tree84953d0a2bf1b5fb88ebdcd49877a28c415d5204
parent87336bb1c6bd987ca2db4ae34155d4cf9767e290 (diff)
types: add the custom types file
This file "exists" thanks to a rules file entry to make it possible for (non-libxkbcommon) users to install custom layouts with custom types. Let's add it here to remove some special-casing we would otherwise need in our generator scripts. It must never be installed by us though as this would overwrite user configuration.
-rw-r--r--meson.build4
-rw-r--r--types/custom2
2 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 389a9fed..2da9bca0 100644
--- a/meson.build
+++ b/meson.build
@@ -27,7 +27,9 @@ pkgconfig.generate(
# KcGST only need to be installed as-is
foreach dir: ['compat', 'geometry', 'keycodes', 'symbols', 'types']
- install_subdir(dir, install_dir: dir_xkb_base)
+ install_subdir(dir,
+ exclude_files: ['custom'],
+ install_dir: dir_xkb_base)
endforeach
# Rules are a bit more complicated
diff --git a/types/custom b/types/custom
new file mode 100644
index 00000000..700954da
--- /dev/null
+++ b/types/custom
@@ -0,0 +1,2 @@
+// This file must never be installed. If you find this
+// file installed by your distribution please file a bug.