Add JPEG compressor support to Makefile

Before this PR only the decompressor files were added to the Makefile.
Now all the required compressor files are added.
Decompression and compression tested on STM32H7 with 1:8 JPEG scaling.

Signed-off-by: Kevin Witteveen (MartiniMarter) <kevinwit1999@gmail.com>
This commit is contained in:
Kevin Witteveen (MartiniMarter) 2025-07-11 19:33:42 +02:00 committed by Xiang Xiao
parent f3e1985b1e
commit 6bca3c2ca2

View file

@ -24,6 +24,8 @@ include $(APPDIR)/Make.defs
SRC = libjpeg
# Decompressor
CSRCS += $(SRC)/jaricom.c
CSRCS += $(SRC)/jcomapi.c
CSRCS += $(SRC)/jdapimin.c
@ -52,6 +54,29 @@ CSRCS += $(SRC)/jutils.c
CSRCS += $(SRC)/jmemmgr.c
CSRCS += $(SRC)/jmemname.c
# Compressor
CSRCS += $(SRC)/jcapimin.c
CSRCS += $(SRC)/jcapistd.c
CSRCS += $(SRC)/jcarith.c
CSRCS += $(SRC)/jccoefct.c
CSRCS += $(SRC)/jccolor.c
CSRCS += $(SRC)/jcdctmgr.c
CSRCS += $(SRC)/jchuff.c
CSRCS += $(SRC)/jcinit.c
CSRCS += $(SRC)/jcmainct.c
CSRCS += $(SRC)/jcmarker.c
CSRCS += $(SRC)/jcmaster.c
CSRCS += $(SRC)/jcparam.c
CSRCS += $(SRC)/jcprepct.c
CSRCS += $(SRC)/jcsample.c
CSRCS += $(SRC)/jctrans.c
CSRCS += $(SRC)/jdatadst.c
CSRCS += $(SRC)/jfdctint.c
CSRCS += $(SRC)/jfdctfst.c
CSRCS += $(SRC)/jfdctflt.c
CFLAGS += -DTEMP_DIRECTORY=\"$(CONFIG_EXTERNALS_LIBJPEG_TEMP_DIR)\"
CFLAGS += -Wno-shadow -Wno-strict-prototypes -Wno-unknown-pragmas