forked from AuroraMiddleware/gtk
eed9e72e83
Show printers advertised by avahi on local network. CUPS backend now looks for _ipps._tcp and _ipp._tcp services offered by avahi. If it finds such a service (printer) it requests its attributes through IPP_GET_PRINTER_ATTRIBUTES ipp request and adds it to the list of printers. Such printer behaves like a remote printer then. If an avahi printer is a default printer then it is considered default by the backend only if there is no local or remote default printer. This functionality is enabled when building Gtk+ with CUPS 1.6 or later because it replaces browsing protocol removed in CUPS 1.6. https://bugzilla.gnome.org/show_bug.cgi?id=688956
44 lines
977 B
Makefile
44 lines
977 B
Makefile
include $(top_srcdir)/Makefile.decl
|
|
|
|
if PLATFORM_WIN32
|
|
no_undefined = -no-undefined
|
|
endif
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/gtk \
|
|
-I$(top_builddir)/gtk \
|
|
-I$(top_srcdir)/gdk \
|
|
-I$(top_builddir)/gdk \
|
|
$(CUPS_CFLAGS) \
|
|
$(COLORD_CFLAGS) \
|
|
$(AVAHI_CFLAGS) \
|
|
-DGTK_COMPILATION \
|
|
-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED \
|
|
$(GTK_DEP_CFLAGS) \
|
|
$(GTK_DEBUG_FLAGS)
|
|
|
|
LDADDS = \
|
|
$(top_builddir)/gtk/libgtk-3.la \
|
|
$(COLORD_LIBS) \
|
|
$(GTK_DEP_LIBS)
|
|
|
|
backenddir = $(libdir)/gtk-3.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) $(AVAHI_LIBS)
|
|
|
|
-include $(top_srcdir)/git.mk
|