aboutsummaryrefslogtreecommitdiffstats
path: root/mkwin
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-09-20 01:16:48 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-09-20 01:16:48 -0700
commitd096d75439654a12a2eacee517fca2c24e6a1775 (patch)
treeff8684129ca9a4ca10a8523e460482ee42333b3c /mkwin
parent8259fd159a37cac082d6687bbe176768fc0cc036 (diff)
downloadabc80sim-d096d75439654a12a2eacee517fca2c24e6a1775.tar.gz
abc80sim-d096d75439654a12a2eacee517fca2c24e6a1775.tar.xz
abc80sim-d096d75439654a12a2eacee517fca2c24e6a1775.zip
mkwin: very simple script to make a Win64 binary
Diffstat (limited to 'mkwin')
-rwxr-xr-xmkwin22
1 files changed, 22 insertions, 0 deletions
diff --git a/mkwin b/mkwin
new file mode 100755
index 0000000..740bd09
--- /dev/null
+++ b/mkwin
@@ -0,0 +1,22 @@
+#!/bin/bash -xe
+
+project=abc80sim
+target=x86_64-w64-mingw32
+dlldir="/usr/$target/sys-root/mingw/bin"
+
+./autogen.sh
+./configure --host="$target"
+make clean
+make -j
+ver="$(sed -r -e 's/^.*\"(.*)\".*$/\1/p' -e d < patchlevel.h)"
+mkdir -p win/"$project-$ver"
+cd win/"$project-$ver"
+cp ../../abc80.exe .
+todos < ../../HELP.txt > HELP.txt
+todos < ../../README > README.txt
+for d in SDL.dll libwinpthread-1.dll libpng16-16.dll zlib1.dll; do
+ cp "$dlldir"/"$d" .
+done
+cd ..
+zip -9r -o "$project-$ver-win64.zip" "$project-$ver"
+