This repository was archived by the owner on Jan 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 11 files changed +55
-11
lines changed
Expand file tree Collapse file tree 11 files changed +55
-11
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22echo " Building all Py34a"
33
4+ set -e
5+
6+ export TARGET=" i686-linux-android"
7+
48arch=` uname -m`
59if [ " $arch " == " i686" ]
610then
Original file line number Diff line number Diff line change 1- export TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35export TARGET_DIR=` pwd`
46popd
Original file line number Diff line number Diff line change 1- TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35TARGET_DIR=` pwd`
46popd
@@ -10,5 +12,6 @@ export RANLIB=${TARGET}-ranlib
1012export LD=${TARGET} -ld
1113export NM=${TARGET} -nm
1214
15+ # XXX makeinfo must be installed to create doc/ : apt-get install texinfo
1316./configure --host=$TARGET --target=$TARGET --prefix=$TARGET_DIR --enable-shared && make && make install
1417
Original file line number Diff line number Diff line change 1- export TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35TARGET_DIR=` pwd`
46popd
Original file line number Diff line number Diff line change 1- TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35export TARGET_DIR=` pwd`
46popd
@@ -10,6 +12,11 @@ export RANLIB=${TARGET}-ranlib
1012export LD=${TARGET} -ld
1113export NM=${TARGET} -nm
1214
15+ export SYSTEM=" Linux"
16+ export MACHINE=" i686"
17+
18+ ./config --prefix=${TARGET_DIR}
19+
1320mv Makefile tmp && cp tmp Makefile && rm tmp
1421
1522make && make install
Original file line number Diff line number Diff line change 1- ./Configure no-dso no-krb5 linux-armv4 --prefix=/home/river/android-sdk/workplace/micharu123-py4a/python3-alpha/thirdparty --openssldir=/home/river/android-sdk/workplace/micharu123-py4a/python3-alpha/openssl
1+ case " $TARGET " in
2+ " " )
3+ echo " TARGET is not set" >&2
4+ exit 5
5+ ;;
6+ i686-* )
7+ OS=" linux-generic32" ;;
8+ arm-* )
9+ OS=" linux-armv4" ;;
10+ * )
11+ echo " Unknown target: '$TARGET '" >&2
12+ exit 5
13+ ;;
14+ esac
15+
16+ ./Configure no-dso no-krb5 $OS --prefix=../thirdparty --openssldir=../openssl
Original file line number Diff line number Diff line change 1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
14pushd ../thirdparty
25export THIRD_PARTY_DIR=` pwd`
36popd
@@ -17,6 +20,6 @@ cat pyconfig.h \
1720mv temp pyconfig.h
1821
1922
20- make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=" arm-linux-androideabi- gcc -shared" CROSS_COMPILE=arm-linux-androideabi- CROSS_COMPILE_TARGET=yes HOSTARCH=arm-linux-androideabi BUILDARCH=x86_64-linux-gnu && \
21- make install HOSTPYTHON=./hostpython BLDSHARED=" arm-linux-androideabi- gcc -shared" CROSS_COMPILE=arm-linux-androideabi - CROSS_COMPILE_TARGET=yes prefix=${PWD} /_install/python3 && \
23+ make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=" ${TARGET} - gcc -shared" CROSS_COMPILE=${TARGET} - CROSS_COMPILE_TARGET=yes HOSTARCH=${TARGET} BUILDARCH=x86_64-linux-gnu && \
24+ make install HOSTPYTHON=./hostpython BLDSHARED=" ${TARGET} - gcc -shared" CROSS_COMPILE=${TARGET} - CROSS_COMPILE_TARGET=yes prefix=${PWD} /_install/python3 && \
2225./xpack.sh
Original file line number Diff line number Diff line change 1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
14pushd ../thirdparty
25export THIRD_PARTY_DIR=` pwd`
36popd
4- export TARGET=arm-linux-androideabi
57
68CC=${TARGET} -gcc CXX=${TARGET} -g++ AR=${TARGET} -ar RANLIB=${TARGET} -ranlib ./configure --host=${TARGET} --build=x86_64-linux-gnu --prefix=/python --enable-shared
79
Original file line number Diff line number Diff line change 1- export TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35TARGET_DIR=` pwd`
46popd
Original file line number Diff line number Diff line change 1- TARGET=arm-linux-androideabi
1+ set -e
2+
3+ TARGET=${TARGET:- " arm-linux-androideabi" }
24pushd ../thirdparty
35TARGET_DIR=` pwd`
46popd
You can’t perform that action at this time.
0 commit comments