Permalink
Browse files

icon for windows gui app

  • Loading branch information...
1 parent 3142340 commit b4c3eb4cae15690bff787ba264aaf514dd06e913 @stg committed May 31, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. BIN bin-win/gui.exe
  3. BIN res/icon.ico
  4. BIN res/icon.png
  5. +1 −0 res/windows.rc
  6. +4 −2 win-gui-make.bat
View
@@ -3,4 +3,5 @@ bin-win/sdl.dll
bin-win/gui_sdl12.exe
bin-win/cli.exe
thumbs.db
+*.res
/ui.bmp
View
Binary file not shown.
View
Binary file not shown.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1 @@
+id ICON "res/icon.ico"
View
@@ -1,7 +1,9 @@
@echo off
+echo [res\windows.res] building resources...
+windres res/windows.rc -O coff -o res/windows.res
echo [bin-win\gui_sdl12.exe] building sdl1.2 gui executable...
-gcc -g gui/*.c lib/src/*.c -I lib/include/ -mwindows -lmingw32 -lsdlmain -lsdl -lsetupapi -o bin-win\gui_sdl12.exe
+gcc -g gui/*.c lib/src/*.c res/windows.res -I lib/include/ -mwindows -lmingw32 -lsdlmain -lsdl -lsetupapi -o bin-win\gui_sdl12.exe
strip bin-win\gui_sdl12.exe
echo [bin-win\gui.exe] building sdl2.0 gui executable...
-gcc -g gui/*.c lib/src/*.c -I lib/include/ -mwindows -lwinmm -lmingw32 -lsdl2main -lsdl2 -lsdl2.dll -lsetupapi -DSDL2 -lfreeimage -o bin-win\gui.exe
+gcc -g gui/*.c lib/src/*.c res/windows.res -I lib/include/ -mwindows -lwinmm -lmingw32 -lsdl2main -lsdl2 -lsdl2.dll -lsetupapi -DSDL2 -lfreeimage -o bin-win\gui.exe
strip bin-win\gui.exe

0 comments on commit b4c3eb4

Please sign in to comment.