2004-10-18 20:29:58 +00:00
|
|
|
|
|
|
|
# memmgr back ends: compile only one of these into a working library
|
|
|
|
# (For now, let's use the mode that requires the image fit into memory.
|
|
|
|
# This is the recommended mode for Win32 anyway.)
|
2010-04-05 22:33:58 +00:00
|
|
|
set(systemdependent_SRCS jmemnobs.c)
|
2004-10-18 20:29:58 +00:00
|
|
|
|
|
|
|
# library object files common to compression and decompression
|
2010-04-05 22:33:58 +00:00
|
|
|
set(common_SRCS
|
2011-02-15 15:25:53 +00:00
|
|
|
jaricom.c jcomapi.c jutils.c jerror.c jmemmgr.c
|
2004-10-18 20:29:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# compression library object files
|
2010-04-05 22:33:58 +00:00
|
|
|
set(compression_SRCS
|
2011-02-15 15:25:53 +00:00
|
|
|
jcapimin.c jcapistd.c jcarith.c jctrans.c jcparam.c jdatadst.c jcinit.c
|
2010-04-05 22:33:58 +00:00
|
|
|
jcmaster.c jcmarker.c jcmainct.c jcprepct.c jccoefct.c jccolor.c
|
2011-02-15 15:25:53 +00:00
|
|
|
jcsample.c jchuff.c jcdctmgr.c jfdctfst.c jfdctflt.c
|
2010-04-05 22:33:58 +00:00
|
|
|
jfdctint.c
|
2004-10-18 20:29:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# decompression library object files
|
2010-04-05 22:33:58 +00:00
|
|
|
set(decompression_SRCS
|
2011-02-15 15:25:53 +00:00
|
|
|
jdapimin.c jdapistd.c jdarith.c jdtrans.c jdatasrc.c jdmaster.c
|
|
|
|
jdinput.c jdmarker.c jdhuff.c jdmainct.c jdcoefct.c
|
|
|
|
jdpostct.c jddctmgr.c jidctfst.c jidctflt.c jidctint.c
|
2010-04-05 22:33:58 +00:00
|
|
|
jdsample.c jdcolor.c jquant1.c jquant2.c jdmerge.c
|
2004-10-18 20:29:58 +00:00
|
|
|
)
|
|
|
|
|
2014-09-27 00:41:06 +00:00
|
|
|
list(APPEND BUILD_SRCS "${systemdependent_SRCS};${common_SRCS}")
|
|
|
|
list(APPEND BUILD_SRCS "${compression_SRCS};${decompression_SRCS}")
|
2010-04-05 22:33:58 +00:00
|
|
|
#######################################################################
|
2014-09-27 00:41:06 +00:00
|
|
|
FL_ADD_LIBRARY(fltk_jpeg STATIC "${BUILD_SRCS}")
|
2015-02-16 16:29:49 +00:00
|
|
|
# install the jpeg headers
|
|
|
|
install(FILES jconfig.h;jerror.h;jmorecfg.h;jpeglib.h
|
|
|
|
DESTINATION ${FLTK_INCLUDEDIR}/FL/images
|
|
|
|
)
|
2010-04-05 22:33:58 +00:00
|
|
|
|
2014-09-27 00:41:06 +00:00
|
|
|
#######################################################################
|
|
|
|
if(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|
|
|
|
FL_ADD_LIBRARY(fltk_jpeg SHARED "${BUILD_SRCS}")
|
2010-04-05 22:33:58 +00:00
|
|
|
|
2014-09-27 00:41:06 +00:00
|
|
|
#######################################################################
|
|
|
|
endif(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
#######################################################################
|