Module thirdparty

Module thirdparty 

Source
Expand description

Thirdparty library download and build helpers.

Library source URLs are defined as constants so Renovate can track them.

§Download

download_libraries fetches each library’s source. Most libraries are downloaded as tarballs and extracted with the top-level directory stripped. Libraries that use git submodules (currently freetype2) are cloned with --recurse-submodules so submodule contents are always present. If the cloned source ships an autogen.sh script, it is run immediately after cloning to generate the configure script that build-kobo.sh expects.

§Build

build_libraries iterates over the packages in dependency order, applies kobo.patch if present, then invokes each library’s own build-kobo.sh script.

Enums§

LibrarySource
Describes how a thirdparty library’s source is obtained.

Constants§

BUILT_MARKER
Sentinel file written inside a library directory after a successful build.
BZIP2_URL
DJVULIBRE_VERSION
FREETYPE2_VERSION
FreeType version, cloned from freetype/freetype at tag VER-X-Y-Z.
GUMBO_VERSION
Gumbo version, derived from the archive URL.
HARFBUZZ_VERSION
HarfBuzz version, derived from the archive URL.
JBIG2DEC_URL
LIBJPEG_VERSION
IJG libjpeg version tracked via the libjpeg-turbo jpeg-<version> tag mirror.
LIBPNG_VERSION
LIBRARY_NAMES 🔒
All libraries in dependency order for building.
MUPDF_URL
OPENJPEG_VERSION
OpenJPEG version, derived from the archive URL.
SONAMES
Base names of all thirdparty shared libraries.
SOURCE_READY_MARKER
Sentinel file written inside a library directory after source extraction.
ZLIB_VERSION
Version strings for thirdparty libraries tracked by Renovate.

Functions§

build_libraries
Builds the given libraries for the Kobo ARM target.
clean_untracked 🔒
Removes untracked files from a directory using git ls-files, falling back to removing and recreating the directory when git is unavailable.
download_libraries
Downloads source for the given libraries into thirdparty/.
git_clone_tag 🔒
Clones repo at tag into dest, recursing into submodules.
is_built 🔒
Returns true if the library in dir was already built and the sentinel file is present.
is_source_ready 🔒
Returns true if dir already has a completed source download marker.
library_source
Returns the source descriptor for a named library.
soname
Returns the SONAME of lib in libs_dir.
write_marker 🔒
Writes a marker file inside dir to persist task completion state.