Skip to main content

Module build_kobo

Module build_kobo 

Source
Expand description

cargo xtask build-kobo โ€” cross-compile Cadmus for Kobo devices.

This task is a thin wrapper around cargo build --release --target arm-unknown-linux-gnueabihf -p cadmus. Most dependency building (thirdparty libs, MuPDF, libwebp, mupdf_wrapper) is handled automatically by build.rs when cargo build runs.

In addition, run() performs these eager preflight steps before invoking cargo:

  1. Verify the Linaro ARM toolchain (arm-linux-gnueabihf-gcc) is on PATH.
  2. Initialize git submodules.
  3. Build SQLite from source with UDL support for the ARM target (placed in target/cadmus-build-deps/arm-unknown-linux-gnueabihf/sqlite/).

The Kobo build is only available on Linux and macOS hosts.

Structsยง

BuildKoboArgs
Arguments for cargo xtask build-kobo.

Functionsยง

cargo_build_kobo ๐Ÿ”’
ensure_linaro_toolchain ๐Ÿ”’
run
Cross-compiles Cadmus for Kobo ARM devices.