Bug #618647 - Compile .ico as resource into gnucash-bin.exe, patch by Tao Wang

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19186 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-05-20 13:25:33 +00:00
parent d242c702e6
commit 4ca1cd8525
3 changed files with 18 additions and 1 deletions

View File

@ -261,6 +261,7 @@ update to latest darwin])
platform=win32
AC_MSG_RESULT($platform)
GNUCASH_ENVIRONMENT="environment-win32"
LT_PROG_RC
AC_MSG_CHECKING(for native win32)
case $host_os in

View File

@ -17,8 +17,23 @@ AM_CPPFLAGS = -I${top_builddir} ${GLIB_CFLAGS} ${GNOME_CFLAGS} ${GTK_CFLAGS} \
-I${top_srcdir}/src/libqof/qof \
${GUILE_INCS}
if PLATFORM_WIN32
GNUCASH_RESOURCE_FILE = gnucash.rc
else
GNUCASH_RESOURCE_FILE =
endif
SUFFIXES = .rc .res
if PLATFORM_WIN32
.rc.res:
$(AM_V_GEN)$(RC) -i '$<' --input-format=rc -o '$@' -O coff
endif
dist_noinst_DATA = gnucash.rc
bin_PROGRAMS = gnucash-bin
gnucash_bin_SOURCES = gnucash-bin.c
gnucash_bin_SOURCES = gnucash-bin.c ${GNUCASH_RESOURCE_FILE}
gnucash_bin_LDADD = \
${top_builddir}/src/libqof/qof/libgnc-qof.la \
${GUILE_LIBS} \

1
src/bin/gnucash.rc Normal file
View File

@ -0,0 +1 @@
APPLICATION_ICON ICON DISCARDABLE "../pixmaps/gnucash-icon.ico"