Guide
Platforms and native builds
Platforms and native builds
The Hex package carries a native library for each supported target. SQLite is linked into those libraries. A consumer on a supported target can add the dependency and build its application with Pooka.
| Operating system | Architectures |
|---|---|
| Linux with glibc | arm64, x86-64 |
| macOS | arm64, x86-64 |
| Windows | x86-64 |
The package matrix uses Erlang/OTP 29. It verifies each target by building and testing Sqliter, then running a fresh Pooka project against an unpacked Hex-format archive. The workflow assembles a combined package for inspection.
Build from source
A source checkout requires Pooka, Erlang/OTP, Make, and a C compiler. On Windows, use an MSYS2 UCRT64 shell with GNU Make and the UCRT64 GCC toolchain. Keep Erlang and the Pooka launcher on the shell's PATH.
make test
make test-package
On Windows the launcher's name is explicit:
make test CC=gcc POOKA=pooka.cmd
make test-package CC=gcc POOKA=pooka.cmd
The default build compiles the vendored SQLite amalgamation
into the NIF. make SQLITE=system selects a local SQLite installation with
headers and libraries providing the SQLite 3.38 APIs.
For release builds, use the bundled SQLite configuration on every target.
The separate artifacts live under priv/native/<target>/.