From 1b6e5b491ae717eb096a7d4a68df9f772de577ae Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 13 Sep 2020 12:47:51 +0200 Subject: winkbd: Make Windows driver compileable with MingGW Automate the process via GitHub Actions as well. kbd.h can be simplified. Fixes #11. --- gen.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'gen.sh') diff --git a/gen.sh b/gen.sh index 490a198..5f4878d 100755 --- a/gen.sh +++ b/gen.sh @@ -108,9 +108,6 @@ rule report rule cp command = cp \$in \$out -rule cpR - command = cp -R \$in \$out - rule gz command = gzip -c \$in > \$out @@ -123,6 +120,9 @@ rule zipR rule render-winkbd command = lulua-render -l ar-lulua winkbd \$out +rule ninjaC + command = ninja -C \$dir + ### build targets ### build \$reportdir: mkdir build \$reportdir/fonts: mkdir @@ -142,9 +142,19 @@ build \$reportdir/fonts/IBMPlexSansArabic-Thin.woff2: cp \$fontdir/IBMPlexSansAr build \$osmconvert: configure-make 3rdparty/osmctools # windows drivers -build \$tempdir/winkbd: cpR lulua/data/winkbd +build \$tempdir/winkbd: mkdir lulua/data/winkbd +EOF +# Create dependencies for the non-customized files +for f in $(ls lulua/data/winkbd/); do + echo "build \$tempdir/winkbd/$f: cp lulua/data/winkbd/$f || \$tempdir/winkbd" + w64infiles+=" \$tempdir/winkbd/$f" +done +w64infiles+=" \$tempdir/winkbd/customization.h" +cat <