android: release build script

This commit is contained in:
ardocrat 2025-05-27 22:04:55 +03:00
parent 6bce9ec071
commit 1ff2b27edc

View file

@ -43,10 +43,10 @@ function build_lib() {
# Fix for https://stackoverflow.com/questions/57193895/error-use-of-undeclared-identifier-pthread-mutex-robust-cargo-build-liblmdb-s
# Uncomment lines below for the 1st build:
export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0"
cargo ndk -t ${arch} -o android/app/src/main/jniLibs build
# unset CPPFLAGS && unset CFLAGS
# cargo ndk -t "${arch}" -o android/app/src/main/jniLibs build
#export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0"
#cargo ndk -t ${arch} build --profile release-apk
#unset CPPFLAGS && unset CFLAGS
cargo ndk -t "${arch}" -o android/app/src/main/jniLibs build --profile release-apk
if [ $? -eq 0 ]
then
success=1