This project builds SQLite3 as a static library using the same SQLite compile options used by the TotalCross VM build.
It builds the plain upstream SQLite3 amalgamation.
The build accepts one of these source inputs:
-DSQLITE3_SOURCE_DIR=/path/to/source-DSQLITE3_SOURCE_ARCHIVE=/path/to/sqlite.tar.gz-DSQLITE3_SOURCE_URL=https://.../sqlite.tar.gz
If none is provided, the plain upstream SQLite amalgamation
sqlite-amalgamation-3320300.zip is downloaded from sqlite.org.
The source directory or archive must contain exactly one sqlite3.c and one
sqlite3.h.
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build --prefix build/installPackaged artifacts use this layout:
sqlite3/
<platform>/<arch>/
include/
sqlite3.h
sqlite3ext.h
lib/
libsqlite3.a
manifest.txt