mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
be8f3c72ea
2006-06-21 Matthias Clasen <mclasen@redhat.com> Apply a patch by John Palmieri to use buffered io using GIOChannels, clean up error handling and support Cups 1.2 api in the printing code. * acconfig.h: * configure.in: Detect Cups 1.2 * gtk/gtkdebug.h: * gtk/gtkmain.c: Add a printing debug key. * gtk/gtkprintbackend.[hc]: Remove the GError parameter from gtk_print_backend_print_stream, and take a GIOChannel instead of an fd. * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: Replace the fd parameter of _gtk_printer_create_cairo_surface by a GIOChannel. * gtk/gtkprintjob.[hc]: Remove the GError parameter from gtk_print_job_send and make it return void. * gtk/gtkprintoperation-unix.c: * gtk/gtkprintjob.c: Adjust callers, add some debugging support. * modules/printbackends/Makefile.am: Fix DIST_SUBDIRS. * modules/printbackends/cups/Makefile.am: * modules/printbackends/lpr/Makefile.am: Add debug CFLAGS. * modules/printbackends/cups/gtkcupsutils.[hc]: * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/file/gtkprintbackendfile.c: * modules/printbackends/lpr/gtkprintbackendfile.c: Adapt to the GIOChannel and GError changes, add debug output
36 lines
806 B
Makefile
36 lines
806 B
Makefile
if OS_WIN32
|
|
no_undefined = -no-undefined
|
|
endif
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/gtk \
|
|
-I$(top_builddir)/gtk \
|
|
-I$(top_srcdir)/gdk \
|
|
-I$(top_builddir)/gdk \
|
|
$(CUPS_CFLAGS) \
|
|
-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED \
|
|
$(GTK_DEP_CFLAGS) \
|
|
$(GTK_DEBUG_FLAGS)
|
|
|
|
LDADDS = \
|
|
$(GTK_DEP_LIBS) \
|
|
$(top_builddir)/gtk/$(gtktargetlib)
|
|
|
|
backenddir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/printbackends
|
|
|
|
backend_LTLIBRARIES = libprintbackend-cups.la
|
|
|
|
libprintbackend_cups_la_SOURCES = \
|
|
gtkprintbackendcups.c \
|
|
gtkprintercups.c \
|
|
gtkcupsutils.c
|
|
|
|
noinst_HEADERS = \
|
|
gtkprintbackendcups.h \
|
|
gtkprintercups.h \
|
|
gtkcupsutils.h
|
|
|
|
libprintbackend_cups_la_LDFLAGS = -avoid-version -module $(no_undefined)
|
|
libprintbackend_cups_la_LIBADD = $(LDADDS) $(CUPS_LIBS)
|