From ca288f1619c4b573edc0c8c77ecbba8b2b932ac3 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sat, 6 Sep 2008 04:31:08 +0000 Subject: [PATCH] (win32) Add application icon as a resource --- configure.ac | 6 +----- gtk/Makefile.am | 12 ++++++++++++ gtk/transmission.ico | Bin 0 -> 9662 bytes gtk/transmission.rc | 1 + 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 gtk/transmission.ico create mode 100644 gtk/transmission.rc diff --git a/configure.ac b/configure.ac index 1e7075b8b..788f76111 100644 --- a/configure.ac +++ b/configure.ac @@ -228,11 +228,7 @@ case $host_os in else hostaliaswindres="$host_alias-windres"; fi - AC_PATH_PROGS([WINDRES], [windres $hostaliaswindres $host_os-windres]) - if test "x$WINDRES" = "x"; then - AC_MSG_ERROR([windres could not be found within your path.]) - fi - AC_SUBST(WINDRES) + AC_CHECK_TOOL(WINDRES, windres) ;; *beos*) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 8278cabf3..fc6a74ccb 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -120,6 +120,18 @@ tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F) if WIN32 +transmission.res: transmission.rc + $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res + +BUILT_SOURCES = \ + transmission.res + +CLEANFILES += \ + transmission.res + +transmission_LDADD += \ + transmission.res + transmission_LDFLAGS = \ -mwindows endif diff --git a/gtk/transmission.ico b/gtk/transmission.ico new file mode 100644 index 0000000000000000000000000000000000000000..a11bbb337847ba4c5b3eccc673fc58c59955b27d GIT binary patch literal 9662 zcmeHL3sjX=7XCGQ+t_2RnOW0X)taUm%h8%lFC+?gl~YLn3+YrKwY=KF(Z~yp?kD#A2#*C?N{cHX|6~<;J z-WJ1jcy#Y$UYrD?B%OQ*c-)1uH@cbI?CSGR8WJY!-Wn=-6nK@aM$?|SHD>r-4 zE_2wi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