File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import
2323RECIPES_PATH=" $ROOT_PATH /recipes"
2424BUILD_PATH=" $ROOT_PATH /build"
2525LIBS_PATH=" $ROOT_PATH /build/libs"
26+ JAVACLASS_PATH=" $ROOT_PATH /build/java"
2627PACKAGES_PATH=" $ROOT_PATH /.packages"
2728SRC_PATH=" $ROOT_PATH /src"
2829JNI_PATH=" $SRC_PATH /jni"
@@ -298,6 +299,7 @@ function run_prepare() {
298299 test -d $PACKAGES_PATH || mkdir -p $PACKAGES_PATH
299300 test -d $BUILD_PATH || mkdir -p $BUILD_PATH
300301 test -d $LIBS_PATH || mkdir -p $LIBS_PATH
302+ test -d $JAVACLASS_PATH || mkdir -p $JAVACLASS_PATH
301303 test -d $LIBLINK_PATH || mkdir -p $LIBLINK_PATH
302304
303305 # create initial files
@@ -545,6 +547,9 @@ function run_distribute() {
545547 try mkdir -p libs/$ARCH
546548 try cp -a $BUILD_PATH /libs/* libs/$ARCH /
547549
550+ debug " Copy java files from various libs"
551+ try cp -a $BUILD_PATH /java/* src
552+
548553 debug " Fill private directory"
549554 try cp -a python-install/lib private/
550555 try mkdir -p private/include/python2.7
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Recent change made audiostream not compatible with python-for-android yet.
3- # Only h264+aac build are working.
42
53VERSION_audiostream=
64URL_audiostream=https://github.com/kivy/audiostream/zipball/master/audiostream.zip
@@ -17,7 +15,8 @@ function build_audiostream() {
1715 cd $BUILD_audiostream
1816
1917 if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/audiostream" ]; then
20- return
18+ # return
19+ true
2120 fi
2221
2322 push_arm
@@ -28,9 +27,11 @@ function build_audiostream() {
2827 export LDFLAGS=" $LDFLAGS -lm -L$LIBS_PATH "
2928 export AUDIOSTREAM_ROOT=" $BUILD_audiostream /build/audiostream/armeabi-v7a"
3029 try cd $BUILD_audiostream
30+ $BUILD_PATH /python-install/bin/python.host setup.py build_ext & > /dev/null
3131 try find . -iname ' *.pyx' -exec cython {} \;
3232 try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
3333 try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
34+ try cp -a audiostream/platform/android/org $JAVACLASS_PATH
3435
3536 pop_arm
3637}
You can’t perform that action at this time.
0 commit comments