添加 xkbcommon 支持

This commit is contained in:
2025-11-22 22:59:15 +08:00
parent edda316709
commit a6d6798714
13 changed files with 367 additions and 15 deletions

17
build-utils/atoms-extern.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
echo "/* This file is autogenerated by $0 - do not edit */"
echo
echo "#include <xcb/xproto.h>"
echo
while read atom
do
# 去掉首位空格
atom_clean=$(echo "$atom" | sed 's/^[[:space:]]*//;s/[[:space:]]$//')
# 跳过空行
if [[ -n "$atom_clean" ]]; then
echo "extern xcb_atom_t ${atom_clean};"
fi
done < "$1"