[Kazehakase-cvs] kazehakase-svn [3015] Embed kazehakase icon into the executable file for Microsoft Windows.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Mon Mar 26 13:39:08 JST 2007


Revision: 3015
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3015
Author:   makeinu
Date:     2007-03-26 13:39:07 +0900 (Mon, 26 Mar 2007)

Log Message:
-----------
Embed kazehakase icon into the executable file for Microsoft Windows.
But currently you have to convert the icon manually.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/configure.ac
    kazehakase/trunk/src/Makefile.am

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-03-26 03:21:19 UTC (rev 3014)
+++ kazehakase/trunk/ChangeLog	2007-03-26 04:39:07 UTC (rev 3015)
@@ -1,3 +1,9 @@
+2007-03-26  Takuro Ashie  <ashie****@homa*****>
+
+	* configure.ac, src/Makefile.am: Embed kazehakase icon into the
+	executable file for Microsoft Windows.
+	But currently you have to convert the icon manually.
+
 2007-03-26  Kouhei Sutou  <kou****@cozmi*****>
 
 	* module/search/kz-hyper-estraier-search.c (unregister_document):

Modified: kazehakase/trunk/configure.ac
===================================================================
--- kazehakase/trunk/configure.ac	2007-03-26 03:21:19 UTC (rev 3014)
+++ kazehakase/trunk/configure.ac	2007-03-26 04:39:07 UTC (rev 3015)
@@ -453,8 +453,10 @@
   if test "x$enable_mingw_debug" != "xno"; then
     LDFLAGS="$LDFLAGS -mwindows"
   fi
+  AC_CHECK_TOOL(WINDRES, windres)
   ;;
 esac
+AM_CONDITIONAL([HAVE_WINDRES], [test x"$WINDRES" != x])
 
 AC_SUBST([AM_CPPFLAGS])
 AC_SUBST([AM_CFLAGS])

Modified: kazehakase/trunk/src/Makefile.am
===================================================================
--- kazehakase/trunk/src/Makefile.am	2007-03-26 03:21:19 UTC (rev 3014)
+++ kazehakase/trunk/src/Makefile.am	2007-03-26 04:39:07 UTC (rev 3015)
@@ -45,8 +45,20 @@
 dist_kazehakase_SOURCES = \
 	main.c
 
-kazehakase_LDADD = libkazehakase.la
+if HAVE_WINDRES
+KAZEHAKASE_RES = kazehakase.res
+kazehakase.rc:
+	echo "KAZEHAKASE ICON kazehakase-icon.ico" > kazehakase.rc
+kazehakase.ico:
+	echo "***** FIXME: Build kazehakase.ico automatically using gimp! *****"
+kazehakase.res: kazehakase.rc
+	$(WINDRES) $< -O coff -o $@
+else
+KASEHAKASE_RES = 
+endif
 
+kazehakase_LDADD = libkazehakase.la $(KAZEHAKASE_RES)
+
 if WITH_GECKO
 kazehakase_LDFLAGS = -R$(MOZILLA_HOME)
 endif




More information about the Kazehakase-cvs mailing list
Back to archive index