mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
OpenAL-soft for windows
This commit is contained in:
parent
e2f2c4932b
commit
3a0a720115
207 changed files with 53310 additions and 13291 deletions
|
|
@ -65,6 +65,19 @@ else()
|
|||
set(TORQUE_SFX_DirectX OFF)
|
||||
endif()
|
||||
option(TORQUE_SFX_OPENAL "OpenAL Sound" ON)
|
||||
#windows uses openal-soft
|
||||
if(WIN32)
|
||||
#disable a few things that are not required
|
||||
set(ALSOFT_TESTS OFF CACHE BOOL "Build and install test programs" FORCE)
|
||||
set(ALSOFT_UTILS OFF CACHE BOOL "Build and install utility programs" FORCE)
|
||||
set(ALSOFT_EXAMPLES OFF CACHE BOOL "Build and install example programs" FORCE)
|
||||
set(ALSOFT_CONFIG OFF CACHE BOOL "Install alsoft.conf sample configuration file" FORCE)
|
||||
set(ALSOFT_INSTALL OFF CACHE BOOL "Install headers and libraries" FORCE)
|
||||
set(ALSOFT_NO_CONFIG_UTIL OFF CACHE BOOL "Disable building the alsoft-config utility" FORCE)
|
||||
set(ALSOFT_HRTF_DEFS OFF CACHE BOOL "Install HRTF definition files" FORCE)
|
||||
set(ALSOFT_AMBDEC_PRESETS OFF CACHE BOOL "Install AmbDec presets" FORCE)
|
||||
add_subdirectory( ${libDir}/openal-soft ${CMAKE_CURRENT_BINARY_DIR}/openal-soft)
|
||||
endif()
|
||||
mark_as_advanced(TORQUE_SFX_OPENAL)
|
||||
option(TORQUE_HIFI "HIFI? support" OFF)
|
||||
mark_as_advanced(TORQUE_HIFI)
|
||||
|
|
@ -332,7 +345,7 @@ if(TORQUE_SFX_OPENAL AND NOT TORQUE_DEDICATED)
|
|||
addPath("${srcDir}/sfx/openal")
|
||||
if(WIN32)
|
||||
addPath("${srcDir}/sfx/openal/win32")
|
||||
addInclude("${libDir}/openal/win32")
|
||||
addInclude("${libDir}/openal-soft/include")
|
||||
endif()
|
||||
if(UNIX AND NOT APPLE)
|
||||
addPath("${srcDir}/sfx/openal/linux")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue