mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Pass APP_ABI to ndk-build instead of creating temporary Application.mk
It's simpler and stores objects inside obj/ in-tree, preventing unnecessary rebuilds.
This commit is contained in:
+4
-11
@@ -138,22 +138,15 @@ rm -fr "$TMPLIB"
|
||||
|
||||
echo -- ndk-build --
|
||||
|
||||
cd ..
|
||||
# Set the right arch in Application.mk:
|
||||
oldDotMk="$(cat Application.mk)"
|
||||
cd ../..
|
||||
|
||||
TMP=$(mktemp)
|
||||
if test $1; then
|
||||
sed "s/APP_ABI.*/APP_ABI := $1/g" Application.mk >"$TMP"
|
||||
ndk-build APP_ABI="$1"
|
||||
else
|
||||
# We are compiling for all architectures:
|
||||
sed "s/APP_ABI.*/APP_ABI := armeabi-v7a arm64-v8a x86 x86_64/g" Application.mk >"$TMP"
|
||||
# We are compiling for all architectures defined in Application.mk
|
||||
ndk-build
|
||||
fi
|
||||
|
||||
cd ..
|
||||
ndk-build NDK_APPLICATION_MK=$TMP
|
||||
rm "$TMP"
|
||||
|
||||
if test $1; then
|
||||
echo "NDK_ARCH=$1" >ndkArch
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user