# Vendoring
pic's dependencies are vendored and compiled in, each pinned file by file (`vendor/*/SHA256SUMS`):
SQLite with libfossil, zlib, BearSSL and Nayuki's QR Code generator (`vendor/qrcodegen`, release
v1.8.0, for `/remote-control`; its `ORIGIN` says where it came from, and it is replaced, never
edited). The binary links only libc, libm and pthread.
## libfossil and SQLite
Re-vendor on every libfossil cut:
```sh
sh tools/vendor-libfossil.sh [CUT_DIR] # default ~/libfossil-builds/current
```
It copies the amalgamations, SQLite's shell.c and the license into `vendor/libfossil`, refuses a cut
whose shell.c and sqlite3.c come from different SQLite check-ins, rewrites SHA256SUMS and the first
line of README.md, and prints what changed. It does not commit: run `make test-pic` and
[Fil-C](filc.md), then land the branch.
The tests use pic's own `build/pic/sqlite3`, built from the vendored shell.c, never the host's.
## Other generated sources
- `src/ca_bundle.inc`: the built-in CA roots, from `tools/ca-bundle.sh`.
- `src/model_catalog.inc`: the built-in model catalog snapshot, from `tools/model-catalog.sh`.