mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
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:
parent
9f04e1c9c2
commit
6edf503ae0
3 changed files with 135 additions and 96 deletions
|
@ -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}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue