From 077c902542d580ca12cbcf9cfce1c0cd0eda17e5 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 7 Nov 2011 14:54:19 +0100 Subject: pixbuf-loader: Add loader test --- gdk-pixbuf-loader/Makefile.am | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gdk-pixbuf-loader/Makefile.am') diff --git a/gdk-pixbuf-loader/Makefile.am b/gdk-pixbuf-loader/Makefile.am index ed68a3f6..06ce6c83 100644 --- a/gdk-pixbuf-loader/Makefile.am +++ b/gdk-pixbuf-loader/Makefile.am @@ -1,5 +1,7 @@ if ENABLE_PIXBUF_LOADER +NULL = + gdk_pixbuf_module_LTLIBRARIES = libpixbufloader-svg.la libpixbufloader_svg_la_SOURCES = \ @@ -32,10 +34,37 @@ if PLATFORM_WIN32 libpixbufloader_svg_la_LDFLAGS += -no-undefined endif +noinst_PROGRAMS = rsvg-loader + +rsvg_loader_SOURCES = \ + test.c \ + (NULL) +rsvg_loader_CPPFLAGS = \ + $(AM_CPPFLAGS) +rsvg_loader_CFLAGS = \ + $(GDK_PIXBUF_CFLAGS) \ + $(AM_CFLAGS) +rsvg_loader_LDFLAGS = \ + $(AM_LDFLAGS) +rsvg_loader_LDADD = \ + $(GDK_PIXBUF_LIBS) +rsvg_loader_DEPENDENCIES = libpixbufloader-svg.la gdk-pixbuf-loaders + +gdk-pixbuf-loaders: Makefile + $(AM_V_GEN) ( $(GDK_PIXBUF_QUERYLOADERS) ./libpixbufloader-svg.la && $(GDK_PIXBUF_QUERYLOADERS)) > gdk-pixbuf.loaders 2>/dev/null + install-data-hook: if test -z "$(DESTDIR)"; then \ $(mkinstalldirs) $(DESTDIR)$(gdk_pixbuf_binarydir) ; \ $(GDK_PIXBUF_QUERYLOADERS) > $(DESTDIR)$(gdk_pixbuf_cache_file) ; \ fi +CLEANFILES = \ + gdk-pixbuf.loaders \ + $(NULL) + +DISTCLEANFILES = \ + gdk-pixbuf.loaders \ + $(NULL) + endif # ENABLE_PIXBUF_LOADER -- cgit v1.2.1