Build scripts to compile sqlite3 for Android (NDK)
What and why?
This is a set of small build scripts to build sqlite3 as a static library for Android. This exists because the Android NDK does not expose the sqlite shared library to the NDK, so there are no guarantees that the library on the device will be present for all devices.
Building your own static library guarantees what version you have, and that all
devices will have it. Using
dlopen to load the library does not give you those
First set up the official Android NDK and make sure the directory
ndk-build is in your PATH variable. Then, just run:
in the root of this repository. That'll automatically download sqlite3 from
sqlite.org (the version specified in Makefile by the
SQLITE_VERSION) and build
it as obj/local/$ARCH/libsqlite.a.