feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change
on this file since f70e181 was
cd8dc52,
checked in by Paul Brossier <piem@piem.org>, 8 years ago
|
scripts/build_android: add an example script to build aubio on android, add reference to it in doc/android.rst
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | set -e |
---|
4 | set -x |
---|
5 | |
---|
6 | # location of android NDK |
---|
7 | NDK_PATH=$PWD/../contrib/android-ndk-r12 |
---|
8 | |
---|
9 | WAFOPTS="--disable-avcodec --disable-samplerate --disable-jack --disable-sndfile" |
---|
10 | |
---|
11 | # set these variables to change the default values |
---|
12 | [ -z $PLATFORM ] && PLATFORM=android-19 |
---|
13 | [ -z $ARCH ] && ARCH=arm |
---|
14 | |
---|
15 | # location nof the standalone toolchains, created with |
---|
16 | # $NDK_PATH/build/tools/make-standalone-toolchains.sh |
---|
17 | NDK_TOOLCHAINS=$PWD/contrib |
---|
18 | |
---|
19 | # location of the current toolchain |
---|
20 | CURRENT_TOOLCHAIN=$NDK_TOOLCHAINS/toolchain-$PLATFORM-$ARCH |
---|
21 | |
---|
22 | # if it does not exist, create the toolchain |
---|
23 | [ -d $CURRENT_TOOLCHAIN ] || \ |
---|
24 | $NDK_PATH/build/tools/make-standalone-toolchain.sh \ |
---|
25 | --platform=$PLATFORM --arch=$ARCH \ |
---|
26 | --install-dir=$CURRENT_TOOLCHAIN |
---|
27 | |
---|
28 | # aubio install destination directory |
---|
29 | DESTDIR=$PWD/dist-$PLATFORM-$ARCH |
---|
30 | |
---|
31 | # wipe it out if it exists |
---|
32 | [ -d $DESTDIR ] && rm -rf $DESTDIR |
---|
33 | |
---|
34 | # get the link to gcc |
---|
35 | CC=`ls $CURRENT_TOOLCHAIN/*-linux-android*/bin/gcc` |
---|
36 | |
---|
37 | CFLAGS="-Os" \ |
---|
38 | CC=$CC \ |
---|
39 | ./waf distclean configure build install --destdir=$DESTDIR \ |
---|
40 | --verbose \ |
---|
41 | --with-target-platform=android $WAFOPTS |
---|
Note: See
TracBrowser
for help on using the repository browser.