gnunet-qr: Add into Makefile.am and pofiles,
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Sun, 3 Mar 2019 01:06:31 +0000 (02:06 +0100)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Wed, 13 Mar 2019 17:22:06 +0000 (18:22 +0100)
po/POTFILES.in
src/util/Makefile.am

index 09e4c533d964b4d61503b690c38945bcd3d1ba1f..deeffe18003a079e420ab27cd54b16217377bf11 100644 (file)
@@ -480,6 +480,7 @@ src/util/gnunet-config-diff.c
 src/util/gnunet-config.c
 src/util/gnunet-ecc.c
 src/util/gnunet-helper-w32-console.c
+src/util/gnunet-qr.c
 src/util/gnunet-resolver.c
 src/util/gnunet-scrypt.c
 src/util/gnunet-service-resolver.c
index 645289f5971d1f71c2b92e11c5d046a81ac96414..ba3c98ad13e1e1523b5c23c2bf5f9eb4a0a9d848 100644 (file)
@@ -204,24 +204,15 @@ libexec_PROGRAMS = \
  gnunet-timeout \
  $(W32CONSOLEHELPER)
 
-do_subst = $(SED) -e 's,[@]PREFIX[@],$(prefix),g'
-
-gnunet-qr: gnunet-qr.in Makefile
-       $(do_subst) < $(srcdir)/gnunet-qr.in > gnunet-qr
-       chmod +x gnunet-qr
-
-CLEANFILES = gnunet-qr
-
-bin_SCRIPTS =\
- gnunet-qr \
- gnunet-qr.py
-
 bin_PROGRAMS = \
  gnunet-resolver \
  gnunet-config \
  $(GNUNET_ECC) \
  $(GNUNET_SCRYPT) \
  gnunet-uri
+if HAVE_ZBAR
+bin_PROGRAMS += gnunet-qr
+endif
 
 noinst_PROGRAMS = \
  gnunet-config-diff \
@@ -281,13 +272,19 @@ gnunet_config_LDADD = \
   libgnunetutil.la \
   $(GN_LIBINTL)
 
-
 gnunet_uri_SOURCES = \
  gnunet-uri.c
 gnunet_uri_LDADD = \
   libgnunetutil.la \
   $(GN_LIBINTL)
 
+
+gnunet_qr_SOURCES = \
+  gnunet-qr.c \
+  gnunet-qr-utils.h
+gnunet_qr_LDFLAGS= $(libzbar_LIBS)
+gnunet_qr_CFLAGS = $(libzbar_CFLAGS)
+
 plugin_LTLIBRARIES = \
   libgnunet_plugin_test.la
 
@@ -668,5 +665,4 @@ EXTRA_DIST = \
   test_program_data.conf \
   test_resolver_api_data.conf \
   test_service_data.conf \
-  test_speedup_data.conf \
-  gnunet-qr.in
+  test_speedup_data.conf