14 - $HOME/android-ndk-r14
17 if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
18 # Install pulseaudio, portaudio, ALSA, JACK dependencies for
19 # corresponding backends.
20 # Install Qt5 dependency for alsoft-config.
21 sudo apt-get install -qq \
29 if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
30 if [[ ! -d ~/android-ndk-r14 || -z "$(ls -A ~/android-ndk-r14)" ]]; then
31 curl -o ~/android-ndk.zip https://dl.google.com/android/repository/android-ndk-r14-linux-x86_64.zip
32 unzip -q ~/android-ndk.zip -d ~ \
33 'android-ndk-r14/build/cmake/*' \
34 'android-ndk-r14/platforms/android-9/arch-arm/*' \
35 'android-ndk-r14/source.properties' \
36 'android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/*' \
37 'android-ndk-r14/sysroot/*' \
38 'android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
39 'android-ndk-r14/toolchains/llvm/prebuilt/linux-x86_64/*'
40 sed -i -e 's/VERSION 3.6.0/VERSION 3.2/' ~/android-ndk-r14/build/cmake/android.toolchain.cmake
45 if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
47 -DALSOFT_REQUIRE_ALSA=ON \
48 -DALSOFT_REQUIRE_OSS=ON \
49 -DALSOFT_REQUIRE_PORTAUDIO=ON \
50 -DALSOFT_REQUIRE_PULSEAUDIO=ON \
51 -DALSOFT_REQUIRE_JACK=ON \
52 -DALSOFT_EMBED_HRTF_DATA=YES \
56 if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
58 -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r14/build/cmake/android.toolchain.cmake \
59 -DALSOFT_REQUIRE_OPENSL=ON \
60 -DALSOFT_EMBED_HRTF_DATA=YES \
64 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
66 -DALSOFT_REQUIRE_COREAUDIO=ON \
67 -DALSOFT_EMBED_HRTF_DATA=YES \