summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index e5bbe23..e869607 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,6 +41,8 @@ EXTRA_DIST = iniparser/LICENSE \
windows/installer32.nsi.in \
windows/installer64.nsi.in \
windows/mxe_ffmpeg_strip_excess_deps.patch \
+ windows/zxing-cpp.mk \
+ windows/zxing-cpp-test.cpp \
windows/mxe_qtbase_strip_excess_deps.patch \
windows/pica-client.exe.manifest.in \
windows/pica-client.nsi \
@@ -335,6 +337,22 @@ pica_client_pica_client_LDADD += $(VAAPI_X11_LIBS)
MOCFLAGS += -DHAVE_VAAPI_X11
endif
+# Pica Pica IDs as QR codes: drawn in the "Show My Pica Pica ID" dialog, read
+# from the camera by the "Scan QR Code" one. Both through ZXing-C++.
+if PICA_QRCODE
+pica_client_pica_client_SOURCES += \
+pica-client/qrcode.cpp \
+pica-client/qrcode.h \
+pica-client/dialogs/qrscandialog.cpp \
+pica-client/dialogs/qrscandialog.h
+
+nodist_pica_client_pica_client_SOURCES += moc_qrcode.cpp moc_qrscandialog.cpp
+
+pica_client_pica_client_CPPFLAGS += $(ZXING_CFLAGS)
+pica_client_pica_client_LDADD += $(ZXING_LIBS)
+MOCFLAGS += -DHAVE_QRCODE
+endif
+
pkgpicaclientdir = ${datarootdir}/pica-client
dist_pkgpicaclient_DATA = \
dhparam4096.pem \