kopia lustrzana https://gitlab.com/sane-project/backends
configure: Add option to enable USB record-replay
rodzic
46e98476ac
commit
a88b6241cd
|
@ -219,7 +219,7 @@ lib_LTLIBRARIES = libsane.la
|
|||
sanelibdir = $(libdir)/sane
|
||||
sanelib_LTLIBRARIES = $(BACKEND_LIBS_ENABLED) libsane-dll.la
|
||||
|
||||
COMMON_LIBS = ../lib/liblib.la
|
||||
COMMON_LIBS = ../lib/liblib.la $(XML_LIBS)
|
||||
|
||||
# Each backend should define a convenience library that compiles
|
||||
# all related files within backend directory. General guideline
|
||||
|
@ -1104,8 +1104,10 @@ EXTRA_DIST += xerox_mfp.conf.in
|
|||
|
||||
libdll_preload_la_SOURCES = dll.c
|
||||
libdll_preload_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=dll -DENABLE_PRELOAD
|
||||
libdll_preload_la_LIBADD = ../sanei/sanei_usb.lo $(USB_LIBS) $(XML_LIBS)
|
||||
libdll_la_SOURCES = dll.c
|
||||
libdll_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=dll
|
||||
libdll_la_LIBADD = ../sanei/sanei_usb.lo $(USB_LIBS) $(XML_LIBS)
|
||||
BUILT_SOURCES = dll-preload.h
|
||||
CLEANFILES += dll-preload.h
|
||||
|
||||
|
@ -1136,13 +1138,13 @@ EXTRA_DIST += dll.aliases
|
|||
# what backends are preloaded. It should include what is needed by
|
||||
# those backends that are actually preloaded.
|
||||
if preloadable_backends_enabled
|
||||
PRELOADABLE_BACKENDS_LIBS = ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_pv8630.lo ../sanei/sanei_pp.lo ../sanei/sanei_thread.lo ../sanei/sanei_lm983x.lo ../sanei/sanei_access.lo ../sanei/sanei_net.lo ../sanei/sanei_wire.lo ../sanei/sanei_codec_bin.lo ../sanei/sanei_pa4s2.lo ../sanei/sanei_ab306.lo ../sanei/sanei_pio.lo ../sanei/sanei_tcp.lo ../sanei/sanei_udp.lo ../sanei/sanei_magic.lo $(LIBV4L_LIBS) $(MATH_LIB) $(IEEE1284_LIBS) $(TIFF_LIBS) $(JPEG_LIBS) $(GPHOTO2_LIBS) $(SOCKET_LIBS) $(USB_LIBS) $(AVAHI_LIBS) $(SCSI_LIBS) $(PTHREAD_LIBS) $(RESMGR_LIBS)
|
||||
PRELOADABLE_BACKENDS_LIBS = ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_pv8630.lo ../sanei/sanei_pp.lo ../sanei/sanei_thread.lo ../sanei/sanei_lm983x.lo ../sanei/sanei_access.lo ../sanei/sanei_net.lo ../sanei/sanei_wire.lo ../sanei/sanei_codec_bin.lo ../sanei/sanei_pa4s2.lo ../sanei/sanei_ab306.lo ../sanei/sanei_pio.lo ../sanei/sanei_tcp.lo ../sanei/sanei_udp.lo ../sanei/sanei_magic.lo $(LIBV4L_LIBS) $(MATH_LIB) $(IEEE1284_LIBS) $(TIFF_LIBS) $(JPEG_LIBS) $(GPHOTO2_LIBS) $(SOCKET_LIBS) $(USB_LIBS) $(AVAHI_LIBS) $(SCSI_LIBS) $(PTHREAD_LIBS) $(RESMGR_LIBS) $(XML_LIBS)
|
||||
PRELOADABLE_BACKENDS_DEPS = ../sanei/sanei_config2.lo ../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_pv8630.lo ../sanei/sanei_pp.lo ../sanei/sanei_thread.lo ../sanei/sanei_lm983x.lo ../sanei/sanei_access.lo ../sanei/sanei_net.lo ../sanei/sanei_wire.lo ../sanei/sanei_codec_bin.lo ../sanei/sanei_pa4s2.lo ../sanei/sanei_ab306.lo ../sanei/sanei_pio.lo ../sanei/sanei_tcp.lo ../sanei/sanei_udp.lo ../sanei/sanei_magic.lo $(SANEI_SANEI_JPEG_LO)
|
||||
endif
|
||||
nodist_libsane_la_SOURCES = dll-s.c
|
||||
libsane_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=dll
|
||||
libsane_la_LDFLAGS = $(DIST_LIBS_LDFLAGS)
|
||||
libsane_la_LIBADD = $(COMMON_LIBS) $(PRELOADABLE_BACKENDS_ENABLED) libdll_preload.la sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo $(PRELOADABLE_BACKENDS_LIBS) $(DL_LIBS)
|
||||
libsane_la_LIBADD = $(COMMON_LIBS) $(PRELOADABLE_BACKENDS_ENABLED) libdll_preload.la sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo $(PRELOADABLE_BACKENDS_LIBS) $(DL_LIBS) $(XML_LIBS)
|
||||
|
||||
# WARNING: Automake is getting this wrong so have to do it ourselves.
|
||||
libsane_la_DEPENDENCIES = $(COMMON_LIBS) $(PRELOADABLE_BACKENDS_ENABLED) libdll_preload.la sane_strstatus.lo ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo $(PRELOADABLE_BACKENDS_DEPS)
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -430,6 +430,22 @@ AS_IF([test xyes = "x$with_usb" && test xyes != "x$have_usb"],
|
|||
])
|
||||
AM_CONDITIONAL([have_usblib], [test x != "x$USB_LIBS"])
|
||||
|
||||
dnl ******************************************************************
|
||||
dnl Check for USB record/replay support
|
||||
dnl ******************************************************************
|
||||
AC_ARG_WITH(usb_record_replay,
|
||||
[AS_HELP_STRING([--with-usb-record-replay],
|
||||
[enable USB record and replay to XML files @<:@default=no@:>@])],
|
||||
[],
|
||||
[with_usb_record_replay=no])
|
||||
|
||||
if test "$with_usb_record_replay" = "no"; then
|
||||
echo "Not including USB record and replay support"
|
||||
else
|
||||
PKG_CHECK_MODULES([XML], [libxml-2.0],
|
||||
[AC_DEFINE(WITH_USB_RECORD_REPLAY, 1, [define if USB record replay is enabled])])
|
||||
fi
|
||||
|
||||
dnl ************
|
||||
dnl SCSI Support
|
||||
dnl ************
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
## included LICENSE file for license information.
|
||||
|
||||
AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include \
|
||||
-I$(top_srcdir)/include $(USB_CFLAGS)
|
||||
-I$(top_srcdir)/include $(USB_CFLAGS) $(XML_CFLAGS)
|
||||
|
||||
noinst_LTLIBRARIES = libsanei.la
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ if have_usblib
|
|||
sane_find_scanner_SOURCES += check-usb-chip.c
|
||||
endif
|
||||
sane_find_scanner_LDADD = ../sanei/libsanei.la ../lib/liblib.la \
|
||||
$(USB_LIBS) $(IEEE1284_LIBS) $(SCSI_LIBS) \
|
||||
$(USB_LIBS) $(IEEE1284_LIBS) $(SCSI_LIBS) $(XML_LIBS) \
|
||||
../backend/sane_strstatus.lo
|
||||
|
||||
gamma4scanimage_SOURCES = gamma4scanimage.c
|
||||
|
|
Ładowanie…
Reference in New Issue