commit 2dcebc3b30166974480ba436f3cb9f89613253d2 parent 8c37a85268a3db8383f5440cfc7f16f9e41f6723 Author: Alexander Kojevnikov <alexander@kojevnikov.com> Date: Fri, 21 May 2010 19:06:58 +1000 [win] Embed the icon into .exe Diffstat:
M | win/make-win32.sh | | | 7 | ++++++- |
A | win/spek.rc | | | 2 | ++ |
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/win/make-win32.sh b/win/make-win32.sh @@ -11,7 +11,12 @@ pushd $(dirname $0)/.. rm -fr win/msi-data mkdir win/msi-data -CFLAGS="-mwindows" ./configure --prefix=${PWD}/win/msi-data && make && make install + +# Compile the resource file +windres win/spek.rc -O coff -o win/spek.res +mkdir src/win && cp win/spek.res src/win/ + +CFLAGS="-mwindows" LDFLAGS="win/spek.res" ./configure --prefix=${PWD}/win/msi-data && make && make install cd win/msi-data diff --git a/win/spek.rc b/win/spek.rc @@ -0,0 +1 @@ +0 ICON "spek.ico" +\ No newline at end of file