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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19070 57a11ea4-9604-0410-9ed3-97b8803252fd
pull/1/head
Geert Janssens 16 years ago
parent abe7442d02
commit bdd19bea77

@ -38,11 +38,11 @@ gncpixmap_DATA = \
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 @@ update-icon-cache:
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 @@ if BUILDING_FROM_SVN
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Loading…
Cancel
Save