mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 00:11:07 +00:00
326a2483f0
MuPDF is a fast and versatile PDF rendering library with only a few dependencies. It depends on openjpeg (JPEG2000 codec) and jbig2dec (b/w image compression library). Therefore, this patch comprises the ports of these libraries as well. All libraries compile well in the Genode build system but are not tested yet.
17 lines
604 B
Makefile
17 lines
604 B
Makefile
MUPDF = mupdf-0.9
|
|
MUPDF_DIR = $(REP_DIR)/contrib/$(MUPDF)
|
|
LIBS += libc jpeg zlib jbig2dec openjpeg freetype
|
|
INC_DIR += $(addprefix $(MUPDF_DIR)/,fitz pdf xps)
|
|
|
|
SRC_C = $(addprefix fitz/,$(notdir $(wildcard $(MUPDF_DIR)/fitz/*.c)))
|
|
SRC_C += $(addprefix pdf/, $(notdir $(wildcard $(MUPDF_DIR)/pdf/*.c)))
|
|
SRC_C += $(addprefix xps/, $(notdir $(wildcard $(MUPDF_DIR)/xps/*.c)))
|
|
SRC_C += $(addprefix draw/,$(notdir $(wildcard $(MUPDF_DIR)/draw/*.c)))
|
|
|
|
# disable warning noise for contrib code
|
|
CC_WARN += -Wall -Wno-uninitialized -Wno-unused-but-set-variable
|
|
|
|
vpath %.c $(MUPDF_DIR)
|
|
|
|
SHARED_LIB = yes
|