Skip to content

Commit 668cedc

Browse files
committed
audiostream: ensure java platform is copied into the final java path
1 parent 8e3f2d4 commit 668cedc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

distribute.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import
2323
RECIPES_PATH="$ROOT_PATH/recipes"
2424
BUILD_PATH="$ROOT_PATH/build"
2525
LIBS_PATH="$ROOT_PATH/build/libs"
26+
JAVACLASS_PATH="$ROOT_PATH/build/java"
2627
PACKAGES_PATH="$ROOT_PATH/.packages"
2728
SRC_PATH="$ROOT_PATH/src"
2829
JNI_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

recipes/audiostream/recipe.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/bash
2-
# Recent change made audiostream not compatible with python-for-android yet.
3-
# Only h264+aac build are working.
42

53
VERSION_audiostream=
64
URL_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
}

0 commit comments

Comments
 (0)