2001-09-19 02:10:45 +00:00
|
|
|
|
2000-01-05 21:33:58 +00:00
|
|
|
SUBDIRS = pixops
|
|
|
|
|
2001-10-29 06:48:04 +00:00
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
|
|
|
|
|
|
|
if OS_WIN32
|
2005-06-26 18:55:49 +00:00
|
|
|
gdk_pixbuf_def = $(srcdir)/gdk_pixbuf.def
|
2001-10-29 06:48:04 +00:00
|
|
|
gdk_pixbuf_symbols = -export-symbols $(gdk_pixbuf_def)
|
|
|
|
|
2005-07-09 00:10:12 +00:00
|
|
|
gdk_pixbuf_win32_res = gdk_pixbuf-win32-res.o
|
|
|
|
gdk_pixbuf_win32_res_ldflag = -Wl,$(gdk_pixbuf_win32_res)
|
2002-03-02 23:19:59 +00:00
|
|
|
|
2005-07-09 00:10:12 +00:00
|
|
|
gdk_pixbuf-win32-res.o : gdk_pixbuf.rc
|
|
|
|
$(WINDRES) gdk_pixbuf.rc $@
|
2002-03-02 23:19:59 +00:00
|
|
|
|
2005-06-26 18:55:49 +00:00
|
|
|
install-def-file:
|
|
|
|
$(INSTALL) $(gdk_pixbuf_def) $(DESTDIR)$(libdir)/gdk_pixbuf-2.0.def
|
|
|
|
uninstall-def-file:
|
|
|
|
-rm $(DESTDIR)$(libdir)/gdk_pixbuf-2.0.def
|
2001-10-29 06:48:04 +00:00
|
|
|
else
|
2005-06-26 18:55:49 +00:00
|
|
|
install-def-file:
|
|
|
|
uninstall-def-file:
|
2001-10-29 06:48:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MS_LIB_AVAILABLE
|
2002-03-05 21:04:09 +00:00
|
|
|
noinst_DATA = gdk_pixbuf-$(GTK_API_VERSION).lib
|
2001-10-29 06:48:04 +00:00
|
|
|
|
2002-03-05 21:04:09 +00:00
|
|
|
gdk_pixbuf-$(GTK_API_VERSION).lib: libgdk_pixbuf-$(GTK_API_VERSION).la gdk_pixbuf.def
|
|
|
|
lib -name:libgdk_pixbuf-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gdk_pixbuf.def -out:$@
|
2001-10-29 06:48:04 +00:00
|
|
|
|
|
|
|
install-ms-lib:
|
2002-03-05 21:04:09 +00:00
|
|
|
$(INSTALL) gdk_pixbuf-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
|
2001-10-29 06:48:04 +00:00
|
|
|
|
|
|
|
uninstall-ms-lib:
|
2002-03-05 21:04:09 +00:00
|
|
|
-rm $(DESTDIR)$(libdir)/gdk_pixbuf-$(GTK_API_VERSION).lib
|
2001-10-29 06:48:04 +00:00
|
|
|
else
|
|
|
|
install-ms-lib:
|
|
|
|
uninstall-ms-lib:
|
|
|
|
endif
|
|
|
|
|
2004-08-11 04:10:18 +00:00
|
|
|
gdk_pixbuf.def: gdk-pixbuf.symbols
|
2005-03-14 19:37:00 +00:00
|
|
|
(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gdk-pixbuf.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > gdk_pixbuf.def
|
2004-08-11 04:10:18 +00:00
|
|
|
|
|
|
|
gdk-pixbuf-alias.h: gdk-pixbuf.symbols
|
2004-11-29 05:45:38 +00:00
|
|
|
$(PERL) $(srcdir)/makegdkpixbufalias.pl < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-alias.h
|
2004-08-11 04:10:18 +00:00
|
|
|
|
2005-03-14 19:37:00 +00:00
|
|
|
gdk-pixbuf-aliasdef.c: gdk-pixbuf.symbols
|
|
|
|
$(PERL) $(srcdir)/makegdkpixbufalias.pl -def < $(srcdir)/gdk-pixbuf.symbols > gdk-pixbuf-aliasdef.c
|
|
|
|
|
2005-01-13 15:19:27 +00:00
|
|
|
if OS_LINUX
|
2004-08-11 04:10:18 +00:00
|
|
|
TESTS = abicheck.sh
|
|
|
|
endif
|
|
|
|
|
1999-07-12 20:27:50 +00:00
|
|
|
lib_LTLIBRARIES = \
|
2002-03-05 21:04:09 +00:00
|
|
|
libgdk_pixbuf-2.0.la
|
1999-07-12 20:27:50 +00:00
|
|
|
|
2002-03-05 15:40:48 +00:00
|
|
|
loaderdir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/loaders
|
1999-07-12 20:27:50 +00:00
|
|
|
|
2002-03-05 21:04:09 +00:00
|
|
|
module_libs = libgdk_pixbuf-$(GTK_API_VERSION).la $(GDK_PIXBUF_DEP_LIBS)
|
2001-05-16 18:51:07 +00:00
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
|
|
|
# The PNG plugin.
|
|
|
|
#
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_png_la_SOURCES = io-png.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_png_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_png_la_LIBADD = $(LIBPNG) $(module_libs)
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_png_la_SOURCES = io-png.c
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The JPEG loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_jpeg_la_SOURCES = io-jpeg.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_jpeg_la_SOURCES = io-jpeg.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_jpeg_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_jpeg_la_LIBADD = $(LIBJPEG) $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The XPM loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_xpm_la_SOURCES = io-xpm.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_xpm_la_SOURCES = io-xpm.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_xpm_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_xpm_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The GIF loader
|
|
|
|
#
|
2001-05-07 15:58:47 +00:00
|
|
|
libpixbufloader_static_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
|
|
|
|
libpixbufloader_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_gif_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_gif_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The ICO loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_ico_la_SOURCES = io-ico.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_ico_la_SOURCES = io-ico.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_ico_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_ico_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
2002-09-06 21:14:15 +00:00
|
|
|
#
|
|
|
|
# The ANI loader
|
|
|
|
#
|
|
|
|
libpixbufloader_static_ani_la_SOURCES = io-ani.c io-ani-animation.c io-ani-animation.h
|
|
|
|
libpixbufloader_ani_la_SOURCES = io-ani.c io-ani-animation.c io-ani-animation.h
|
|
|
|
libpixbufloader_ani_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_ani_la_LIBADD = $(module_libs)
|
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
|
|
|
# The RAS loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_ras_la_SOURCES = io-ras.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_ras_la_SOURCES = io-ras.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_ras_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_ras_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The TIFF loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_tiff_la_SOURCES = io-tiff.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_tiff_la_SOURCES = io-tiff.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_tiff_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_tiff_la_LIBADD = $(LIBTIFF) $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The PNM loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_pnm_la_SOURCES = io-pnm.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_pnm_la_SOURCES = io-pnm.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_pnm_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_pnm_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The BMP loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_bmp_la_SOURCES = io-bmp.c
|
2000-04-13 01:18:41 +00:00
|
|
|
libpixbufloader_bmp_la_SOURCES = io-bmp.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_bmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_bmp_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
2000-07-28 00:09:36 +00:00
|
|
|
#
|
|
|
|
# The WBMP loader
|
|
|
|
#
|
2001-01-09 09:53:28 +00:00
|
|
|
libpixbufloader_static_wbmp_la_SOURCES = io-wbmp.c
|
2000-07-28 00:09:36 +00:00
|
|
|
libpixbufloader_wbmp_la_SOURCES = io-wbmp.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_wbmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_wbmp_la_LIBADD = $(module_libs)
|
2000-07-28 00:09:36 +00:00
|
|
|
|
2001-01-22 02:08:53 +00:00
|
|
|
#
|
|
|
|
# The XBM loader
|
|
|
|
#
|
2002-02-01 23:59:52 +00:00
|
|
|
libpixbufloader_static_xbm_la_SOURCES = io-xbm.c
|
2001-01-22 02:08:53 +00:00
|
|
|
libpixbufloader_xbm_la_SOURCES = io-xbm.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_xbm_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-05-16 18:51:07 +00:00
|
|
|
libpixbufloader_xbm_la_LIBADD = $(module_libs)
|
2001-01-22 02:08:53 +00:00
|
|
|
|
2001-08-21 08:51:06 +00:00
|
|
|
#
|
|
|
|
# The TGA loader
|
|
|
|
#
|
2002-02-01 23:59:52 +00:00
|
|
|
libpixbufloader_static_tga_la_SOURCES = io-tga.c
|
2001-08-21 08:51:06 +00:00
|
|
|
libpixbufloader_tga_la_SOURCES = io-tga.c
|
2001-10-29 06:48:04 +00:00
|
|
|
libpixbufloader_tga_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
2001-08-21 08:51:06 +00:00
|
|
|
libpixbufloader_tga_la_LIBADD = $(module_libs)
|
|
|
|
|
2003-05-21 20:20:07 +00:00
|
|
|
#
|
|
|
|
# The PCX loader
|
|
|
|
#
|
|
|
|
libpixbufloader_static_pcx_la_SOURCES = io-pcx.c
|
|
|
|
libpixbufloader_pcx_la_SOURCES = io-pcx.c
|
|
|
|
libpixbufloader_pcx_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_pcx_la_LIBADD = $(module_libs)
|
|
|
|
|
1999-07-26 06:39:39 +00:00
|
|
|
if HAVE_PNG
|
2000-04-13 01:18:41 +00:00
|
|
|
PNG_LIB = libpixbufloader-png.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_PNG_LIB = libpixbufloader-static-png.la
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_JPEG
|
2000-04-13 01:18:41 +00:00
|
|
|
JPEG_LIB = libpixbufloader-jpeg.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_JPEG_LIB = libpixbufloader-static-jpeg.la
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
GIF_LIB = libpixbufloader-gif.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_GIF_LIB = libpixbufloader-static-gif.la
|
1999-07-26 06:39:39 +00:00
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
ICO_LIB = libpixbufloader-ico.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_ICO_LIB = libpixbufloader-static-ico.la
|
1999-11-29 16:49:39 +00:00
|
|
|
|
2002-09-06 21:14:15 +00:00
|
|
|
ANI_LIB = libpixbufloader-ani.la
|
|
|
|
STATIC_ANI_LIB = libpixbufloader-static-ani.la
|
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
RAS_LIB = libpixbufloader-ras.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_RAS_LIB = libpixbufloader-static-ras.la
|
1999-11-05 20:37:08 +00:00
|
|
|
|
1999-07-26 06:39:39 +00:00
|
|
|
if HAVE_TIFF
|
2000-04-13 01:18:41 +00:00
|
|
|
TIFF_LIB = libpixbufloader-tiff.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_TIFF_LIB = libpixbufloader-static-tiff.la
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
XPM_LIB = libpixbufloader-xpm.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_XPM_LIB = libpixbufloader-static-xpm.la
|
1999-07-26 06:39:39 +00:00
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
PNM_LIB = libpixbufloader-pnm.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_PNM_LIB = libpixbufloader-static-pnm.la
|
1999-11-09 23:51:35 +00:00
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
BMP_LIB = libpixbufloader-bmp.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_BMP_LIB = libpixbufloader-static-bmp.la
|
1999-11-21 21:28:28 +00:00
|
|
|
|
2000-07-28 00:09:36 +00:00
|
|
|
WBMP_LIB = libpixbufloader-wbmp.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_WBMP_LIB = libpixbufloader-static-wbmp.la
|
2000-07-28 00:09:36 +00:00
|
|
|
|
2001-01-22 02:08:53 +00:00
|
|
|
XBM_LIB = libpixbufloader-xbm.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_XBM_LIB = libpixbufloader-static-xbm.la
|
2001-01-22 02:08:53 +00:00
|
|
|
|
2001-08-21 08:51:06 +00:00
|
|
|
TGA_LIB = libpixbufloader-tga.la
|
2002-05-07 12:59:18 +00:00
|
|
|
STATIC_TGA_LIB = libpixbufloader-static-tga.la
|
2001-08-21 08:51:06 +00:00
|
|
|
|
2003-05-21 20:20:07 +00:00
|
|
|
PCX_LIB = libpixbufloader-pcx.la
|
|
|
|
STATIC_PCX_LIB = libpixbufloader-static-pcx.la
|
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
if BUILD_DYNAMIC_MODULES
|
|
|
|
|
2000-07-14 20:08:10 +00:00
|
|
|
loader_LTLIBRARIES = \
|
1999-07-26 06:39:39 +00:00
|
|
|
$(PNG_LIB) \
|
|
|
|
$(JPEG_LIB) \
|
|
|
|
$(GIF_LIB) \
|
1999-11-29 16:49:39 +00:00
|
|
|
$(ICO_LIB) \
|
2002-09-06 21:14:15 +00:00
|
|
|
$(ANI_LIB) \
|
1999-11-05 20:37:08 +00:00
|
|
|
$(RAS_LIB) \
|
1999-07-26 06:39:39 +00:00
|
|
|
$(XPM_LIB) \
|
1999-11-09 23:51:35 +00:00
|
|
|
$(TIFF_LIB) \
|
1999-11-21 21:28:28 +00:00
|
|
|
$(PNM_LIB) \
|
2000-07-28 00:09:36 +00:00
|
|
|
$(BMP_LIB) \
|
2001-01-22 02:08:53 +00:00
|
|
|
$(WBMP_LIB) \
|
2001-08-21 08:51:06 +00:00
|
|
|
$(XBM_LIB) \
|
2003-05-21 20:20:07 +00:00
|
|
|
$(TGA_LIB) \
|
|
|
|
$(PCX_LIB)
|
1999-07-12 20:27:50 +00:00
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
extra_sources =
|
2001-01-09 09:53:28 +00:00
|
|
|
builtin_objs =
|
2000-02-22 00:29:00 +00:00
|
|
|
else
|
2000-07-14 20:08:10 +00:00
|
|
|
loader_LTLIBRARIES =
|
2000-02-22 00:29:00 +00:00
|
|
|
|
2002-05-07 12:59:18 +00:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
$(STATIC_PNG_LIB) \
|
|
|
|
$(STATIC_JPEG_LIB) \
|
|
|
|
$(STATIC_GIF_LIB) \
|
|
|
|
$(STATIC_ICO_LIB) \
|
2002-09-06 21:14:15 +00:00
|
|
|
$(STATIC_ANI_LIB) \
|
2002-05-07 12:59:18 +00:00
|
|
|
$(STATIC_RAS_LIB) \
|
|
|
|
$(STATIC_XPM_LIB) \
|
|
|
|
$(STATIC_TIFF_LIB) \
|
|
|
|
$(STATIC_PNM_LIB) \
|
|
|
|
$(STATIC_BMP_LIB) \
|
|
|
|
$(STATIC_WBMP_LIB) \
|
|
|
|
$(STATIC_XBM_LIB) \
|
2003-05-21 20:20:07 +00:00
|
|
|
$(STATIC_TGA_LIB) \
|
|
|
|
$(STATIC_PCX_LIB)
|
2001-01-09 09:53:28 +00:00
|
|
|
|
|
|
|
builtin_objs = @INCLUDED_LOADER_OBJ@
|
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
endif
|
|
|
|
|
2002-03-05 21:04:09 +00:00
|
|
|
DEPS = libgdk_pixbuf-$(GTK_API_VERSION).la
|
2003-05-06 21:55:41 +00:00
|
|
|
INCLUDES = \
|
2001-12-12 22:20:36 +00:00
|
|
|
-DG_LOG_DOMAIN=\"GdkPixbuf\" \
|
2001-06-26 20:56:32 +00:00
|
|
|
-I$(top_srcdir) -I$(top_builddir) \
|
2001-05-03 20:11:14 +00:00
|
|
|
-I$(top_srcdir)/gdk-pixbuf \
|
|
|
|
-I$(top_builddir)/gdk-pixbuf \
|
2002-10-03 22:39:51 +00:00
|
|
|
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
|
2003-05-06 21:55:41 +00:00
|
|
|
-DGTK_VERSION=\"$(GTK_VERSION)\" \
|
|
|
|
-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
|
Remove assorted G_OBJECT casts where unnecessary.
2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c,
io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove
assorted G_OBJECT casts where unnecessary.
* gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref
instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref
resp.
* gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c,
io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c,
io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and
gdk_pixbuf_unref.
* Makefile.am, pixops/Makefile.am: Compile everything with
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
* gdk-pixdata.c: Use g_ascii_strup() instead of g_strup().
* io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp().
* demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
resp.
2001-12-13 21:22:12 +00:00
|
|
|
-DG_DISABLE_DEPRECATED \
|
|
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
2004-03-15 13:07:04 +00:00
|
|
|
-DGTK_PREFIX=\"$(prefix)\" \
|
2003-05-06 21:55:41 +00:00
|
|
|
$(INCLUDED_LOADER_DEFINE) \
|
|
|
|
$(GTK_DEBUG_FLAGS) \
|
|
|
|
$(GDK_PIXBUF_DEP_CFLAGS) \
|
|
|
|
-DGDK_PIXBUF_ENABLE_BACKEND
|
2001-06-26 20:56:32 +00:00
|
|
|
|
2001-06-01 23:05:46 +00:00
|
|
|
AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(loaderdir)\"" "-DBUILT_MODULES_DIR=\"$(srcdir)/.libs\""
|
2002-03-05 21:04:09 +00:00
|
|
|
LDADDS = libgdk_pixbuf-$(GTK_API_VERSION).la
|
2000-01-10 21:28:03 +00:00
|
|
|
|
2002-05-05 00:59:42 +00:00
|
|
|
noinst_PROGRAMS = test-gdk-pixbuf
|
2000-07-22 15:21:31 +00:00
|
|
|
test_gdk_pixbuf_LDADD = $(LDADDS)
|
1999-12-17 21:42:47 +00:00
|
|
|
|
2002-10-03 22:39:51 +00:00
|
|
|
bin_PROGRAMS = gdk-pixbuf-csource gdk-pixbuf-query-loaders
|
2001-06-26 20:56:32 +00:00
|
|
|
gdk_pixbuf_csource_SOURCES = gdk-pixbuf-csource.c
|
|
|
|
gdk_pixbuf_csource_LDADD = $(LDADDS)
|
2001-06-01 23:05:46 +00:00
|
|
|
|
2002-10-03 22:39:51 +00:00
|
|
|
gdk_pixbuf_query_loaders_DEPENDENCIES = $(DEPS)
|
|
|
|
gdk_pixbuf_query_loaders_LDADD = $(LDADDS)
|
|
|
|
|
|
|
|
gdk_pixbuf_query_loaders_SOURCES = queryloaders.c
|
|
|
|
|
|
|
|
|
1999-01-05 21:27:07 +00:00
|
|
|
#
|
|
|
|
# The GdkPixBuf library
|
|
|
|
#
|
2000-07-14 20:08:10 +00:00
|
|
|
libgdk_pixbufincludedir = $(includedir)/gtk-2.0/gdk-pixbuf
|
2005-05-25 19:33:35 +00:00
|
|
|
libgdk_pixbuf_2_0_la_SOURCES = \
|
|
|
|
gdk-pixbuf-i18n.h \
|
|
|
|
gdk-pixbuf.c \
|
|
|
|
gdk-pixbuf-animation.c \
|
|
|
|
gdk-pixbuf-data.c \
|
|
|
|
gdk-pixbuf-io.c \
|
|
|
|
gdk-pixbuf-loader.c \
|
|
|
|
gdk-pixbuf-scale.c \
|
|
|
|
gdk-pixbuf-simple-anim.c \
|
|
|
|
gdk-pixbuf-util.c \
|
|
|
|
gdk-pixdata.c \
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk-pixbuf-enum-types.c
|
|
|
|
|
|
|
|
libgdk_pixbuf_2_0_la_LDFLAGS = \
|
2005-07-09 00:10:12 +00:00
|
|
|
$(gdk_pixbuf_win32_res_ldflag) \
|
2003-05-06 21:55:41 +00:00
|
|
|
-version-info $(LT_VERSION_INFO) \
|
|
|
|
$(LIBTOOL_EXPORT_OPTIONS) \
|
|
|
|
$(no_undefined) \
|
|
|
|
$(gdk_pixbuf_symbols)
|
|
|
|
|
2001-06-26 20:56:32 +00:00
|
|
|
|
2005-07-09 00:10:12 +00:00
|
|
|
libgdk_pixbuf_2_0_la_LIBADD = pixops/libpixops.la $(builtin_objs) $(GDK_PIXBUF_DEP_LIBS)
|
|
|
|
libgdk_pixbuf_2_0_la_DEPENDENCIES = pixops/libpixops.la $(builtin_objs) $(gdk_pixbuf_def) $(gdk_pixbuf_win32_res)
|
2000-01-05 21:33:58 +00:00
|
|
|
|
2001-09-19 04:34:55 +00:00
|
|
|
gdk_pixbuf_headers = \
|
|
|
|
gdk-pixbuf.h \
|
2004-06-20 05:11:57 +00:00
|
|
|
gdk-pixbuf-core.h \
|
|
|
|
gdk-pixbuf-transform.h \
|
2002-10-03 22:39:51 +00:00
|
|
|
gdk-pixbuf-io.h \
|
|
|
|
gdk-pixbuf-animation.h \
|
2005-05-25 19:33:35 +00:00
|
|
|
gdk-pixbuf-simple-anim.h \
|
2001-09-19 04:34:55 +00:00
|
|
|
gdk-pixbuf-loader.h
|
2001-09-16 23:54:37 +00:00
|
|
|
|
2001-09-19 04:34:55 +00:00
|
|
|
libgdk_pixbufinclude_HEADERS = \
|
2001-09-16 23:54:37 +00:00
|
|
|
$(gdk_pixbuf_headers) \
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk-pixbuf-enum-types.h \
|
|
|
|
gdk-pixbuf-marshal.h \
|
2001-09-19 04:34:55 +00:00
|
|
|
gdk-pixbuf-features.h \
|
2001-06-26 20:56:32 +00:00
|
|
|
gdk-pixdata.h
|
1999-01-05 21:27:07 +00:00
|
|
|
|
2000-04-11 07:03:25 +00:00
|
|
|
noinst_HEADERS = \
|
2004-08-11 04:10:18 +00:00
|
|
|
gdk-pixbuf-alias.h \
|
2005-06-20 22:06:27 +00:00
|
|
|
gdk-pixbuf-private.h \
|
|
|
|
xpm-color-table.h
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2004-08-11 04:10:18 +00:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
gdk-pixbuf-alias.h \
|
2005-03-14 19:37:00 +00:00
|
|
|
gdk-pixbuf-aliasdef.c \
|
2004-08-11 04:10:18 +00:00
|
|
|
gdk-pixbuf-enum-types.h \
|
|
|
|
gdk-pixbuf-enum-types.c \
|
|
|
|
gdk-pixbuf-marshal.h \
|
|
|
|
gdk-pixbuf-marshal.c
|
2001-09-16 23:54:37 +00:00
|
|
|
|
2001-09-19 04:34:55 +00:00
|
|
|
CLEANFILES =
|
2004-08-11 04:10:18 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
2005-06-20 22:06:27 +00:00
|
|
|
gdk-pixbuf-aliasdef.c \
|
2004-08-11 04:10:18 +00:00
|
|
|
gdk-pixbuf-enum-types.h \
|
|
|
|
gdk-pixbuf-enum-types.c \
|
|
|
|
gdk-pixbuf-marshal.h \
|
|
|
|
gdk-pixbuf-marshal.c \
|
|
|
|
gdk-pixbuf.loaders
|
2001-09-19 04:34:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# gdk-pixbuf-enum-types.h
|
|
|
|
#
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk-pixbuf-enum-types.h: s-enum-types-h
|
2001-09-19 02:10:45 +00:00
|
|
|
@true
|
2001-09-19 04:34:55 +00:00
|
|
|
|
2001-09-16 23:54:37 +00:00
|
|
|
s-enum-types-h: @REBUILD@ $(gdk_pixbuf_headers) Makefile
|
2005-10-26 18:01:05 +00:00
|
|
|
( cd $(srcdir) && $(GLIB_MKENUMS) \
|
2002-01-09 16:36:20 +00:00
|
|
|
--fhead "#ifndef __GDK_PIXBUF_ENUM_TYPES_H__\n#define __GDK_PIXBUF_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
|
2001-09-16 23:54:37 +00:00
|
|
|
--fprod "/* enumerations from \"@filename@\" */\n" \
|
2004-11-28 06:30:15 +00:00
|
|
|
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
|
2002-01-09 16:36:20 +00:00
|
|
|
--ftail "G_END_DECLS\n\n#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */" \
|
2001-09-16 23:54:37 +00:00
|
|
|
$(gdk_pixbuf_headers) ) > tmp-gdk-pixbuf-enum-types.h \
|
2003-05-06 21:55:41 +00:00
|
|
|
&& (cmp -s tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h || cp tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h ) \
|
2001-09-16 23:54:37 +00:00
|
|
|
&& rm -f tmp-gdk-pixbuf-enum-types.h \
|
|
|
|
&& echo timestamp > $(@F)
|
2001-09-19 04:34:55 +00:00
|
|
|
|
2001-09-19 02:10:45 +00:00
|
|
|
CLEANFILES += tmp-gdk-pixbuf-enum-types.h
|
2001-09-19 04:34:55 +00:00
|
|
|
MAINTAINERCLEANFILES += s-enum-types-h
|
|
|
|
|
|
|
|
#
|
|
|
|
# gdk-pixbuf-enum-types.c
|
|
|
|
#
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk-pixbuf-enum-types.c: @REBUILD@ $(gdk_pixbuf_headers) Makefile
|
2005-10-26 18:01:05 +00:00
|
|
|
(cd $(srcdir) && $(GLIB_MKENUMS) \
|
2005-03-14 19:37:00 +00:00
|
|
|
--fhead "#include <gdk-pixbuf/gdk-pixbuf.h>\n#include \"gdk-pixbuf-alias.h\"\n" \
|
2001-09-19 02:10:45 +00:00
|
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
2005-03-14 19:37:00 +00:00
|
|
|
--ftail "\n#define __GDK_PIXBUF_ENUM_TYPES_C__\n#include \"gdk-pixbuf-aliasdef.c\"" \
|
2001-09-20 15:41:20 +00:00
|
|
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
|
2001-09-19 02:10:45 +00:00
|
|
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
2005-08-31 16:53:43 +00:00
|
|
|
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \
|
2003-05-06 21:55:41 +00:00
|
|
|
$(gdk_pixbuf_headers)) > gdk-pixbuf-enum-types.c
|
2001-09-19 04:34:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# gdk-pixbuf-marshal.h
|
|
|
|
#
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk-pixbuf-marshal.h: @REBUILD@ stamp-gdk-pixbuf-marshal.h
|
2001-09-16 23:54:37 +00:00
|
|
|
@true
|
2001-09-19 04:34:55 +00:00
|
|
|
|
2001-09-19 02:10:45 +00:00
|
|
|
stamp-gdk-pixbuf-marshal.h: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
|
2004-08-17 18:24:06 +00:00
|
|
|
$(GLIB_GENMARSHAL) --prefix=_gdk_pixbuf_marshal $(srcdir)/gdk-pixbuf-marshal.list --header >> xgen-gmh \
|
2003-05-06 21:55:41 +00:00
|
|
|
&& (cmp -s xgen-gmh gdk-pixbuf-marshal.h || cp xgen-gmh gdk-pixbuf-marshal.h) \
|
|
|
|
&& rm -f xgen-gmh xgen-gmh~ \
|
2001-09-16 23:54:37 +00:00
|
|
|
&& echo timestamp > $(@F)
|
2001-09-19 04:34:55 +00:00
|
|
|
|
2001-09-19 02:10:45 +00:00
|
|
|
CLEANFILES += xgen-gmh
|
2001-09-19 04:34:55 +00:00
|
|
|
MAINTAINERCLEANFILES += stamp-gdk-pixbuf-marshal.h
|
|
|
|
|
|
|
|
#
|
|
|
|
# gdk-pixbuf-marshal.c
|
|
|
|
#
|
2001-09-19 02:10:45 +00:00
|
|
|
$(srcdir)/gdk-pixbuf-marshal.c: @REBUILD@ $(srcdir)/gdk-pixbuf-marshal.list
|
2005-03-14 19:37:00 +00:00
|
|
|
(echo -e "#include <gdk-pixbuf/gdk-pixbuf.h>\n#include \"gdk-pixbuf-alias.h\"" | $(GLIB_GENMARSHAL) --prefix=_gdk_pixbuf_marshal $(srcdir)/gdk-pixbuf-marshal.list --body ) >> xgen-gmc \
|
2003-05-06 21:55:41 +00:00
|
|
|
&& cp xgen-gmc gdk-pixbuf-marshal.c \
|
2001-09-19 02:10:45 +00:00
|
|
|
&& rm -f xgen-gmc xgen-gmc~
|
2001-09-19 04:34:55 +00:00
|
|
|
|
2001-09-19 02:10:45 +00:00
|
|
|
CLEANFILES += xgen-gmc
|
2001-09-16 23:54:37 +00:00
|
|
|
|
2003-05-06 21:55:41 +00:00
|
|
|
# if srcdir!=builddir, clean out maintainer-clean files from builddir
|
|
|
|
# this allows dist to pass.
|
|
|
|
distclean-local:
|
|
|
|
if test $(srcdir) != .; then \
|
|
|
|
rm -f $(MAINTAINERCLEANFILES); \
|
|
|
|
fi
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
gdk-pixbuf-csource.1 \
|
|
|
|
makefile.msc \
|
2004-08-11 04:10:18 +00:00
|
|
|
gdk-pixbuf.symbols \
|
|
|
|
makegdkpixbufalias.pl \
|
|
|
|
abicheck.sh \
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk_pixbuf.def \
|
|
|
|
gdk_pixbuf.rc \
|
|
|
|
gdk-pixbuf-marshal.c \
|
|
|
|
gdk-pixbuf-marshal.list \
|
|
|
|
pixbufloader_ico.def \
|
|
|
|
pixbufloader_ani.def \
|
|
|
|
pixbufloader_pnm.def \
|
|
|
|
pixbufloader_xpm.def \
|
|
|
|
pixbufloader_bmp.def \
|
|
|
|
pixbufloader_jpeg.def \
|
|
|
|
pixbufloader_ras.def \
|
|
|
|
pixbufloader_gif.def \
|
|
|
|
pixbufloader_png.def \
|
|
|
|
pixbufloader_tiff.def \
|
|
|
|
pixbufloader_wbmp.def \
|
|
|
|
pixbufloader_xbm.def \
|
2005-06-20 22:06:27 +00:00
|
|
|
pixbufloader_tga.def \
|
|
|
|
gen-color-table.pl
|
2001-10-29 06:48:04 +00:00
|
|
|
|
2002-10-03 22:39:51 +00:00
|
|
|
if CROSS_COMPILING
|
|
|
|
RUN_QUERY_LOADER_TEST=false
|
|
|
|
else
|
|
|
|
RUN_QUERY_LOADER_TEST=test -z "$(DESTDIR)"
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Running this if cross compiling or if DESTDIR is set is going to
|
|
|
|
# not work at all, so skip it
|
2003-11-18 00:26:51 +00:00
|
|
|
# We use install-data-hook here to workaround a bug in automake and/or libtool
|
|
|
|
# that makes the install target for the loader libraries a dependency on
|
|
|
|
# install-data-am, and not install-exec-am. We need to ensure this gets run
|
|
|
|
# after the libraries are installed in their final locations.
|
2005-06-26 18:55:49 +00:00
|
|
|
install-data-hook: install-ms-lib install-def-file
|
2002-10-03 22:39:51 +00:00
|
|
|
@if $(RUN_QUERY_LOADER_TEST) ; then \
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
|
|
|
|
$(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders > $(DESTDIR)$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders ; \
|
|
|
|
else \
|
|
|
|
echo "***" ; \
|
|
|
|
echo "*** Warning: gdk-pixbuf.loaders not built" ; \
|
|
|
|
echo "***" ; \
|
2003-11-09 23:18:44 +00:00
|
|
|
echo "*** Generate this file manually on host" ; \
|
2002-10-03 22:39:51 +00:00
|
|
|
echo "*** system using gdk-pixbuf-query-loaders" ; \
|
|
|
|
echo "***" ; \
|
|
|
|
fi
|
|
|
|
|
2005-06-26 18:55:49 +00:00
|
|
|
uninstall-local: uninstall-ms-lib uninstall-def-file
|
2003-05-06 21:55:41 +00:00
|
|
|
rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders
|
|
|
|
|
2003-01-27 23:17:51 +00:00
|
|
|
if CROSS_COMPILING
|
|
|
|
else
|
2002-10-03 22:39:51 +00:00
|
|
|
all-local: gdk-pixbuf.loaders
|
2003-01-27 23:17:51 +00:00
|
|
|
endif
|
2002-10-03 22:39:51 +00:00
|
|
|
|
2003-12-22 00:37:04 +00:00
|
|
|
if BUILD_DYNAMIC_MODULES
|
2002-12-07 15:16:01 +00:00
|
|
|
gdk-pixbuf.loaders: $(loader_LTLIBRARIES) gdk-pixbuf-query-loaders
|
2003-01-27 23:17:51 +00:00
|
|
|
LOADERS=`echo libpixbufloader-*.la` ; \
|
|
|
|
if test "x$$LOADERS" != 'xlibpixbufloader-*.la' ; then \
|
2002-10-03 22:39:51 +00:00
|
|
|
echo "Writing a gdk-pixbuf.loader file to use when running examples before installing gdk-pixbuf."; \
|
2003-01-27 23:17:51 +00:00
|
|
|
$(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders $$LOADERS > ./gdk-pixbuf.loaders ;\
|
2002-10-03 22:39:51 +00:00
|
|
|
else \
|
|
|
|
echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
|
|
|
|
touch gdk-pixbuf.loaders; \
|
|
|
|
fi
|
2003-12-22 00:37:04 +00:00
|
|
|
else
|
|
|
|
gdk-pixbuf.loaders:
|
|
|
|
echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
|
|
|
|
touch gdk-pixbuf.loaders;
|
|
|
|
endif
|