Treat the gimp-core-pixbufs and gimp-icon-pixbufs resources like we changed the cursor resources before, and clean out a lot of cruft from icons/ (there is no need to generate stuff in all icon themes when we include only one fallback icon from one theme).
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
iconsdir = $(gimpdatadir)/icons/Color
|
|
|
|
icons_DATA = \
|
|
index.theme
|
|
|
|
include $(top_srcdir)/icons/icon-list.mk
|
|
|
|
if ENABLE_VECTOR_ICONS
|
|
icons24_DATA = \
|
|
$(color_vector24_images)
|
|
|
|
scalable_DATA = \
|
|
$(color_scalable_images)
|
|
endif
|
|
|
|
# Vector icons are now committed into the repository.
|
|
# librsvg is just too buggy to handle build-time extraction with
|
|
# acceptable quality.
|
|
#scalable/%.svg: color-scalable.svg ../../tools/compute-svg-viewbox
|
|
# mkdir -p scalable && \
|
|
# SVG=`$(top_srcdir)/tools/extract-vector-icon.sh $< $*` && \
|
|
# echo $${SVG} > $@
|
|
|
|
## Compiled-in icons for both the core and libgimpwidgets
|
|
|
|
CORE_IMAGES = \
|
|
64/gimp-question.png
|
|
|
|
ICON_IMAGES = \
|
|
64/gimp-wilber-eek.png
|
|
|
|
EXTRA_DIST = \
|
|
$(icons_DATA) \
|
|
$(icons12_images) \
|
|
$(icons16_images) \
|
|
$(icons18_images) \
|
|
$(icons20_images) \
|
|
$(icons22_images) \
|
|
$(icons24_images) \
|
|
$(icons32_images) \
|
|
$(icons48_images) \
|
|
$(icons64_images) \
|
|
$(icons64_system_images) \
|
|
$(icons96_images) \
|
|
$(icons128_images) \
|
|
$(icons192_images) \
|
|
$(icons256_images) \
|
|
$(color_scalable_images) \
|
|
$(color_vector24_images) \
|
|
color-scalable.svg
|
|
|
|
noinst_DATA = \
|
|
gimp-core-pixbufs.gresource.xml \
|
|
gimp-icon-pixbufs.gresource.xml
|
|
|
|
CLEANFILES = $(noinst_DATA)
|
|
|
|
|
|
gimp-core-pixbufs.gresource.xml: $(CORE_IMAGES) Makefile.am
|
|
$(AM_V_GEN) ( rm -f $@; \
|
|
echo '<?xml version="1.0" encoding="UTF-8"?>' > $@; \
|
|
echo '<gresources>' >> $@; \
|
|
echo ' <gresource prefix="/org/gimp/icons">' >> $@; \
|
|
for image in $(CORE_IMAGES); do \
|
|
echo " <file preprocess=\"to-pixdata\">$$image</file>" >> $@; \
|
|
done; \
|
|
echo ' </gresource>' >> $@; \
|
|
echo '</gresources>' >> $@ )
|
|
|
|
gimp-icon-pixbufs.gresource.xml: $(ICON_IMAGES) Makefile.am
|
|
$(AM_V_GEN) ( rm -f $@; \
|
|
echo '<?xml version="1.0" encoding="UTF-8"?>' > $@; \
|
|
echo '<gresources>' >> $@; \
|
|
echo ' <gresource prefix="/org/gimp/icons">' >> $@; \
|
|
for image in $(ICON_IMAGES); do \
|
|
echo " <file preprocess=\"to-pixdata\">$$image</file>" >> $@; \
|
|
done; \
|
|
echo ' </gresource>' >> $@; \
|
|
echo '</gresources>' >> $@ )
|