summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/winres/compile
blob: 772571fbe50e1efceec156ed5a02686d38881bb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

rm -- winres.exe
i686-w64-mingw32-windres -i winres.rc -o resource.res -O coff
i686-w64-mingw32-gcc -Wall -Wextra -pedantic -Wno-unused-parameter -std=c99 -Os -Wl,--subsystem,windows -o winres.exe winres.c resource.res -lole32 -luuid -lgdi32 -lws2_32 -lshell32 -lmpr
rm -- resource.res
if strip winres.exe; then
	echo "Successfully created winres.exe"
	echo "It has NOT been moved to data/.../openslx.exe"
else
	echo "FAIL FAIL FAIL no EXE generated!"
fi