summaryrefslogtreecommitdiffstats
path: root/zbarcam/Makefile.am.inc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 00:06:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 00:06:44 +0000
commit44cf8ec67278bd1ab6c7f83a9993f7a5686a9541 (patch)
tree5eec4b0d1a3f163d279c3c27c03324ba49fa235a /zbarcam/Makefile.am.inc
parentInitial commit. (diff)
downloadzbar-44cf8ec67278bd1ab6c7f83a9993f7a5686a9541.tar.xz
zbar-44cf8ec67278bd1ab6c7f83a9993f7a5686a9541.zip
Adding upstream version 0.23.93.upstream/0.23.93upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'zbarcam/Makefile.am.inc')
-rw-r--r--zbarcam/Makefile.am.inc44
1 files changed, 44 insertions, 0 deletions
diff --git a/zbarcam/Makefile.am.inc b/zbarcam/Makefile.am.inc
new file mode 100644
index 0000000..df6794d
--- /dev/null
+++ b/zbarcam/Makefile.am.inc
@@ -0,0 +1,44 @@
+bin_PROGRAMS += zbarcam/zbarcam
+zbarcam_zbarcam_SOURCES = zbarcam/zbarcam.c
+zbarcam_zbarcam_LDADD = zbar/libzbar.la
+zbarcam_zbarcam_CPPFLAGS = $(AM_CPPFLAGS)
+# automake bug in "monolithic mode"?
+CLEANFILES += zbarcam/.libs/zbarcam zbarcam/moc_zbarcam_qt.h
+
+if HAVE_GTK
+if !WIN32
+bin_PROGRAMS += zbarcam/zbarcam-gtk
+zbarcam_zbarcam_gtk_SOURCES = zbarcam/zbarcam-gtk.c zbarcam/scan_video.c
+zbarcam_zbarcam_gtk_CPPFLAGS = $(GTK_CFLAGS) $(AM_CPPFLAGS)
+zbarcam_zbarcam_gtk_LDADD = $(GTK_LIBS) gtk/libzbargtk.la zbar/libzbar.la \
+ $(AM_LDADD)
+
+endif
+endif
+
+if HAVE_QT
+bin_PROGRAMS += zbarcam/zbarcam-qt
+
+zbarcam_zbarcam_qt_SOURCES = zbarcam/zbarcam-qt.cpp zbarcam/scan_video.c
+nodist_zbarcam_zbarcam_qt_SOURCES = zbarcam/moc_zbarcam_qt.h
+zbarcam_zbarcam_qt_CPPFLAGS = -Izbarcam $(QT_CFLAGS) $(AM_CPPFLAGS)
+zbarcam_zbarcam_qt_LDADD = $(QT_LIBS) qt/libzbarqt.la $(AM_LDADD)
+BUILT_SOURCES += $(nodist_zbarcam_zbarcam_qt_SOURCES)
+DISTCLEANFILES += $(nodist_zbarcam_zbarcam_qt_SOURCES) zbarcam/moc_zbarcam_qt.h
+
+
+zbarcam/moc_zbarcam_qt.h: zbarcam/zbarcam-qt.cpp
+ $(mkdir_p) zbarcam
+ $(MOC) -i $(zbarcam_zbarcam_qt_CPPFLAGS) $< -o $@
+endif
+
+
+if WIN32
+zbarcam_zbarcam_SOURCES += zbarcam/zbarcam.rc
+zbarcam_zbarcam_LDADD += zbarcam/zbarcam-rc.o @LTLIBINTL@
+
+if WITH_DIRECTSHOW
+zbarcam_zbarcam_CPPFLAGS += -DDIRECTSHOW
+endif
+
+endif