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-r16b-linux-x86_64.zip
28 unzip -q ~/android-ndk.zip -d ~ \
29 'android-ndk-r16b/build/cmake/*' \
30 'android-ndk-r16b/build/core/toolchains/arm-linux-androideabi-*/*' \
31 'android-ndk-r16b/platforms/android-14/arch-arm/*' \
32 'android-ndk-r16b/source.properties' \
33 'android-ndk-r16b/sources/android/support/include/*' \
34 'android-ndk-r16b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/*' \
35 'android-ndk-r16b/sources/cxx-stl/llvm-libc++/include/*' \
36 'android-ndk-r16b/sysroot/*' \
37 'android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
38 'android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/*'
42 if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
44 -DALSOFT_REQUIRE_ALSA=ON \
45 -DALSOFT_REQUIRE_OSS=ON \
46 -DALSOFT_REQUIRE_PORTAUDIO=ON \
47 -DALSOFT_REQUIRE_PULSEAUDIO=ON \
48 -DALSOFT_REQUIRE_JACK=ON \
49 -DALSOFT_EMBED_HRTF_DATA=YES \
53 if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
55 -DANDROID_STL=c++_shared \
56 -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r16b/build/cmake/android.toolchain.cmake \
57 -DALSOFT_REQUIRE_OPENSL=ON \
58 -DALSOFT_EMBED_HRTF_DATA=YES \
62 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
64 -DALSOFT_REQUIRE_COREAUDIO=ON \
65 -DALSOFT_EMBED_HRTF_DATA=YES \