Separate PNG and BMP file handling routines and create common framework to allow addition of more output file formats

This commit is contained in:
Robin Stuart 2016-07-19 23:02:39 +01:00
parent 6dcc6af817
commit 08e51cf5bb
8 changed files with 1105 additions and 1268 deletions

View file

@ -4,11 +4,12 @@ project(zint)
find_package(PNG)
set(zint_COMMON_SRCS common.c library.c render.c ps.c large.c reedsol.c gs1.c svg.c png.c)
set(zint_COMMON_SRCS common.c library.c render.c large.c reedsol.c gs1.c)
set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c)
set(zint_POSTAL_SRCS postal.c auspost.c imail.c)
set(zint_TWODIM_SRCS code16k.c dmatrix.c pdf417.c qr.c maxicode.c composite.c aztec.c code49.c code1.c gridmtx.c hanxin.c)
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
set(zint_OUTPUT_SRCS render.c ps.c svg.c bmp.c png.c raster.c)
set(zint_SRCS ${zint_OUTPUT_SRCS} ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS})
if(PNG_FOUND)
include_directories( ${PNG_INCLUDES} )