diff --git a/Makefile b/Makefile
index 6af56d44..2564a351 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,240 @@
-# Make libzint and zint together
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 3.2
-zint:
- $(MAKE) -C backend/
- $(MAKE) -C frontend/
+# Default target executed when no arguments are given to make.
+default_target: all
+.PHONY : default_target
-install:
- $(MAKE) install -C backend/
- $(MAKE) install -C frontend/
+# Allow only one "make -f Makefile2" at a time, but pass parallelism.
+.NOTPARALLEL:
-uninstall:
- $(MAKE) uninstall -C frontend/
- $(MAKE) uninstall -C backend/
+#=============================================================================
+# Special targets provided by cmake.
+# Disable implicit rules so canonical targets will work.
+.SUFFIXES:
+
+# Remove some rules from gmake that .SUFFIXES does not remove.
+SUFFIXES =
+
+.SUFFIXES: .hpux_make_needs_suffix_list
+
+# Suppress display of executed commands.
+$(VERBOSE).SILENT:
+
+# A target that is always out of date.
+cmake_force:
+.PHONY : cmake_force
+
+#=============================================================================
+# Set environment variables for the build.
+
+# The shell in which to execute make rules.
+SHELL = /bin/sh
+
+# The CMake executable.
+CMAKE_COMMAND = /usr/bin/cmake
+
+# The command to remove a file.
+RM = /usr/bin/cmake -E remove -f
+
+# Escaping for special characters.
+EQUALS = =
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /home/hooper/zint/zint-code
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /home/hooper/zint/zint-code
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target install/strip
+install/strip: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip
+
+# Special rule for the target install/strip
+install/strip/fast: install/strip
+.PHONY : install/strip/fast
+
+# Special rule for the target edit_cache
+edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
+ /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+.PHONY : edit_cache/fast
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+ /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+.PHONY : rebuild_cache/fast
+
+# Special rule for the target install
+install: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install
+
+# Special rule for the target install
+install/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install/fast
+
+# Special rule for the target list_install_components
+list_install_components:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Devel\" \"Unspecified\""
+.PHONY : list_install_components
+
+# Special rule for the target list_install_components
+list_install_components/fast: list_install_components
+.PHONY : list_install_components/fast
+
+# Special rule for the target install/local
+install/local: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local
+
+# Special rule for the target install/local
+install/local/fast: install/local
+.PHONY : install/local/fast
+
+# The main all target
+all: cmake_check_build_system
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles /home/hooper/zint/zint-code/CMakeFiles/progress.marks
+ $(MAKE) -f CMakeFiles/Makefile2 all
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
clean:
- $(MAKE) clean -C backend/
- $(MAKE) clean -C frontend/
+ $(MAKE) -f CMakeFiles/Makefile2 clean
+.PHONY : clean
+
+# The main clean target
+clean/fast: clean
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+ $(MAKE) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+ $(MAKE) -f CMakeFiles/Makefile2 preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+#=============================================================================
+# Target rules for targets named uninstall
+
+# Build rule for target.
+uninstall: cmake_check_build_system
+ $(MAKE) -f CMakeFiles/Makefile2 uninstall
+.PHONY : uninstall
+
+# fast build rule for target.
+uninstall/fast:
+ $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build
+.PHONY : uninstall/fast
+
+#=============================================================================
+# Target rules for targets named zint
+
+# Build rule for target.
+zint: cmake_check_build_system
+ $(MAKE) -f CMakeFiles/Makefile2 zint
+.PHONY : zint
+
+# fast build rule for target.
+zint/fast:
+ $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/build
+.PHONY : zint/fast
+
+#=============================================================================
+# Target rules for targets named zint_frontend
+
+# Build rule for target.
+zint_frontend: cmake_check_build_system
+ $(MAKE) -f CMakeFiles/Makefile2 zint_frontend
+.PHONY : zint_frontend
+
+# fast build rule for target.
+zint_frontend/fast:
+ $(MAKE) -f frontend/CMakeFiles/zint_frontend.dir/build.make frontend/CMakeFiles/zint_frontend.dir/build
+.PHONY : zint_frontend/fast
+
+#=============================================================================
+# Target rules for targets named QZint
+
+# Build rule for target.
+QZint: cmake_check_build_system
+ $(MAKE) -f CMakeFiles/Makefile2 QZint
+.PHONY : QZint
+
+# fast build rule for target.
+QZint/fast:
+ $(MAKE) -f backend_qt4/CMakeFiles/QZint.dir/build.make backend_qt4/CMakeFiles/QZint.dir/build
+.PHONY : QZint/fast
+
+#=============================================================================
+# Target rules for targets named zint-qt
+
+# Build rule for target.
+zint-qt: cmake_check_build_system
+ $(MAKE) -f CMakeFiles/Makefile2 zint-qt
+.PHONY : zint-qt
+
+# fast build rule for target.
+zint-qt/fast:
+ $(MAKE) -f frontend_qt4/CMakeFiles/zint-qt.dir/build.make frontend_qt4/CMakeFiles/zint-qt.dir/build
+.PHONY : zint-qt/fast
+
+# Help Target
+help:
+ @echo "The following are some of the valid targets for this Makefile:"
+ @echo "... all (the default if no target is provided)"
+ @echo "... clean"
+ @echo "... depend"
+ @echo "... install/strip"
+ @echo "... uninstall"
+ @echo "... edit_cache"
+ @echo "... rebuild_cache"
+ @echo "... install"
+ @echo "... list_install_components"
+ @echo "... install/local"
+ @echo "... zint"
+ @echo "... zint_frontend"
+ @echo "... QZint"
+ @echo "... zint-qt"
+.PHONY : help
+
+
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+ $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
diff --git a/backend/Makefile b/backend/Makefile
index 53d147e0..83feea07 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -1,62 +1,1022 @@
-# Linux makefile for libzint
-#
-# make compiles
-# make install copies to /usr/local/lib
-# make uninstall removes library
-# make clean cleans up a previous compilation and any object or editor files
-#
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 3.2
-ZINT_VERSION:=-DZINT_VERSION=\"2.4.4\"
+# Default target executed when no arguments are given to make.
+default_target: all
+.PHONY : default_target
+# Allow only one "make -f Makefile2" at a time, but pass parallelism.
+.NOTPARALLEL:
-CC := gcc
-INCLUDE := -I/usr/include
-CFLAGS := -g
+#=============================================================================
+# Special targets provided by cmake.
-prefix := /usr
-includedir := $(prefix)/include
-libdir := $(prefix)/lib
-DESTDIR :=
+# Disable implicit rules so canonical targets will work.
+.SUFFIXES:
-COMMON:= common.c render.c png.c library.c ps.c large.c reedsol.c gs1.c svg.c
-COMMON_OBJ:= common.o render.o png.o library.o ps.o large.o reedsol.o gs1.o svg.o
-ONEDIM:= code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c
-ONEDIM_OBJ:= code.o code128.o 2of5.o upcean.o telepen.o medical.o plessey.o rss.o
-POSTAL:= postal.c auspost.c imail.c
-POSTAL_OBJ:= postal.o auspost.o imail.o
-TWODIM:= code16k.c dmatrix.c pdf417.c qr.c maxicode.c composite.c aztec.c code49.c code1.c gridmtx.c
-TWODIM_OBJ:= code16k.o dmatrix.o pdf417.o qr.o maxicode.o composite.o aztec.o code49.o code1.o gridmtx.o
-OBJS:=$(COMMON_OBJ) $(ONEDIM_OBJ) $(TWODIM_OBJ) $(POSTAL_OBJ)
-LIBS:= -lz -lm -lpng
+# Remove some rules from gmake that .SUFFIXES does not remove.
+SUFFIXES =
-all: libzint.a libzint.so
+.SUFFIXES: .hpux_make_needs_suffix_list
-libzint.a: $(OBJS)
- $(AR) rcs libzint.a $(OBJS)
-
-libzint.so.2.4.4: $(OBJS)
- $(CC) $(CFLAGS) $(ZINT_VERSION) -shared -Wl,-soname,libzint.so -o libzint.so.2.4.4 $(INCLUDE) $(OBJS) $(LIBS)
+# Suppress display of executed commands.
+$(VERBOSE).SILENT:
-libzint.so: libzint.so.2.4.4
- rm -f libzint.so
- ln -s libzint.so.* libzint.so
+# A target that is always out of date.
+cmake_force:
+.PHONY : cmake_force
-%.o: %.c
- $(CC) -Wall -fPIC $(CFLAGS) $(ZINT_VERSION) -c -o $@ $<
+#=============================================================================
+# Set environment variables for the build.
-.PHONY: install uninstall clean dist
+# The shell in which to execute make rules.
+SHELL = /bin/sh
-install:
- test "$(UID)" = "0" && ldconfig -n $(PWD) || true
- install -d $(DESTDIR)$(libdir)
- mv libzint.* $(DESTDIR)$(libdir)
- install -D -p --mode=0644 zint.h $(DESTDIR)$(includedir)/zint.h
+# The CMake executable.
+CMAKE_COMMAND = /usr/bin/cmake
-uninstall:
- rm $(DESTDIR)$(libdir)/libzint.*
- rm $(DESTDIR)$(includedir)/zint.h
+# The command to remove a file.
+RM = /usr/bin/cmake -E remove -f
+# Escaping for special characters.
+EQUALS = =
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /home/hooper/zint/zint-code
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /home/hooper/zint/zint-code
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target install/strip
+install/strip: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip
+
+# Special rule for the target install/strip
+install/strip/fast: install/strip
+.PHONY : install/strip/fast
+
+# Special rule for the target edit_cache
+edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
+ /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+.PHONY : edit_cache/fast
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+ /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+.PHONY : rebuild_cache/fast
+
+# Special rule for the target install
+install: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install
+
+# Special rule for the target install
+install/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install/fast
+
+# Special rule for the target list_install_components
+list_install_components:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Devel\" \"Unspecified\""
+.PHONY : list_install_components
+
+# Special rule for the target list_install_components
+list_install_components/fast: list_install_components
+.PHONY : list_install_components/fast
+
+# Special rule for the target install/local
+install/local: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local
+
+# Special rule for the target install/local
+install/local/fast: install/local
+.PHONY : install/local/fast
+
+# The main all target
+all: cmake_check_build_system
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles /home/hooper/zint/zint-code/backend/CMakeFiles/progress.marks
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 backend/all
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
clean:
- rm -f libzint.* *.o *.a *~
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 backend/clean
+.PHONY : clean
+
+# The main clean target
+clean/fast: clean
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 backend/preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 backend/preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+# Convenience name for target.
+backend/CMakeFiles/zint.dir/rule:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 backend/CMakeFiles/zint.dir/rule
+.PHONY : backend/CMakeFiles/zint.dir/rule
+
+# Convenience name for target.
+zint: backend/CMakeFiles/zint.dir/rule
+.PHONY : zint
+
+# fast build rule for target.
+zint/fast:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/build
+.PHONY : zint/fast
+
+2of5.o: 2of5.c.o
+.PHONY : 2of5.o
+
+# target to build an object file
+2of5.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/2of5.c.o
+.PHONY : 2of5.c.o
+
+2of5.i: 2of5.c.i
+.PHONY : 2of5.i
+
+# target to preprocess a source file
+2of5.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/2of5.c.i
+.PHONY : 2of5.c.i
+
+2of5.s: 2of5.c.s
+.PHONY : 2of5.s
+
+# target to generate assembly for a file
+2of5.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/2of5.c.s
+.PHONY : 2of5.c.s
+
+auspost.o: auspost.c.o
+.PHONY : auspost.o
+
+# target to build an object file
+auspost.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/auspost.c.o
+.PHONY : auspost.c.o
+
+auspost.i: auspost.c.i
+.PHONY : auspost.i
+
+# target to preprocess a source file
+auspost.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/auspost.c.i
+.PHONY : auspost.c.i
+
+auspost.s: auspost.c.s
+.PHONY : auspost.s
+
+# target to generate assembly for a file
+auspost.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/auspost.c.s
+.PHONY : auspost.c.s
+
+aztec.o: aztec.c.o
+.PHONY : aztec.o
+
+# target to build an object file
+aztec.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/aztec.c.o
+.PHONY : aztec.c.o
+
+aztec.i: aztec.c.i
+.PHONY : aztec.i
+
+# target to preprocess a source file
+aztec.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/aztec.c.i
+.PHONY : aztec.c.i
+
+aztec.s: aztec.c.s
+.PHONY : aztec.s
+
+# target to generate assembly for a file
+aztec.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/aztec.c.s
+.PHONY : aztec.c.s
+
+code.o: code.c.o
+.PHONY : code.o
+
+# target to build an object file
+code.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code.c.o
+.PHONY : code.c.o
+
+code.i: code.c.i
+.PHONY : code.i
+
+# target to preprocess a source file
+code.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code.c.i
+.PHONY : code.c.i
+
+code.s: code.c.s
+.PHONY : code.s
+
+# target to generate assembly for a file
+code.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code.c.s
+.PHONY : code.c.s
+
+code1.o: code1.c.o
+.PHONY : code1.o
+
+# target to build an object file
+code1.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code1.c.o
+.PHONY : code1.c.o
+
+code1.i: code1.c.i
+.PHONY : code1.i
+
+# target to preprocess a source file
+code1.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code1.c.i
+.PHONY : code1.c.i
+
+code1.s: code1.c.s
+.PHONY : code1.s
+
+# target to generate assembly for a file
+code1.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code1.c.s
+.PHONY : code1.c.s
+
+code128.o: code128.c.o
+.PHONY : code128.o
+
+# target to build an object file
+code128.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code128.c.o
+.PHONY : code128.c.o
+
+code128.i: code128.c.i
+.PHONY : code128.i
+
+# target to preprocess a source file
+code128.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code128.c.i
+.PHONY : code128.c.i
+
+code128.s: code128.c.s
+.PHONY : code128.s
+
+# target to generate assembly for a file
+code128.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code128.c.s
+.PHONY : code128.c.s
+
+code16k.o: code16k.c.o
+.PHONY : code16k.o
+
+# target to build an object file
+code16k.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code16k.c.o
+.PHONY : code16k.c.o
+
+code16k.i: code16k.c.i
+.PHONY : code16k.i
+
+# target to preprocess a source file
+code16k.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code16k.c.i
+.PHONY : code16k.c.i
+
+code16k.s: code16k.c.s
+.PHONY : code16k.s
+
+# target to generate assembly for a file
+code16k.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code16k.c.s
+.PHONY : code16k.c.s
+
+code49.o: code49.c.o
+.PHONY : code49.o
+
+# target to build an object file
+code49.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code49.c.o
+.PHONY : code49.c.o
+
+code49.i: code49.c.i
+.PHONY : code49.i
+
+# target to preprocess a source file
+code49.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code49.c.i
+.PHONY : code49.c.i
+
+code49.s: code49.c.s
+.PHONY : code49.s
+
+# target to generate assembly for a file
+code49.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/code49.c.s
+.PHONY : code49.c.s
+
+common.o: common.c.o
+.PHONY : common.o
+
+# target to build an object file
+common.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/common.c.o
+.PHONY : common.c.o
+
+common.i: common.c.i
+.PHONY : common.i
+
+# target to preprocess a source file
+common.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/common.c.i
+.PHONY : common.c.i
+
+common.s: common.c.s
+.PHONY : common.s
+
+# target to generate assembly for a file
+common.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/common.c.s
+.PHONY : common.c.s
+
+composite.o: composite.c.o
+.PHONY : composite.o
+
+# target to build an object file
+composite.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/composite.c.o
+.PHONY : composite.c.o
+
+composite.i: composite.c.i
+.PHONY : composite.i
+
+# target to preprocess a source file
+composite.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/composite.c.i
+.PHONY : composite.c.i
+
+composite.s: composite.c.s
+.PHONY : composite.s
+
+# target to generate assembly for a file
+composite.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/composite.c.s
+.PHONY : composite.c.s
+
+dmatrix.o: dmatrix.c.o
+.PHONY : dmatrix.o
+
+# target to build an object file
+dmatrix.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/dmatrix.c.o
+.PHONY : dmatrix.c.o
+
+dmatrix.i: dmatrix.c.i
+.PHONY : dmatrix.i
+
+# target to preprocess a source file
+dmatrix.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/dmatrix.c.i
+.PHONY : dmatrix.c.i
+
+dmatrix.s: dmatrix.c.s
+.PHONY : dmatrix.s
+
+# target to generate assembly for a file
+dmatrix.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/dmatrix.c.s
+.PHONY : dmatrix.c.s
+
+gridmtx.o: gridmtx.c.o
+.PHONY : gridmtx.o
+
+# target to build an object file
+gridmtx.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gridmtx.c.o
+.PHONY : gridmtx.c.o
+
+gridmtx.i: gridmtx.c.i
+.PHONY : gridmtx.i
+
+# target to preprocess a source file
+gridmtx.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gridmtx.c.i
+.PHONY : gridmtx.c.i
+
+gridmtx.s: gridmtx.c.s
+.PHONY : gridmtx.s
+
+# target to generate assembly for a file
+gridmtx.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gridmtx.c.s
+.PHONY : gridmtx.c.s
+
+gs1.o: gs1.c.o
+.PHONY : gs1.o
+
+# target to build an object file
+gs1.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gs1.c.o
+.PHONY : gs1.c.o
+
+gs1.i: gs1.c.i
+.PHONY : gs1.i
+
+# target to preprocess a source file
+gs1.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gs1.c.i
+.PHONY : gs1.c.i
+
+gs1.s: gs1.c.s
+.PHONY : gs1.s
+
+# target to generate assembly for a file
+gs1.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/gs1.c.s
+.PHONY : gs1.c.s
+
+hanxin.o: hanxin.c.o
+.PHONY : hanxin.o
+
+# target to build an object file
+hanxin.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/hanxin.c.o
+.PHONY : hanxin.c.o
+
+hanxin.i: hanxin.c.i
+.PHONY : hanxin.i
+
+# target to preprocess a source file
+hanxin.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/hanxin.c.i
+.PHONY : hanxin.c.i
+
+hanxin.s: hanxin.c.s
+.PHONY : hanxin.s
+
+# target to generate assembly for a file
+hanxin.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/hanxin.c.s
+.PHONY : hanxin.c.s
+
+imail.o: imail.c.o
+.PHONY : imail.o
+
+# target to build an object file
+imail.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/imail.c.o
+.PHONY : imail.c.o
+
+imail.i: imail.c.i
+.PHONY : imail.i
+
+# target to preprocess a source file
+imail.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/imail.c.i
+.PHONY : imail.c.i
+
+imail.s: imail.c.s
+.PHONY : imail.s
+
+# target to generate assembly for a file
+imail.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/imail.c.s
+.PHONY : imail.c.s
+
+large.o: large.c.o
+.PHONY : large.o
+
+# target to build an object file
+large.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/large.c.o
+.PHONY : large.c.o
+
+large.i: large.c.i
+.PHONY : large.i
+
+# target to preprocess a source file
+large.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/large.c.i
+.PHONY : large.c.i
+
+large.s: large.c.s
+.PHONY : large.s
+
+# target to generate assembly for a file
+large.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/large.c.s
+.PHONY : large.c.s
+
+library.o: library.c.o
+.PHONY : library.o
+
+# target to build an object file
+library.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/library.c.o
+.PHONY : library.c.o
+
+library.i: library.c.i
+.PHONY : library.i
+
+# target to preprocess a source file
+library.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/library.c.i
+.PHONY : library.c.i
+
+library.s: library.c.s
+.PHONY : library.s
+
+# target to generate assembly for a file
+library.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/library.c.s
+.PHONY : library.c.s
+
+maxicode.o: maxicode.c.o
+.PHONY : maxicode.o
+
+# target to build an object file
+maxicode.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/maxicode.c.o
+.PHONY : maxicode.c.o
+
+maxicode.i: maxicode.c.i
+.PHONY : maxicode.i
+
+# target to preprocess a source file
+maxicode.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/maxicode.c.i
+.PHONY : maxicode.c.i
+
+maxicode.s: maxicode.c.s
+.PHONY : maxicode.s
+
+# target to generate assembly for a file
+maxicode.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/maxicode.c.s
+.PHONY : maxicode.c.s
+
+medical.o: medical.c.o
+.PHONY : medical.o
+
+# target to build an object file
+medical.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/medical.c.o
+.PHONY : medical.c.o
+
+medical.i: medical.c.i
+.PHONY : medical.i
+
+# target to preprocess a source file
+medical.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/medical.c.i
+.PHONY : medical.c.i
+
+medical.s: medical.c.s
+.PHONY : medical.s
+
+# target to generate assembly for a file
+medical.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/medical.c.s
+.PHONY : medical.c.s
+
+pdf417.o: pdf417.c.o
+.PHONY : pdf417.o
+
+# target to build an object file
+pdf417.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/pdf417.c.o
+.PHONY : pdf417.c.o
+
+pdf417.i: pdf417.c.i
+.PHONY : pdf417.i
+
+# target to preprocess a source file
+pdf417.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/pdf417.c.i
+.PHONY : pdf417.c.i
+
+pdf417.s: pdf417.c.s
+.PHONY : pdf417.s
+
+# target to generate assembly for a file
+pdf417.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/pdf417.c.s
+.PHONY : pdf417.c.s
+
+plessey.o: plessey.c.o
+.PHONY : plessey.o
+
+# target to build an object file
+plessey.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/plessey.c.o
+.PHONY : plessey.c.o
+
+plessey.i: plessey.c.i
+.PHONY : plessey.i
+
+# target to preprocess a source file
+plessey.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/plessey.c.i
+.PHONY : plessey.c.i
+
+plessey.s: plessey.c.s
+.PHONY : plessey.s
+
+# target to generate assembly for a file
+plessey.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/plessey.c.s
+.PHONY : plessey.c.s
+
+png.o: png.c.o
+.PHONY : png.o
+
+# target to build an object file
+png.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/png.c.o
+.PHONY : png.c.o
+
+png.i: png.c.i
+.PHONY : png.i
+
+# target to preprocess a source file
+png.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/png.c.i
+.PHONY : png.c.i
+
+png.s: png.c.s
+.PHONY : png.s
+
+# target to generate assembly for a file
+png.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/png.c.s
+.PHONY : png.c.s
+
+postal.o: postal.c.o
+.PHONY : postal.o
+
+# target to build an object file
+postal.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/postal.c.o
+.PHONY : postal.c.o
+
+postal.i: postal.c.i
+.PHONY : postal.i
+
+# target to preprocess a source file
+postal.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/postal.c.i
+.PHONY : postal.c.i
+
+postal.s: postal.c.s
+.PHONY : postal.s
+
+# target to generate assembly for a file
+postal.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/postal.c.s
+.PHONY : postal.c.s
+
+ps.o: ps.c.o
+.PHONY : ps.o
+
+# target to build an object file
+ps.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/ps.c.o
+.PHONY : ps.c.o
+
+ps.i: ps.c.i
+.PHONY : ps.i
+
+# target to preprocess a source file
+ps.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/ps.c.i
+.PHONY : ps.c.i
+
+ps.s: ps.c.s
+.PHONY : ps.s
+
+# target to generate assembly for a file
+ps.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/ps.c.s
+.PHONY : ps.c.s
+
+qr.o: qr.c.o
+.PHONY : qr.o
+
+# target to build an object file
+qr.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/qr.c.o
+.PHONY : qr.c.o
+
+qr.i: qr.c.i
+.PHONY : qr.i
+
+# target to preprocess a source file
+qr.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/qr.c.i
+.PHONY : qr.c.i
+
+qr.s: qr.c.s
+.PHONY : qr.s
+
+# target to generate assembly for a file
+qr.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/qr.c.s
+.PHONY : qr.c.s
+
+reedsol.o: reedsol.c.o
+.PHONY : reedsol.o
+
+# target to build an object file
+reedsol.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/reedsol.c.o
+.PHONY : reedsol.c.o
+
+reedsol.i: reedsol.c.i
+.PHONY : reedsol.i
+
+# target to preprocess a source file
+reedsol.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/reedsol.c.i
+.PHONY : reedsol.c.i
+
+reedsol.s: reedsol.c.s
+.PHONY : reedsol.s
+
+# target to generate assembly for a file
+reedsol.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/reedsol.c.s
+.PHONY : reedsol.c.s
+
+render.o: render.c.o
+.PHONY : render.o
+
+# target to build an object file
+render.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/render.c.o
+.PHONY : render.c.o
+
+render.i: render.c.i
+.PHONY : render.i
+
+# target to preprocess a source file
+render.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/render.c.i
+.PHONY : render.c.i
+
+render.s: render.c.s
+.PHONY : render.s
+
+# target to generate assembly for a file
+render.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/render.c.s
+.PHONY : render.c.s
+
+rss.o: rss.c.o
+.PHONY : rss.o
+
+# target to build an object file
+rss.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/rss.c.o
+.PHONY : rss.c.o
+
+rss.i: rss.c.i
+.PHONY : rss.i
+
+# target to preprocess a source file
+rss.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/rss.c.i
+.PHONY : rss.c.i
+
+rss.s: rss.c.s
+.PHONY : rss.s
+
+# target to generate assembly for a file
+rss.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/rss.c.s
+.PHONY : rss.c.s
+
+svg.o: svg.c.o
+.PHONY : svg.o
+
+# target to build an object file
+svg.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/svg.c.o
+.PHONY : svg.c.o
+
+svg.i: svg.c.i
+.PHONY : svg.i
+
+# target to preprocess a source file
+svg.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/svg.c.i
+.PHONY : svg.c.i
+
+svg.s: svg.c.s
+.PHONY : svg.s
+
+# target to generate assembly for a file
+svg.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/svg.c.s
+.PHONY : svg.c.s
+
+telepen.o: telepen.c.o
+.PHONY : telepen.o
+
+# target to build an object file
+telepen.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/telepen.c.o
+.PHONY : telepen.c.o
+
+telepen.i: telepen.c.i
+.PHONY : telepen.i
+
+# target to preprocess a source file
+telepen.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/telepen.c.i
+.PHONY : telepen.c.i
+
+telepen.s: telepen.c.s
+.PHONY : telepen.s
+
+# target to generate assembly for a file
+telepen.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/telepen.c.s
+.PHONY : telepen.c.s
+
+upcean.o: upcean.c.o
+.PHONY : upcean.o
+
+# target to build an object file
+upcean.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/upcean.c.o
+.PHONY : upcean.c.o
+
+upcean.i: upcean.c.i
+.PHONY : upcean.i
+
+# target to preprocess a source file
+upcean.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/upcean.c.i
+.PHONY : upcean.c.i
+
+upcean.s: upcean.c.s
+.PHONY : upcean.s
+
+# target to generate assembly for a file
+upcean.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f backend/CMakeFiles/zint.dir/build.make backend/CMakeFiles/zint.dir/upcean.c.s
+.PHONY : upcean.c.s
+
+# Help Target
+help:
+ @echo "The following are some of the valid targets for this Makefile:"
+ @echo "... all (the default if no target is provided)"
+ @echo "... clean"
+ @echo "... depend"
+ @echo "... install/strip"
+ @echo "... zint"
+ @echo "... edit_cache"
+ @echo "... rebuild_cache"
+ @echo "... install"
+ @echo "... list_install_components"
+ @echo "... install/local"
+ @echo "... 2of5.o"
+ @echo "... 2of5.i"
+ @echo "... 2of5.s"
+ @echo "... auspost.o"
+ @echo "... auspost.i"
+ @echo "... auspost.s"
+ @echo "... aztec.o"
+ @echo "... aztec.i"
+ @echo "... aztec.s"
+ @echo "... code.o"
+ @echo "... code.i"
+ @echo "... code.s"
+ @echo "... code1.o"
+ @echo "... code1.i"
+ @echo "... code1.s"
+ @echo "... code128.o"
+ @echo "... code128.i"
+ @echo "... code128.s"
+ @echo "... code16k.o"
+ @echo "... code16k.i"
+ @echo "... code16k.s"
+ @echo "... code49.o"
+ @echo "... code49.i"
+ @echo "... code49.s"
+ @echo "... common.o"
+ @echo "... common.i"
+ @echo "... common.s"
+ @echo "... composite.o"
+ @echo "... composite.i"
+ @echo "... composite.s"
+ @echo "... dmatrix.o"
+ @echo "... dmatrix.i"
+ @echo "... dmatrix.s"
+ @echo "... gridmtx.o"
+ @echo "... gridmtx.i"
+ @echo "... gridmtx.s"
+ @echo "... gs1.o"
+ @echo "... gs1.i"
+ @echo "... gs1.s"
+ @echo "... hanxin.o"
+ @echo "... hanxin.i"
+ @echo "... hanxin.s"
+ @echo "... imail.o"
+ @echo "... imail.i"
+ @echo "... imail.s"
+ @echo "... large.o"
+ @echo "... large.i"
+ @echo "... large.s"
+ @echo "... library.o"
+ @echo "... library.i"
+ @echo "... library.s"
+ @echo "... maxicode.o"
+ @echo "... maxicode.i"
+ @echo "... maxicode.s"
+ @echo "... medical.o"
+ @echo "... medical.i"
+ @echo "... medical.s"
+ @echo "... pdf417.o"
+ @echo "... pdf417.i"
+ @echo "... pdf417.s"
+ @echo "... plessey.o"
+ @echo "... plessey.i"
+ @echo "... plessey.s"
+ @echo "... png.o"
+ @echo "... png.i"
+ @echo "... png.s"
+ @echo "... postal.o"
+ @echo "... postal.i"
+ @echo "... postal.s"
+ @echo "... ps.o"
+ @echo "... ps.i"
+ @echo "... ps.s"
+ @echo "... qr.o"
+ @echo "... qr.i"
+ @echo "... qr.s"
+ @echo "... reedsol.o"
+ @echo "... reedsol.i"
+ @echo "... reedsol.s"
+ @echo "... render.o"
+ @echo "... render.i"
+ @echo "... render.s"
+ @echo "... rss.o"
+ @echo "... rss.i"
+ @echo "... rss.s"
+ @echo "... svg.o"
+ @echo "... svg.i"
+ @echo "... svg.s"
+ @echo "... telepen.o"
+ @echo "... telepen.i"
+ @echo "... telepen.s"
+ @echo "... upcean.o"
+ @echo "... upcean.i"
+ @echo "... upcean.s"
+.PHONY : help
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
+
diff --git a/backend/hanxin.c b/backend/hanxin.c
index c8c30323..4ecbf298 100644
--- a/backend/hanxin.c
+++ b/backend/hanxin.c
@@ -947,7 +947,7 @@ int hx_apply_bitmask(unsigned char *grid, int size) {
int han_xin(struct zint_symbol *symbol, const unsigned char source[], int length) {
char mode[length + 1];
int est_binlen;
- int ecc_level = 1;
+ int ecc_level = symbol->option_1;
int i, j, version;
int data_codewords, size;
int est_codewords;
@@ -971,6 +971,10 @@ int han_xin(struct zint_symbol *symbol, const unsigned char source[], int length
binary[0] = '\0';
+ if ((ecc_level <= 0) || (ecc_level >= 5)) {
+ ecc_level = 1;
+ }
+
calculate_binary(binary, mode, source, length);
version = 85;
@@ -1008,6 +1012,35 @@ int han_xin(struct zint_symbol *symbol, const unsigned char source[], int length
return ZINT_ERROR_TOO_LONG;
}
+ if ((symbol->option_2 < 0) || (symbol->option_2 > 84)) {
+ symbol->option_2 = 0;
+ }
+
+ if (symbol->option_2 > version) {
+ version = symbol->option_2;
+ }
+
+ /* If there is spare capacity, increase the level of ECC */
+ switch (ecc_level) {
+ case 1:
+ if (est_codewords < hx_data_codewords_L2[version - 1]) {
+ ecc_level = 2;
+ data_codewords = hx_data_codewords_L2[version - 1];
+ }
+ case 2:
+ if (est_codewords < hx_data_codewords_L3[version - 1]) {
+ ecc_level = 3;
+ data_codewords = hx_data_codewords_L3[version - 1];
+ }
+ case 3:
+ if (est_codewords < hx_data_codewords_L4[version - 1]) {
+ ecc_level = 4;
+ data_codewords = hx_data_codewords_L4[version - 1];
+ }
+ }
+
+ printf("Version %d, ECC %d\n", version, ecc_level);
+
size = (version * 2) + 21;
#ifndef _MSC_VER
@@ -1144,5 +1177,5 @@ int han_xin(struct zint_symbol *symbol, const unsigned char source[], int length
symbol->row_height[i] = 1;
}
- return 1;
+ return 0;
}
\ No newline at end of file
diff --git a/frontend/Makefile b/frontend/Makefile
index 05b11673..32138b09 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -1,40 +1,212 @@
-# Linux makefile for zint - requires libzint
-#
-# make compiles zint
-# make install copies binary to /usr/local/bin
-# make uninstall removes the binary
-# make clean cleans up a previous compilation and any object or editor files
-#
+# CMAKE generated file: DO NOT EDIT!
+# Generated by "Unix Makefiles" Generator, CMake Version 3.2
-ZINT_VERSION:=-DZINT_VERSION=\"2.4.4\"
+# Default target executed when no arguments are given to make.
+default_target: all
+.PHONY : default_target
-CC := gcc
-INCLUDE := -I/usr/include
-CFLAGS := -g
+# Allow only one "make -f Makefile2" at a time, but pass parallelism.
+.NOTPARALLEL:
-prefix := /usr
-bindir := $(prefix)/bin
-DESTDIR :=
-LIBS:= -lz -lm -lpng
+#=============================================================================
+# Special targets provided by cmake.
-all: zint zint-static
+# Disable implicit rules so canonical targets will work.
+.SUFFIXES:
-main.o: main.c
- $(CC) -c -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend main.c -o main.o
+# Remove some rules from gmake that .SUFFIXES does not remove.
+SUFFIXES =
-zint: main.o
- $(CC) -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.o -o zint -lzint
+.SUFFIXES: .hpux_make_needs_suffix_list
-zint-static: main.c
- $(CC) -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend main.o -o zint-static ../backend/libzint.a $(LIBS)
+# Suppress display of executed commands.
+$(VERBOSE).SILENT:
-.PHONY: install uninstall clean dist
+# A target that is always out of date.
+cmake_force:
+.PHONY : cmake_force
+#=============================================================================
+# Set environment variables for the build.
+
+# The shell in which to execute make rules.
+SHELL = /bin/sh
+
+# The CMake executable.
+CMAKE_COMMAND = /usr/bin/cmake
+
+# The command to remove a file.
+RM = /usr/bin/cmake -E remove -f
+
+# Escaping for special characters.
+EQUALS = =
+
+# The top-level source directory on which CMake was run.
+CMAKE_SOURCE_DIR = /home/hooper/zint/zint-code
+
+# The top-level build directory on which CMake was run.
+CMAKE_BINARY_DIR = /home/hooper/zint/zint-code
+
+#=============================================================================
+# Targets provided globally by CMake.
+
+# Special rule for the target install/strip
+install/strip: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
+ /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
+.PHONY : install/strip
+
+# Special rule for the target install/strip
+install/strip/fast: install/strip
+.PHONY : install/strip/fast
+
+# Special rule for the target edit_cache
+edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
+ /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
+.PHONY : edit_cache
+
+# Special rule for the target edit_cache
+edit_cache/fast: edit_cache
+.PHONY : edit_cache/fast
+
+# Special rule for the target rebuild_cache
+rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+ /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+.PHONY : rebuild_cache
+
+# Special rule for the target rebuild_cache
+rebuild_cache/fast: rebuild_cache
+.PHONY : rebuild_cache/fast
+
+# Special rule for the target install
+install: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install
+
+# Special rule for the target install
+install/fast: preinstall/fast
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
+ /usr/bin/cmake -P cmake_install.cmake
+.PHONY : install/fast
+
+# Special rule for the target list_install_components
+list_install_components:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Devel\" \"Unspecified\""
+.PHONY : list_install_components
+
+# Special rule for the target list_install_components
+list_install_components/fast: list_install_components
+.PHONY : list_install_components/fast
+
+# Special rule for the target install/local
+install/local: preinstall
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
+ /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
+.PHONY : install/local
+
+# Special rule for the target install/local
+install/local/fast: install/local
+.PHONY : install/local/fast
+
+# The main all target
+all: cmake_check_build_system
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles /home/hooper/zint/zint-code/frontend/CMakeFiles/progress.marks
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 frontend/all
+ $(CMAKE_COMMAND) -E cmake_progress_start /home/hooper/zint/zint-code/CMakeFiles 0
+.PHONY : all
+
+# The main clean target
clean:
- rm -f zint zint-static *.o *.a *~ *.png *.eps *.svg *.log
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 frontend/clean
+.PHONY : clean
-install:
- install -D -p zint $(DESTDIR)$(bindir)/zint
+# The main clean target
+clean/fast: clean
+.PHONY : clean/fast
+
+# Prepare targets for installation.
+preinstall: all
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 frontend/preinstall
+.PHONY : preinstall
+
+# Prepare targets for installation.
+preinstall/fast:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 frontend/preinstall
+.PHONY : preinstall/fast
+
+# clear depends
+depend:
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
+.PHONY : depend
+
+# Convenience name for target.
+frontend/CMakeFiles/zint_frontend.dir/rule:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f CMakeFiles/Makefile2 frontend/CMakeFiles/zint_frontend.dir/rule
+.PHONY : frontend/CMakeFiles/zint_frontend.dir/rule
+
+# Convenience name for target.
+zint_frontend: frontend/CMakeFiles/zint_frontend.dir/rule
+.PHONY : zint_frontend
+
+# fast build rule for target.
+zint_frontend/fast:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f frontend/CMakeFiles/zint_frontend.dir/build.make frontend/CMakeFiles/zint_frontend.dir/build
+.PHONY : zint_frontend/fast
+
+main.o: main.c.o
+.PHONY : main.o
+
+# target to build an object file
+main.c.o:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f frontend/CMakeFiles/zint_frontend.dir/build.make frontend/CMakeFiles/zint_frontend.dir/main.c.o
+.PHONY : main.c.o
+
+main.i: main.c.i
+.PHONY : main.i
+
+# target to preprocess a source file
+main.c.i:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f frontend/CMakeFiles/zint_frontend.dir/build.make frontend/CMakeFiles/zint_frontend.dir/main.c.i
+.PHONY : main.c.i
+
+main.s: main.c.s
+.PHONY : main.s
+
+# target to generate assembly for a file
+main.c.s:
+ cd /home/hooper/zint/zint-code && $(MAKE) -f frontend/CMakeFiles/zint_frontend.dir/build.make frontend/CMakeFiles/zint_frontend.dir/main.c.s
+.PHONY : main.c.s
+
+# Help Target
+help:
+ @echo "The following are some of the valid targets for this Makefile:"
+ @echo "... all (the default if no target is provided)"
+ @echo "... clean"
+ @echo "... depend"
+ @echo "... install/strip"
+ @echo "... edit_cache"
+ @echo "... rebuild_cache"
+ @echo "... install"
+ @echo "... zint_frontend"
+ @echo "... list_install_components"
+ @echo "... install/local"
+ @echo "... main.o"
+ @echo "... main.i"
+ @echo "... main.s"
+.PHONY : help
+
+
+
+#=============================================================================
+# Special targets to cleanup operation of make.
+
+# Special rule to run CMake to check the build system integrity.
+# No rule that depends on this can have commands that come from listfiles
+# because they might be regenerated.
+cmake_check_build_system:
+ cd /home/hooper/zint/zint-code && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
+.PHONY : cmake_check_build_system
-uninstall:
- rm $(DESTDIR)$(bindir)/zint
diff --git a/frontend_qt4/frontend_qt4.pro b/frontend_qt4/frontend_qt4.pro
index 05becb9f..6715cfe2 100644
--- a/frontend_qt4/frontend_qt4.pro
+++ b/frontend_qt4/frontend_qt4.pro
@@ -34,6 +34,7 @@ FORMS += extData.ui \
grpMSICheck.ui \
grpPDF417.ui \
grpQR.ui \
+ grpHX.ui \
mainWindow.ui
SOURCES += barcodeitem.cpp \
diff --git a/frontend_qt4/grpHX.ui b/frontend_qt4/grpHX.ui
new file mode 100644
index 00000000..496af64b
--- /dev/null
+++ b/frontend_qt4/grpHX.ui
@@ -0,0 +1,509 @@
+
+
+ grpHX
+
+
+
+ 0
+ 0
+ 441
+ 300
+
+
+
+ Form
+
+
+
+
+ 10
+ 10
+ 421
+ 100
+
+
+
+ -
+
+
+ A&utomatic Resizing
+
+
+ true
+
+
+
+ -
+
+
+ Adjust Si&ze To:
+
+
+
+ -
+
+
+ true
+
+
-
+
+ 23 x 23 (Version 1)
+
+
+ -
+
+ 25 x 25 (Version 2)
+
+
+ -
+
+ 27 x 27 (Version 3)
+
+
+ -
+
+ 29 x 29 (Version 4)
+
+
+ -
+
+ 31 x 31 (Version 5)
+
+
+ -
+
+ 33 x 33 (Version 6)
+
+
+ -
+
+ 35 x 35 (Version 7)
+
+
+ -
+
+ 37 x 37 (Version 8)
+
+
+ -
+
+ 39 x 39 (Version 9)
+
+
+ -
+
+ 41 x 41 (Version 10)
+
+
+ -
+
+ 43 x 43 (Version 11)
+
+
+ -
+
+ 45 x 45 (Version 12)
+
+
+ -
+
+ 47 x 47 (Version 13)
+
+
+ -
+
+ 49 x 49 (Version 14)
+
+
+ -
+
+ 51 x 51 (Version 15)
+
+
+ -
+
+ 53 x 53 (Version 16)
+
+
+ -
+
+ 55 x 55 (Version 17)
+
+
+ -
+
+ 57 x 57 (Version 18)
+
+
+ -
+
+ 59 x 59 (Version 19)
+
+
+ -
+
+ 61 x 61 (Version 20)
+
+
+ -
+
+ 63 x 63 (Version 21)
+
+
+ -
+
+ 65 x 65 (Version 22)
+
+
+ -
+
+ 67 x 67 (Version 23)
+
+
+ -
+
+ 69 x 69 (Version 24)
+
+
+ -
+
+ 71 x 71 (Version 25)
+
+
+ -
+
+ 73 x 73 (Version 26)
+
+
+ -
+
+ 75 x 75 (Version 27)
+
+
+ -
+
+ 77 x 77 (Version 28)
+
+
+ -
+
+ 79 x 79 (Version 29)
+
+
+ -
+
+ 81 x 81 (Version 30)
+
+
+ -
+
+ 83 x 83 (Version 31)
+
+
+ -
+
+ 85 x 85 (Version 32)
+
+
+ -
+
+ 87 x 87 (Version 33)
+
+
+ -
+
+ 89 x 89 (Version 34)
+
+
+ -
+
+ 91 x 91 (Version 35)
+
+
+ -
+
+ 93 x 93 (Version 36)
+
+
+ -
+
+ 95 x 95 (Version 37)
+
+
+ -
+
+ 97 x 97 (Version 38)
+
+
+ -
+
+ 99 x 99 (Version 39)
+
+
+ -
+
+ 101 x 101 (Version 40)
+
+
+ -
+
+ 103 x 103 (Version 41)
+
+
+ -
+
+ 105 x 105 (Version 42)
+
+
+ -
+
+ 107 x 107 (Version 43)
+
+
+ -
+
+ 109 x 109 (Version 44)
+
+
+ -
+
+ 111 x 111 (Version 45)
+
+
+ -
+
+ 113 x 113 (Version 46)
+
+
+ -
+
+ 115 x 115 (Version 47)
+
+
+ -
+
+ 117 x 117 (Version 48)
+
+
+ -
+
+ 119 x 119 (Version 49)
+
+
+ -
+
+ 121 x 121 (Version 50)
+
+
+ -
+
+ 123 x 123 (Version 51)
+
+
+ -
+
+ 125 x 125 (Version 52)
+
+
+ -
+
+ 127 x 127 (Version 53)
+
+
+ -
+
+ 129 x 129 (Version 54)
+
+
+ -
+
+ 131 x 131 (Version 55)
+
+
+ -
+
+ 133 x 133 (Version 56)
+
+
+ -
+
+ 135 x 135 (Version 57)
+
+
+ -
+
+ 137 x 137 (Version 58)
+
+
+ -
+
+ 139 x 139 (Version 59)
+
+
+ -
+
+ 141 x 141 (Version 60)
+
+
+ -
+
+ 143 x 143 (Version 61)
+
+
+ -
+
+ 145 x 145 (Version 62)
+
+
+ -
+
+ 147 x 147 (Version 63)
+
+
+ -
+
+ 149 x 149 (Version 64)
+
+
+ -
+
+ 151 x 151 (Version 65)
+
+
+ -
+
+ 153 x 153 (Version 66)
+
+
+ -
+
+ 155 x 155 (Version 67)
+
+
+ -
+
+ 157 x 157 (Version 68)
+
+
+ -
+
+ 159 x 159 (Version 69)
+
+
+ -
+
+ 161 x 161 (Version 70)
+
+
+ -
+
+ 163 x 163 (Version 71)
+
+
+ -
+
+ 165 x 165 (Version 72)
+
+
+ -
+
+ 167 x 167 (Version 73)
+
+
+ -
+
+ 169 x 169 (Version 74)
+
+
+ -
+
+ 171 x 171 (Version 75)
+
+
+ -
+
+ 173 x 173 (Version 76)
+
+
+ -
+
+ 175 x 175 (Version 77)
+
+
+ -
+
+ 177 x 177 (Version 78)
+
+
+ -
+
+ 179 x 179 (Version 79)
+
+
+ -
+
+ 181 x 181 (Version 80)
+
+
+ -
+
+ 183 x 183 (Version 81)
+
+
+ -
+
+ 185 x 185 (Version 82)
+
+
+ -
+
+ 187 x 187 (Version 83)
+
+
+ -
+
+ 189 x 189 (Version 84)
+
+
+
+
+ -
+
+
+ Add &Error Correction:
+
+
+
+ -
+
+
+ true
+
+
-
+
+ ~8% (Level L1)
+
+
+ -
+
+ ~15% (Level L2)
+
+
+ -
+
+ ~23% (Level L3)
+
+
+ -
+
+ ~30% (Level L4)
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend_qt4/grpQR.ui b/frontend_qt4/grpQR.ui
index 0f77101b..381c7830 100644
--- a/frontend_qt4/grpQR.ui
+++ b/frontend_qt4/grpQR.ui
@@ -277,7 +277,7 @@
-
-
+
0
@@ -329,8 +329,6 @@
- gridLayoutWidget
-
diff --git a/frontend_qt4/mainwindow.cpp b/frontend_qt4/mainwindow.cpp
index 9e73b97b..fa782689 100644
--- a/frontend_qt4/mainwindow.cpp
+++ b/frontend_qt4/mainwindow.cpp
@@ -68,7 +68,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
"GS1 DataBar Omnidirectional",
"GS1 DataBar Stacked",
"GS1 DataBar Stacked Omnidirectional",
- "Han Xin Code",
+ "Han Xin (Chinese Sensible) Code",
"ITF-14",
"International Standard Book Number (ISBN)",
"Japanese Postal Barcode",
@@ -383,6 +383,21 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild("radQRGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild("radQRHIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
+
+ if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_HANXIN)
+ {
+ QFile file (":/grpHX.ui");
+ if (!file.open(QIODevice::ReadOnly))
+ return;
+ m_optionWidget=uiload.load(&file);
+ file.close();
+ tabMain->insertTab(1,m_optionWidget,tr("Han Xin Code"));
+ connect(m_optionWidget->findChild("radHXAuto"), SIGNAL(clicked( bool )), SLOT(update_preview()));
+ connect(m_optionWidget->findChild("radHXSize"), SIGNAL(clicked( bool )), SLOT(update_preview()));
+ connect(m_optionWidget->findChild("radHXECC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
+ connect(m_optionWidget->findChild("cmbHXSize"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
+ connect(m_optionWidget->findChild("cmbHXECC"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
+ }
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_MICROQR)
{
@@ -793,10 +808,16 @@ void MainWindow::update_preview()
if(m_optionWidget->findChild("radC49GS1")->isChecked())
m_bc.bc.setInputMode(GS1_MODE);
break;
+
case BARCODE_HANXIN:
m_bc.bc.setSymbol(BARCODE_HANXIN);
- // Space reserved for more options!
+ if(m_optionWidget->findChild("radHXSize")->isChecked())
+ m_bc.bc.setWidth(m_optionWidget->findChild("cmbHXSize")->currentIndex() + 1);
+
+ if(m_optionWidget->findChild("radHXECC")->isChecked())
+ m_bc.bc.setSecurityLevel(m_optionWidget->findChild("cmbHXECC")->currentIndex() + 1);
break;
+
default:
m_bc.bc.setSymbol(metaObject()->enumerator(0).value(bstyle->currentIndex()));
break;
diff --git a/frontend_qt4/resources.qrc b/frontend_qt4/resources.qrc
index 71a76e76..455ead70 100644
--- a/frontend_qt4/resources.qrc
+++ b/frontend_qt4/resources.qrc
@@ -1,5 +1,5 @@
-
+
images/zoomout.png
images/rotateleft.png
images/rotateright.png
@@ -19,7 +19,8 @@
grpCodeOne.ui
grpC49.ui
grpGrid.ui
- grpDBExtend.ui
+ grpDBExtend.ui
images/zint.png
+ grpHX.ui