8000 Merge branch 'old_toolchain' of https://github.com/kivy/python-for-an… · aburgool/python-for-android@b6f7893 · GitHub
[go: up one dir, main page]

Skip to content

Commit b6f7893

Browse files
committed
Merge branch 'old_toolchain' of https://github.com/kivy/python-for-android into old_toolchain
2 parents 3c86bda + 70593e3 commit b6f7893

File tree

17 files changed

+33
-21
lines changed

17 files changed

+33
-21
lines changed

distribute.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ case $OSTYPE in
9393
;;
9494
esac
9595

96+
if [ -f /proc/cpuinfo ]; then
97+
export MAKE_JOBS=($(grep -c ^processor /proc/cpuinfo) +1 )
98+
else
99+
export MAKE_JOBS=1
100+
fi
96101

97102
# Internals
98103
CRED="\x1b[31;01m"
@@ -214,7 +219,7 @@ function push_arm() {
214219
export RANLIB="$TOOLCHAIN_PREFIX-ranlib"
215220
export LD="$TOOLCHAIN_PREFIX-ld"
216221
export STRIP="$TOOLCHAIN_PREFIX-strip --strip-unneeded"
217-
export MAKE="make -j5"
222+
export MAKE="make"
218223
export READELF="$TOOLCHAIN_PREFIX-readelf"
219224

220225
# This will need to be updated to support Python versions other than 2.7

recipes/c_igraph/recipe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function build_c_igraph() {
4848
fi
4949

5050

51-
try $MAKE
52-
try $MAKE install
51+
try $MAKE -j$MAKE_JOBS
52+
try $MAKE -j$MAKE_JOBS install
5353

5454
pop_arm
5555
touch .built

recipes/ffmpeg2/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function build_ffmpeg2() {
4545
FLAGS="--disable-everything"
4646
FLAGS="$FLAGS --enable-parser=h264,aac"
4747
FLAGS="$FLAGS --enable-decoder=h263,h264,aac"
48-
FLAGS="$FLAGS --enable-filter=aresample,resample,crop"
48+
FLAGS="$FLAGS --enable-filter=aresample,resample,crop,adelay"
4949
FLAGS="$FLAGS --enable-protocol=file,http,https,tls_openssl"
5050
FLAGS="$FLAGS --enable-demuxer=sdp --enable-pic"
5151
FLAGS="$FLAGS --enable-small"

recipes/freetype/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function build_freetype() {
1818
push_arm
1919
export LDFLAGS="$LDFLAGS -L$BUILD_harfbuzz/src/.libs/"
2020
try ./configure --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --enable-shared
21-
try make -j5
21+
try make -j$MAKE_JOBS
2222
pop_arm
2323

2424
try cp $BUILD_freetype/objs/.libs/libfreetype.so $LIBS_PATH

recipes/harfbuzz/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
2727
#try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --enable-shared --without-freetype --without-glib
2828
#~ try ./autogen.sh --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-freetype --without-glib
2929
try ./configure --without-icu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-freetype --without-glib
30-
try make -j5
30+
try make -j$MAKE_JOBS
3131
pop_arm
3232
try cp -L $BUILD_harfbuzz/src/.libs/libharfbuzz.so $LIBS_PATH
3333
}

recipes/hostpython/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function build_hostpython() {
2525
cd $BUILD_hostpython
2626

2727
try ./configure
28-
try make -j5
28+
try make -j$MAKE_JOBS
2929
try mv Parser/pgen hostpgen
3030

3131
if [ -f python.exe ]; then

recipes/libevent/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function build_libevent() {
2222

2323
push_arm
2424
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_libevent/build/
25-
try make install
25+
try make -j$MAKE_JOBS install
2626
pop_arm
2727
}
2828

recipes/libpq/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function build_libpq() {
2929
push_arm
3030

3131
try ./configure --without-readline --host=arm-linux
32-
try make submake-libpq
32+
try make -j$MAKE_JOBS submake-libpq
3333
try cp -a $BUILD_libpq/src/interfaces/libpq/libpq.a $LIBS_PATH
3434

3535
pop_arm

recipes/libsodium/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function build_libsodium() {
2323
push_arm
2424

2525
try ./configure --enable-minimal --disable-soname-versions --host="arm-linux-androideabi" --enable-shared
26-
try make
26+
try make -j$MAKE_JOBS
2727

2828
try cp -L $BUILD_libsodium/src/libsodium/.libs/libsodium.so $LIBS_PATH
2929

recipes/libtorrent/recipe.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ function build_libtorrent() {
2828

2929
# Build the Python bindings with Boost.Build and some dependencies recursively (libtorrent-rasterbar, Boost.*)
3030
# Also link to openssl
31-
# Hardcoded on -j5 because P4A does it too
32-
$BOOST_ROOT/b2 -q -j5 target-os=android link=static boost-link=static boost=source threading=multi toolset=gcc-android geoip=off encryption=tommath linkflags="$BOOSTSTUFF" release
31+
$BOOST_ROOT/b2 -q -j$MAKE_JOBS target-os=android link=static boost-link=static boost=source threading=multi toolset=gcc-android geoip=off encryption=tommath linkflags="$BOOSTSTUFF" release
3332

3433
# Copy the module
3534
try cp -L libtorrent.so $SITEPACKAGES_PATH

0 commit comments

Comments
 (0)
0