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
|
2007-01-04 15:07:28 +00:00
|
|
|
gdk_pixbuf_def = gdk_pixbuf.def
|
2007-03-06 09:52:35 +00:00
|
|
|
gdk_pixbuf_symbols = -export-symbols gdk_pixbuf.def
|
2001-10-29 06:48:04 +00:00
|
|
|
|
2005-07-09 00:10:12 +00:00
|
|
|
gdk_pixbuf_win32_res = gdk_pixbuf-win32-res.o
|
2007-01-19 00:06:01 +00:00
|
|
|
gdk_pixbuf_win32_res_ldflag = -Wl,gdk_pixbuf-win32-res.o
|
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:
|
2007-03-06 09:52:35 +00:00
|
|
|
$(INSTALL) gdk_pixbuf.def $(DESTDIR)$(libdir)/gdk_pixbuf-$(GTK_API_VERSION).def
|
2005-06-26 18:55:49 +00:00
|
|
|
uninstall-def-file:
|
2007-01-19 00:06:01 +00:00
|
|
|
-rm $(DESTDIR)$(libdir)/gdk_pixbuf-$(GTK_API_VERSION).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
|
2007-03-06 09:52:35 +00:00
|
|
|
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
|
2006-09-10 06:39:16 +00:00
|
|
|
TESTS = abicheck.sh pltcheck.sh
|
2004-08-11 04:10:18 +00:00
|
|
|
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
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
# The PNG loader
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
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)
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_png_la_SOURCES = io-png.c
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
# The BMP loader
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_bmp_la_SOURCES = io-bmp.c
|
|
|
|
libpixbufloader_bmp_la_SOURCES = io-bmp.c
|
|
|
|
libpixbufloader_bmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_bmp_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
# The WBMP loader
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_wbmp_la_SOURCES = io-wbmp.c
|
|
|
|
libpixbufloader_wbmp_la_SOURCES = io-wbmp.c
|
|
|
|
libpixbufloader_wbmp_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_wbmp_la_LIBADD = $(module_libs)
|
2000-02-22 00:29:00 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The GIF loader
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_gif_la_SOURCES = io-gif.c io-gif-animation.c io-gif-animation.h
|
2001-05-07 15:58:47 +00:00
|
|
|
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
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_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
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_ani_la_SOURCES = io-ani.c io-ani-animation.c io-ani-animation.h
|
2002-09-06 21:14:15 +00:00
|
|
|
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)
|
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
#
|
|
|
|
# The JPEG loader
|
|
|
|
#
|
|
|
|
libstatic_pixbufloader_jpeg_la_SOURCES = io-jpeg.c
|
|
|
|
libpixbufloader_jpeg_la_SOURCES = io-jpeg.c
|
|
|
|
libpixbufloader_jpeg_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_jpeg_la_LIBADD = $(LIBJPEG) $(module_libs)
|
|
|
|
|
|
|
|
#
|
|
|
|
# The PNM loader
|
|
|
|
#
|
|
|
|
libstatic_pixbufloader_pnm_la_SOURCES = io-pnm.c
|
|
|
|
libpixbufloader_pnm_la_SOURCES = io-pnm.c
|
|
|
|
libpixbufloader_pnm_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_pnm_la_LIBADD = $(module_libs)
|
|
|
|
|
2000-02-22 00:29:00 +00:00
|
|
|
#
|
|
|
|
# The RAS loader
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_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
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_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
|
|
|
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
# The XPM loader
|
2000-07-28 00:09:36 +00:00
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_xpm_la_SOURCES = io-xpm.c
|
|
|
|
libpixbufloader_xpm_la_SOURCES = io-xpm.c
|
|
|
|
libpixbufloader_xpm_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
|
|
libpixbufloader_xpm_la_LIBADD = $(module_libs)
|
2000-07-28 00:09:36 +00:00
|
|
|
|
2001-01-22 02:08:53 +00:00
|
|
|
#
|
|
|
|
# The XBM loader
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_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
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_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
|
|
|
|
#
|
2006-10-11 12:41:14 +00:00
|
|
|
libstatic_pixbufloader_pcx_la_SOURCES = io-pcx.c
|
2003-05-21 20:20:07 +00:00
|
|
|
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
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_PNG
|
|
|
|
STATIC_PNG_LIB = libstatic-pixbufloader-png.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
PNG_LIB = libpixbufloader-png.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_BMP
|
|
|
|
STATIC_BMP_LIB = libstatic-pixbufloader-bmp.la
|
|
|
|
else
|
|
|
|
BMP_LIB = libpixbufloader-bmp.la
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_WBMP
|
|
|
|
STATIC_WBMP_LIB = libstatic-pixbufloader-wbmp.la
|
|
|
|
else
|
|
|
|
WBMP_LIB = libpixbufloader-wbmp.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if INCLUDE_GIF
|
|
|
|
STATIC_GIF_LIB = libstatic-pixbufloader-gif.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
GIF_LIB = libpixbufloader-gif.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
1999-07-26 06:39:39 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_ICO
|
|
|
|
STATIC_ICO_LIB = libstatic-pixbufloader-ico.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
ICO_LIB = libpixbufloader-ico.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
1999-11-29 16:49:39 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_ANI
|
|
|
|
STATIC_ANI_LIB = libstatic-pixbufloader-ani.la
|
|
|
|
else
|
2002-09-06 21:14:15 +00:00
|
|
|
ANI_LIB = libpixbufloader-ani.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_JPEG
|
|
|
|
if INCLUDE_JPEG
|
|
|
|
STATIC_JPEG_LIB = libstatic-pixbufloader-jpeg.la
|
|
|
|
else
|
|
|
|
JPEG_LIB = libpixbufloader-jpeg.la
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if INCLUDE_PNM
|
|
|
|
STATIC_PNM_LIB = libstatic-pixbufloader-pnm.la
|
|
|
|
else
|
|
|
|
PNM_LIB = libpixbufloader-pnm.la
|
|
|
|
endif
|
2002-09-06 21:14:15 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_RAS
|
|
|
|
STATIC_RAS_LIB = libstatic-pixbufloader-ras.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
RAS_LIB = libpixbufloader-ras.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
1999-11-05 20:37:08 +00:00
|
|
|
|
1999-07-26 06:39:39 +00:00
|
|
|
if HAVE_TIFF
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_TIFF
|
|
|
|
STATIC_TIFF_LIB = libstatic-pixbufloader-tiff.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
TIFF_LIB = libpixbufloader-tiff.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
1999-07-26 06:39:39 +00:00
|
|
|
endif
|
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_XPM
|
|
|
|
STATIC_XPM_LIB = libstatic-pixbufloader-xpm.la
|
|
|
|
else
|
2000-04-13 01:18:41 +00:00
|
|
|
XPM_LIB = libpixbufloader-xpm.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
2000-07-28 00:09:36 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_XBM
|
|
|
|
STATIC_XBM_LIB = libstatic-pixbufloader-xbm.la
|
|
|
|
else
|
2001-01-22 02:08:53 +00:00
|
|
|
XBM_LIB = libpixbufloader-xbm.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
2001-01-22 02:08:53 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_TGA
|
|
|
|
STATIC_TGA_LIB = libstatic-pixbufloader-tga.la
|
|
|
|
else
|
2001-08-21 08:51:06 +00:00
|
|
|
TGA_LIB = libpixbufloader-tga.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
2001-08-21 08:51:06 +00:00
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
if INCLUDE_PCX
|
|
|
|
STATIC_PCX_LIB = libstatic-pixbufloader-pcx.la
|
|
|
|
else
|
2003-05-21 20:20:07 +00:00
|
|
|
PCX_LIB = libpixbufloader-pcx.la
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
2003-05-21 20:20:07 +00:00
|
|
|
|
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) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(BMP_LIB) \
|
|
|
|
$(WBMP_LIB) \
|
1999-07-26 06:39:39 +00:00
|
|
|
$(GIF_LIB) \
|
1999-11-29 16:49:39 +00:00
|
|
|
$(ICO_LIB) \
|
2002-09-06 21:14:15 +00:00
|
|
|
$(ANI_LIB) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(JPEG_LIB) \
|
|
|
|
$(PNM_LIB) \
|
1999-11-05 20:37:08 +00:00
|
|
|
$(RAS_LIB) \
|
1999-11-09 23:51:35 +00:00
|
|
|
$(TIFF_LIB) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(XPM_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
|
|
|
|
2006-10-11 12:41:14 +00:00
|
|
|
endif
|
2000-02-22 00:29:00 +00:00
|
|
|
|
2002-05-07 12:59:18 +00:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
$(STATIC_PNG_LIB) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(STATIC_BMP_LIB) \
|
|
|
|
$(STATIC_WBMP_LIB) \
|
2002-05-07 12:59:18 +00:00
|
|
|
$(STATIC_GIF_LIB) \
|
|
|
|
$(STATIC_ICO_LIB) \
|
2002-09-06 21:14:15 +00:00
|
|
|
$(STATIC_ANI_LIB) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(STATIC_JPEG_LIB) \
|
|
|
|
$(STATIC_PNM_LIB) \
|
2002-05-07 12:59:18 +00:00
|
|
|
$(STATIC_RAS_LIB) \
|
|
|
|
$(STATIC_TIFF_LIB) \
|
2006-10-11 12:41:14 +00:00
|
|
|
$(STATIC_XPM_LIB) \
|
2002-05-07 12:59:18 +00:00
|
|
|
$(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
|
|
|
|
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)\" \
|
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\""
|
2006-12-21 17:00:59 +00:00
|
|
|
LDADDS = libgdk_pixbuf-$(GTK_API_VERSION).la $(GLIB_LIBS)
|
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 \
|
2007-03-08 16:21:09 +00:00
|
|
|
gdk-pixbuf-scaled-anim.c \
|
2005-05-25 19:33:35 +00:00
|
|
|
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 \
|
2007-03-08 16:21:09 +00:00
|
|
|
gdk-pixbuf-scaled-anim.h \
|
2005-06-20 22:06:27 +00:00
|
|
|
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 \
|
2006-10-02 18:02:15 +00:00
|
|
|
pltcheck.sh \
|
2003-05-06 21:55:41 +00:00
|
|
|
gdk_pixbuf.def \
|
|
|
|
gdk_pixbuf.rc \
|
|
|
|
gdk-pixbuf-marshal.c \
|
|
|
|
gdk-pixbuf-marshal.list \
|
2005-06-20 22:06:27 +00:00
|
|
|
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
|
2006-04-12 19:48:27 +00:00
|
|
|
gdk-pixbuf.loaders: $(loader_LTLIBRARIES) gdk-pixbuf-query-loaders$(EXEEXT)
|
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
|