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)
committerChristian Grothoff <christian@grothoff.org>
Wed, 3 Apr 2019 11:43:15 +0000 (13:43 +0200)
po/POTFILES.in
src/util/Makefile.am

index fe788fdae4d29a7223fd343814e96c4c54d71a3d..67c22aaed99fd8c293688c6bc77d6871a4373cf2 100644 (file)
@@ -480,6 +480,7 @@ src/util/gnunet-config.c
 src/util/gnunet-config-diff.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 cd14fb4cab0551a5cbf94956bb957ad97b4c58a1..02dede3720ef1bb7854172418c08a757b12851ed 100644 (file)
@@ -204,26 +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
-
-pkgdata_DATA = \
-  gnunet-qr.py
-
-bin_SCRIPTS =\
- gnunet-qr
-
 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 \
@@ -283,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
 
@@ -670,6 +665,10 @@ EXTRA_DIST = \
   test_program_data.conf \
   test_resolver_api_data.conf \
   test_service_data.conf \
+<<<<<<< HEAD
   test_speedup_data.conf \
   gnunet-qr.in \
   gnunet-qr.py
+=======
+  test_speedup_data.conf
+>>>>>>> gnunet-qr: Add into Makefile.am and pofiles,