File tree 2 files changed +9
-3
lines changed
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
23
23
RECIPES_PATH=" $ROOT_PATH /recipes"
24
24
BUILD_PATH=" $ROOT_PATH /build"
25
25
LIBS_PATH=" $ROOT_PATH /build/libs"
26
+ JAVACLASS_PATH=" $ROOT_PATH /build/java"
26
27
PACKAGES_PATH=" $ROOT_PATH /.packages"
27
28
SRC_PATH=" $ROOT_PATH /src"
28
29
JNI_PATH=" $SRC_PATH /jni"
@@ -298,6 +299,7 @@ function run_prepare() {
298
299
test -d $PACKAGES_PATH || mkdir -p $PACKAGES_PATH
299
300
test -d $BUILD_PATH || mkdir -p $BUILD_PATH
300
301
test -d $LIBS_PATH || mkdir -p $LIBS_PATH
302
+ test -d $JAVACLASS_PATH || mkdir -p $JAVACLASS_PATH
301
303
test -d $LIBLINK_PATH || mkdir -p $LIBLINK_PATH
302
304
303
305
# create initial files
@@ -545,6 +547,9 @@ function run_distribute() {
545
547
try mkdir -p libs/$ARCH
546
548
try cp -a $BUILD_PATH /libs/* libs/$ARCH /
547
549
550
+ debug " Copy java files from various libs"
551
+ try cp -a $BUILD_PATH /java/* src
552
+
548
553
debug " Fill private directory"
549
554
try cp -a python-install/lib private/
550
555
try mkdir -p private/include/python2.7
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Recent change made audiostream not compatible with python-for-android yet.
3
- # Only h264+aac build are working.
4
2
5
3
VERSION_audiostream=
6
4
URL_audiostream=https://github.com/kivy/audiostream/zipball/master/audiostream.zip
@@ -17,7 +15,8 @@ function build_audiostream() {
17
15
cd $BUILD_audiostream
18
16
19
17
if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/audiostream" ]; then
20
- return
18
+ # return
19
+ true
21
20
fi
22
21
23
22
push_arm
@@ -28,9 +27,11 @@ function build_audiostream() {
28
27
export LDFLAGS=" $LDFLAGS -lm -L$LIBS_PATH "
29
28
export AUDIOSTREAM_ROOT=" $BUILD_audiostream /build/audiostream/armeabi-v7a"
30
29
try cd $BUILD_audiostream
30
+ $BUILD_PATH /python-install/bin/python.host setup.py build_ext & > /dev/null
31
31
try find . -iname ' *.pyx' -exec cython {} \;
32
32
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
33
33
try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
34
+ try cp -a audiostream/platform/android/org $JAVACLASS_PATH
34
35
35
36
pop_arm
36
37
}
You can’t perform that action at this time.
0 commit comments