r19070 - gnucash/trunk/src/pixmaps - Write makefile rule to create gnucash-icon.ico.

Geert Janssens gjanssens at code.gnucash.org
Fri Apr 23 18:32:07 EDT 2010


Author: gjanssens
Date: 2010-04-23 18:32:06 -0400 (Fri, 23 Apr 2010)
New Revision: 19070
Trac: http://svn.gnucash.org/trac/changeset/19070

Modified:
   gnucash/trunk/src/pixmaps/Makefile.am
   gnucash/trunk/src/pixmaps/gnucash-icon.ico
Log:
Write makefile rule to create gnucash-icon.ico.
This rule isn't called by default though. It uses image-magick to
add several png images of different size and bitdepth together.
Current ico has:
16x16,8-bit
22x22,8-bit
24x24,8-bit
32x32,32-bit
48x48,32-bit
64x64,32-bit
96x96,32-bit
128x128,32-bit
256x256,32-bit

Modified: gnucash/trunk/src/pixmaps/Makefile.am
===================================================================
--- gnucash/trunk/src/pixmaps/Makefile.am	2010-04-23 21:19:49 UTC (rev 19069)
+++ gnucash/trunk/src/pixmaps/Makefile.am	2010-04-23 22:32:06 UTC (rev 19070)
@@ -38,11 +38,11 @@
   stock_split_title.png \
   stock_split_watermark.png
 
-gnclarge256icondir = ${datadir}/icons/hicolor/256x256/apps
-gnclarge256icon_DATA = 256x256/gnucash-icon.png
+gnchuge256icondir = ${datadir}/icons/hicolor/256x256/apps
+gnchuge256icon_DATA = 256x256/gnucash-icon.png
 
-gnclarge128icondir = ${datadir}/icons/hicolor/128x128/apps
-gnclarge128icon_DATA = 128x128/gnucash-icon.png
+gnchuge128icondir = ${datadir}/icons/hicolor/128x128/apps
+gnchuge128icon_DATA = 128x128/gnucash-icon.png
 
 gnclarge96icondir = ${datadir}/icons/hicolor/96x96/apps
 gnclarge96icon_DATA = 96x96/gnucash-icon.png
@@ -125,17 +125,23 @@
 	fi
 endif
 
-EXTRA_DIST = \
-  ${gncpixmap_DATA} \
+ico_files_hr = \
   ${gnchuge256icon_DATA} \
   ${gnchuge128icon_DATA} \
   ${gnclarge96icon_DATA} \
   ${gnclarge64icon_DATA} \
-  ${gnclarge48icon_DATA} \
+  ${gnclarge48icon_DATA}
+
+ico_files_lr = \
   ${gncmediumicon_DATA} \
   ${gncsmalltwfouricon_DATA} \
   ${gncsmalltwtwoicon_DATA} \
-  ${gncextrasmallicon_DATA} \
+  ${gncextrasmallicon_DATA}
+
+EXTRA_DIST = \
+  ${gncpixmap_DATA} \
+  ${ico_files_hr} \
+  ${ico_files_lr} \
   ${gncscalableicon_DATA}
 
 # Only clean up if we're building from SVN
@@ -143,3 +149,9 @@
 clean-local:
 	-rm -rf 256x256 128x128 96x96 64x64 48x48 32x32 24x24 22x22 16x16 scalable
 endif
+
+# Create gnucash-icon.ico
+.PHONY: ico
+ico: ${ico_files_hr} ${ico_files_lr}
+	convert ${ico_files_lr} ${ico_files_hr} tmp.ico; \
+	mv tmp.ico gnucash-icon.ico
\ No newline at end of file

Modified: gnucash/trunk/src/pixmaps/gnucash-icon.ico
===================================================================
(Binary files differ)



More information about the gnucash-changes mailing list