14 if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
15 # Install pulseaudio, portaudio, ALSA, JACK dependencies for
16 # corresponding backends.
17 # Install Qt5 dependency for alsoft-config.
18 sudo apt-get install -qq \
26 if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
27 curl -o ~/android-ndk.zip https://dl.google.com/android/repository/android-ndk-r15-linux-x86_64.zip
28 unzip -q ~/android-ndk.zip -d ~ \
29 'android-ndk-r15/build/cmake/*' \
30 'android-ndk-r15/build/core/toolchains/arm-linux-androideabi-*/*' \
31 'android-ndk-r15/platforms/android-14/arch-arm/*' \
32 'android-ndk-r15/source.properties' \
33 'android-ndk-r15/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/*' \
34 'android-ndk-r15/sources/cxx-stl/gnu-libstdc++/4.9/include/*' \
35 'android-ndk-r15/sysroot/*' \
36 'android-ndk-r15/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
37 'android-ndk-r15/toolchains/llvm/prebuilt/linux-x86_64/*'
41 if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
43 -DALSOFT_REQUIRE_ALSA=ON \
44 -DALSOFT_REQUIRE_OSS=ON \
45 -DALSOFT_REQUIRE_PORTAUDIO=ON \
46 -DALSOFT_REQUIRE_PULSEAUDIO=ON \
47 -DALSOFT_REQUIRE_JACK=ON \
48 -DALSOFT_EMBED_HRTF_DATA=YES \
52 if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
54 -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r15/build/cmake/android.toolchain.cmake \
55 -DALSOFT_REQUIRE_OPENSL=ON \
56 -DALSOFT_EMBED_HRTF_DATA=YES \
60 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
62 -DALSOFT_REQUIRE_COREAUDIO=ON \
63 -DALSOFT_EMBED_HRTF_DATA=YES \