mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
cmake: Move AO detection to AudioCommon
This commit is contained in:
@ -29,9 +29,18 @@ else()
|
||||
message(STATUS "ALSA explicitly disabled, disabling ALSA sound backend")
|
||||
endif()
|
||||
|
||||
if(AO_FOUND)
|
||||
target_sources(audiocommon PRIVATE AOSoundStream.cpp)
|
||||
target_link_libraries(audiocommon PRIVATE ${AO_LIBRARIES})
|
||||
if(ENABLE_AO)
|
||||
find_package(AO)
|
||||
if(AO_FOUND)
|
||||
message(STATUS "ao found, enabling ao sound backend")
|
||||
target_sources(audiocommon PRIVATE AOSoundStream.cpp)
|
||||
target_link_libraries(audiocommon PRIVATE AO::AO)
|
||||
target_compile_definitions(audiocommon PRIVATE HAVE_AO=1)
|
||||
else()
|
||||
message(STATUS "ao NOT found, disabling ao sound backend")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "ao explicitly disabled, disabling ao sound backend")
|
||||
endif()
|
||||
|
||||
if(OPENAL_FOUND)
|
||||
|
Reference in New Issue
Block a user