build: do not clean android target
This commit is contained in:
parent
18138c9c66
commit
f255901a97
1 changed files with 5 additions and 5 deletions
|
@ -40,9 +40,6 @@ type=$1
|
||||||
|
|
||||||
# Build native code
|
# Build native code
|
||||||
cargo install cargo-ndk
|
cargo install cargo-ndk
|
||||||
|
|
||||||
rm -rf target/aarch64-linux-android
|
|
||||||
rm -rf target/armv7-linux-androideabi
|
|
||||||
mkdir -p android/app/src/main/jniLibs
|
mkdir -p android/app/src/main/jniLibs
|
||||||
|
|
||||||
sed -i -e 's/"rlib"/"rlib","cdylib"/g' Cargo.toml
|
sed -i -e 's/"rlib"/"rlib","cdylib"/g' Cargo.toml
|
||||||
|
@ -51,8 +48,11 @@ sed -i -e 's/"rlib"/"rlib","cdylib"/g' Cargo.toml
|
||||||
success=0
|
success=0
|
||||||
export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0"
|
export CPPFLAGS="-DMDB_USE_ROBUST=0" && export CFLAGS="-DMDB_USE_ROBUST=0"
|
||||||
cargo ndk -t ${arch} -o android/app/src/main/jniLibs build ${release_param}
|
cargo ndk -t ${arch} -o android/app/src/main/jniLibs build ${release_param}
|
||||||
unset CPPFLAGS && unset CFLAGS
|
if [ $? -eq 1 ]
|
||||||
cargo ndk -t ${arch} -o android/app/src/main/jniLibs build ${release_param}
|
then
|
||||||
|
unset CPPFLAGS && unset CFLAGS
|
||||||
|
cargo ndk -t ${arch} -o android/app/src/main/jniLibs build ${release_param}
|
||||||
|
fi
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
success=1
|
success=1
|
||||||
|
|
Loading…
Reference in a new issue