koreader / koreader-base

Base framework offering a Lua scriptable environment for creating document readers
http://koreader.rocks/
GNU Affero General Public License v3.0
130 stars 105 forks source link

mupdf improvements #1832

Closed benoit-pierre closed 2 months ago

benoit-pierre commented 2 months ago

To make sure all the required symbols are exported, the wrap-mupdf library is linked with some generated scripts using the symbols referenced in the corresponding FFI cdecl file (ffi-cdecl/mupdf_decl.c). This is the same technique I use on my meson branch to cut down the size of the monolibtic library build.

(The plan is to do the same with the k2pdfopt library and a static tesseract library).

Impact on code size (bss+data+text, release builds): android-arm64 emulator kindlepw2
+79.6 KB +135.4 KB +122.6 KB

This change is Reviewable