Makefile.am 2.38 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3
iconsdir = $(gimpdatadir)/icons/Color
4 5 6 7

icons_DATA = \
	index.theme

8
include $(top_srcdir)/icons/icon-list.mk
9

10
# Vector icons are now committed into the repository.
11 12 13 14 15 16
# 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} > $@
17 18 19 20 21 22 23 24 25 26

## Compiled-in icons for both the core and libgimpwidgets

CORE_IMAGES = \
	64/gimp-question.png

ICON_IMAGES = \
	64/gimp-wilber-eek.png

EXTRA_DIST = \
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
	$(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)		\
	$(scalable_images)		\
	$(vector24_images)		\
44
	color-scalable.svg
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

noinst_DATA = \
	gimp-core-pixbufs.c	\
	gimp-icon-pixbufs.c

CLEANFILES = \
	$(noinst_DATA)			\
	gimp-core-pixbufs.gresource.xml	\
	gimp-icon-pixbufs.gresource.xml


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-core-pixbufs.c: gimp-core-pixbufs.gresource.xml
68
	$(AM_V_GEN) $(HOST_GLIB_COMPILE_RESOURCES) \
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
	  --sourcedir=$(srcdir) --generate-source \
	  --target=$@ gimp-core-pixbufs.gresource.xml


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>' >> $@ )

gimp-icon-pixbufs.c: gimp-icon-pixbufs.gresource.xml
85
	$(AM_V_GEN) $(HOST_GLIB_COMPILE_RESOURCES) \
86 87
	  --sourcedir=$(srcdir) --generate-source \
	  --target=$@ gimp-icon-pixbufs.gresource.xml