python3 support for x86 arch added. There are still bugs though. With arms it works fine
This commit is contained in:
@@ -2,19 +2,23 @@
|
||||
|
||||
#ARCH_LIST="arm64-v8a x86 mips armeabi-v7a armeabi"
|
||||
|
||||
#ARCH_LIST="arm x86 mips"
|
||||
#ARCH_LIST="arm x86 mips arm64"
|
||||
ARCH_LIST="arm"
|
||||
|
||||
mkdir -p build
|
||||
|
||||
build() {
|
||||
export ANDROID_PLATFORM=$1
|
||||
|
||||
|
||||
pushd python3-android
|
||||
make
|
||||
rm env
|
||||
rm mk/env.mk
|
||||
make all ANDROID_PLATFORM=$1
|
||||
popd
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
PIDS=""
|
||||
for ARCH in $ARCH_LIST; do
|
||||
build $ARCH &
|
||||
@@ -25,9 +29,21 @@ for PID in $PIDS; do
|
||||
wait $PID || exit 1
|
||||
done
|
||||
|
||||
# Provide includes for the to be built apps
|
||||
rm include
|
||||
rm lib
|
||||
ln -s python3-android/build/13b-23-arm-linux-androideabi-4.9/include include
|
||||
ln -s python3-android/build/13b-23-arm-linux-androideabi-4.9/lib lib
|
||||
#cp -r -L build/armeabi-v7a/include ./ || exit 1
|
||||
|
||||
# Set some symbolic links for android ndk toolkit access
|
||||
rm -rf include
|
||||
rm -rf lib
|
||||
|
||||
mkdir -p include
|
||||
mkdir -p lib
|
||||
|
||||
pushd include
|
||||
ln -s ../python3-android/build/13b-23-arm-linux-androideabi-4.9/include arm
|
||||
ln -s ../python3-android/build/13b-23-x86-4.9/include x86
|
||||
popd
|
||||
|
||||
pushd lib
|
||||
ln -s ../python3-android/build/13b-23-arm-linux-androideabi-4.9/lib arm
|
||||
ln -s ../python3-android/build/13b-23-x86-4.9/lib x86
|
||||
popd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user