Add icon to sm.exe
authorJoachim Breitner <mail@joachim-breitner.de>
Wed, 30 Dec 2009 19:21:25 +0000 (19:21 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Wed, 30 Dec 2009 19:21:25 +0000 (19:21 +0000)
Makefile.am
configure.ac
sm.ico [new file with mode: 0644]
sm.rc [new file with mode: 0644]

index 8fb31b8..84e7fd3 100644 (file)
@@ -34,11 +34,15 @@ CLEANFILES = sm.desktop
 
 if WIN32
 AM_LDFLAGS = -Wl,--subsystem,windows
+sm_LDADD += sm-icon.o
 
 INSTALLER_BASE = screen-message-setup-@PACKAGE_VERSION@
 INSTALLER = $(INSTALLER_BASE).exe
 CLEANFILES +=  setup.iss $(INSTALLER)
 
+sm-icon.o: sm.rc
+       $(WINDRES) $< $@
+
 $(INSTALLER): setup.iss sm.exe README.Win32
        "$(WINE)" "$(ISCC)" /O. "/F$(INSTALLER_BASE)" $< 
 
index 0e4e855..4b6f2ac 100644 (file)
@@ -11,6 +11,7 @@ AM_CONDITIONAL(WIN32, test "x$win32" = xtrue)
 AS_IF([test "x$win32" = xtrue],[
         AC_CHECK_TOOL(WINE,[wine],[],[])
         AC_CHECK_TOOL(WINEPATH,[winepath],[],[])
+        AC_CHECK_TOOL(WINDRES,[windres],[],[])
        ])
 
 AC_ARG_WITH([iscc],
diff --git a/sm.ico b/sm.ico
new file mode 100644 (file)
index 0000000..0843a50
Binary files /dev/null and b/sm.ico differ
diff --git a/sm.rc b/sm.rc
new file mode 100644 (file)
index 0000000..5ad116c
--- /dev/null
+++ b/sm.rc
@@ -0,0 +1,3 @@
+#include <windows.h>
+
+A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "sm.ico"