Build environment: backport master changes to blender2.7.
[blender.git] / build_files / build_environment / cmake / openal.cmake
index 7a693b1fce24ade229e672b8746c52faffc5d7ef..3cd3a0aac728f61b5807a7eda561ca99f80766cc 100644 (file)
 
 if(BUILD_MODE STREQUAL Release)
        set(OPENAL_EXTRA_ARGS
-               -DALSOFT_UTILS=OFF
-               -DALSOFT_NO_CONFIG_UTIL=ON
-               -DALSOFT_EXAMPLES=OFF
-               -DALSOFT_TESTS=OFF
-               -DALSOFT_CONFIG=OFF
-               -DALSOFT_HRTF_DEFS=OFF
-               -DALSOFT_INSTALL=ON
-               -DALSOFT_BACKEND_SNDIO=OFF
+               -DALSOFT_UTILS=Off
+               -DALSOFT_NO_CONFIG_UTIL=On
+               -DALSOFT_EXAMPLES=Off
+               -DALSOFT_TESTS=Off
+               -DALSOFT_CONFIG=Off
+               -DALSOFT_HRTF_DEFS=Off
+               -DALSOFT_INSTALL=On
+               -DALSOFT_BACKEND_SNDIO=Off
        )
 
        if(UNIX)
-               set(OPENAL_EXTRA_ARGS
-                       ${OPENAL_EXTRA_ARGS}
-                       -DLIBTYPE=STATIC
-               )
-       endif()
-
-       if(UNIX AND NOT APPLE)
-               # Ensure we have backends for playback.
-               set(OPENAL_EXTRA_ARGS
-                       ${OPENAL_EXTRA_ARGS}
-                       -DALSOFT_REQUIRE_ALSA=ON
-                       -DALSOFT_REQUIRE_OSS=ON
-                       -DALSOFT_REQUIRE_PULSEAUDIO=ON
-               )
+               set(OPENAL_EXTRA_ARGS ${OPENAL_EXTRA_ARGS} -DLIBTYPE=STATIC)
        endif()
 
        ExternalProject_Add(external_openal