41 lines · 1.1 KB · Text
RawDownload
#! /usr/bin/env bash set -eset -x # location of android NDKNDK_PATH=$PWD/../contrib/android-ndk-r12 WAFOPTS="--disable-avcodec --disable-samplerate --disable-jack --disable-sndfile" # set these variables to change the default values[ -z $PLATFORM ] && PLATFORM=android-19[ -z $ARCH ] && ARCH=arm # location nof the standalone toolchains, created with# $NDK_PATH/build/tools/make-standalone-toolchains.shNDK_TOOLCHAINS=$PWD/contrib # location of the current toolchainCURRENT_TOOLCHAIN=$NDK_TOOLCHAINS/toolchain-$PLATFORM-$ARCH # if it does not exist, create the toolchain[ -d $CURRENT_TOOLCHAIN ] || \  $NDK_PATH/build/tools/make-standalone-toolchain.sh \    --platform=$PLATFORM --arch=$ARCH \    --install-dir=$CURRENT_TOOLCHAIN # aubio install destination directoryDESTDIR=$PWD/dist-$PLATFORM-$ARCH # wipe it out if it exists[ -d $DESTDIR ] && rm -rf $DESTDIR # get the link to gccCC=`ls $CURRENT_TOOLCHAIN/*-linux-android*/bin/gcc` CFLAGS="-Os" \  CC=$CC \  ./waf distclean configure build install --destdir=$DESTDIR \   --verbose \   --with-target-platform=android $WAFOPTS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t