forked from AuroraMiddleware/gtk
7ef5dec32d
1999-10-20 Federico Mena Quintero <federico@redhat.com> * src/gdk-pixbuf.h (GdkPixbuf): Removed the unref_fn field. Now all memory management of the buffer is done by libart. * src/gdk-pixbuf.c (gdk_pixbuf_unref): Do destruction here. Removed gdk_pixbuf_destroy, gdk_pixbuf_duplicate. * src/gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Implemented in terms of the libart functions. Removed the old code. * src/gdk-pixbuf-io.c (image_handler_load): Removed the save symbols. Saving will not be implemented in GdkPixbuf. * src/io-gif.c: Removed the saving stub. (image_load): Fixed memory management to fail gracefully if we run out of memory while loading the image. Close the gif file when we are done. This still needs more error handling for the DGif functions. * src/io-jpeg.c (image_load): Some robustness fixes. * src/io-png.c: Removed the saving stuff. (image_load): Some memory management fixes. * src/io-tiff.c (image_load): Ditto. * src/io-xpm.c (pixbuf_create_from_xpm): Ditto.
86 lines
1.5 KiB
Makefile
86 lines
1.5 KiB
Makefile
lib_LTLIBRARIES = \
|
|
libgdk_pixbuf.la
|
|
|
|
libexecdir = $(libdir)/gdk-pixbuf/loaders
|
|
|
|
if HAVE_PNG
|
|
PNG_LIB = libpixbuf-png.la
|
|
endif
|
|
|
|
if HAVE_JPEG
|
|
JPEG_LIB = libpixbuf-jpeg.la
|
|
endif
|
|
|
|
if HAVE_GIF
|
|
GIF_LIB = libpixbuf-gif.la
|
|
endif
|
|
|
|
if HAVE_TIFF
|
|
TIFF_LIB = libpixbuf-tiff.la
|
|
endif
|
|
|
|
XPM_LIB = libpixbuf-xpm.la
|
|
|
|
libexec_LTLIBRARIES = \
|
|
$(PNG_LIB) \
|
|
$(JPEG_LIB) \
|
|
$(GIF_LIB) \
|
|
$(XPM_LIB) \
|
|
$(TIFF_LIB)
|
|
|
|
noinst_PROGRAMS = testpixbuf
|
|
DEPS = libgdk_pixbuf.la
|
|
INCLUDES = $(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
|
|
AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
|
|
|
|
LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS)
|
|
|
|
testpixbuf_LDADD = $(LDADDS) $(GTK_LIBS)
|
|
|
|
#
|
|
# The GdkPixBuf library
|
|
#
|
|
libgdk_pixbufincludedir = $(includedir)/gdk-pixbuf
|
|
|
|
libgdk_pixbuf_la_SOURCES = \
|
|
gdk-pixbuf.c \
|
|
gdk-pixbuf-io.c \
|
|
gdk-pixbuf-data.c
|
|
|
|
libgdk_pixbufinclude_HEADERS = \
|
|
gdk-pixbuf.h
|
|
|
|
#
|
|
# The PNG plugin.
|
|
#
|
|
libpixbuf_png_la_SOURCES = io-png.c
|
|
libpixbuf_png_la_LDFLAGS = -avoid-version -module
|
|
libpixbuf_png_la_LIBADD = $(LIBPNG)
|
|
|
|
#
|
|
# The JPEG loader
|
|
#
|
|
libpixbuf_jpeg_la_SOURCES = io-jpeg.c
|
|
libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
|
|
libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
|
|
|
|
#
|
|
# The XPM loader
|
|
#
|
|
libpixbuf_xpm_la_SOURCES = io-xpm.c
|
|
libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
|
|
|
|
#
|
|
# The GIF loader
|
|
#
|
|
libpixbuf_gif_la_SOURCES = io-gif.c
|
|
libpixbuf_gif_la_LDFLAGS = -avoid-version -module
|
|
libpixbuf_gif_la_LIBADD = $(LIBGIF)
|
|
|
|
#
|
|
# The TIFF loader
|
|
#
|
|
libpixbuf_tiff_la_SOURCES = io-tiff.c
|
|
libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
|
|
libpixbuf_tiff_la_LIBADD = $(LIBTIFF)
|