Improve SQLCipher/SQLite support

When compiled with SQLCipher it is now capable of handling databases
  created by SQLite-only versions
Add support for SQLCipher on Android arm64
This commit is contained in:
Gioacchino Mazzurco 2019-08-31 16:22:24 +02:00
parent 9f04e1c9c2
commit 6edf503ae0
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 135 additions and 96 deletions

View file

@ -325,13 +325,6 @@ build_sqlcipher()
################################################################################
"
case "${ANDROID_NDK_ARCH}" in
"arm64")
echo sqlcipher not supported for arm64
return 0
;;
esac
B_dir="sqlcipher-${SQLCIPHER_SOURCE_VERSION}"
rm -rf $B_dir
@ -342,6 +335,14 @@ build_sqlcipher()
tar -xf $T_file
cd $B_dir
case "${ANDROID_NDK_ARCH}" in
"arm64")
# SQLCipher config.sub is outdated and doesn't recognize newer architectures
rm config.sub
autoreconf --verbose --install --force
automake --add-missing --copy --force-missing
;;
esac
./configure --with-pic --build=$(sh ./config.guess) \
--host=${cArch}-linux \
--prefix="${PREFIX}" --with-sysroot="${SYSROOT}" \