mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
CMakeLists: Add flag to disable Cubeb
This commit is contained in:
@ -3,10 +3,7 @@ add_library(audiocommon
|
||||
AudioCommon.h
|
||||
AudioStretcher.cpp
|
||||
AudioStretcher.h
|
||||
CubebStream.cpp
|
||||
CubebStream.h
|
||||
CubebUtils.cpp
|
||||
CubebUtils.h
|
||||
Enums.h
|
||||
Mixer.cpp
|
||||
Mixer.h
|
||||
@ -18,6 +15,16 @@ add_library(audiocommon
|
||||
WaveFile.h
|
||||
)
|
||||
|
||||
if(ENABLE_CUBEB)
|
||||
message(STATUS "Cubeb found, enabling Cubeb sound backend")
|
||||
target_sources(audiocommon PRIVATE
|
||||
CubebStream.cpp
|
||||
CubebUtils.cpp
|
||||
CubebUtils.h
|
||||
)
|
||||
target_link_libraries(audiocommon PRIVATE cubeb)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
find_package(OpenSLES)
|
||||
if(OPENSLES_FOUND)
|
||||
@ -83,10 +90,13 @@ PUBLIC
|
||||
common
|
||||
|
||||
PRIVATE
|
||||
cubeb::cubeb
|
||||
SoundTouch
|
||||
FreeSurround)
|
||||
|
||||
if(ENABLE_CUBEB)
|
||||
target_link_libraries(audiocommon PRIVATE cubeb::cubeb)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# Add precompiled header
|
||||
target_link_libraries(audiocommon PRIVATE use_pch)
|
||||
|
Reference in New Issue
Block a user