LinuxTV Patchwork [4/8,for,ZBar] Disable zbarcam-gtk on Windows

login
register
mail settings
Submitter ?????? ?????????
Date April 9, 2019, 12:38 p.m.
Message ID <20190409123842.19600-5-lrn1986@gmail.com>
Download mbox | patch
Permalink /patch/55578/
State New
Headers show

Comments

?????? ????????? - April 9, 2019, 12:38 p.m.
It requires scan_video.c, which includes linux/videodev2.h, so
the code is clearly not meant to be built for Windows, even if
GTK is available there.

Signed-off-by: ?????? ????????? <lrn1986@gmail.com>
---
 zbarcam/Makefile.am.inc | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/zbarcam/Makefile.am.inc b/zbarcam/Makefile.am.inc
index b112783..ad16d3c 100644
--- a/zbarcam/Makefile.am.inc
+++ b/zbarcam/Makefile.am.inc
@@ -5,12 +5,14 @@  zbarcam_zbarcam_LDADD = zbar/libzbar.la
 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

Privacy Policy