mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
cmake: Reindent AudioCommon
This commit is contained in:
parent
3be364073d
commit
f1ba7832a5
@ -1,50 +1,52 @@
|
|||||||
set(SRCS AudioCommon.cpp
|
set(SRCS
|
||||||
DPL2Decoder.cpp
|
AudioCommon.cpp
|
||||||
Mixer.cpp
|
DPL2Decoder.cpp
|
||||||
WaveFile.cpp
|
Mixer.cpp
|
||||||
NullSoundStream.cpp)
|
WaveFile.cpp
|
||||||
|
NullSoundStream.cpp
|
||||||
|
)
|
||||||
|
|
||||||
set(LIBS "")
|
set(LIBS "")
|
||||||
|
|
||||||
find_package(OpenSLES)
|
find_package(OpenSLES)
|
||||||
if(OPENSLES_FOUND)
|
if(OPENSLES_FOUND)
|
||||||
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
|
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
|
||||||
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
||||||
set(LIBS ${LIBS} OpenSLES::OpenSLES)
|
set(LIBS ${LIBS} OpenSLES::OpenSLES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ALSA_FOUND)
|
if(ALSA_FOUND)
|
||||||
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
||||||
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(AO_FOUND)
|
if(AO_FOUND)
|
||||||
set(SRCS ${SRCS} AOSoundStream.cpp)
|
set(SRCS ${SRCS} AOSoundStream.cpp)
|
||||||
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENAL_FOUND)
|
if(OPENAL_FOUND)
|
||||||
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
||||||
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PULSEAUDIO_FOUND)
|
if(PULSEAUDIO_FOUND)
|
||||||
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
||||||
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
||||||
|
|
||||||
add_dolphin_library(audiocommon_xaudio27 "XAudio2_7Stream.cpp" "${LIBS}")
|
add_dolphin_library(audiocommon_xaudio27 "XAudio2_7Stream.cpp" "${LIBS}")
|
||||||
target_include_directories(audiocommon_xaudio27 PRIVATE
|
target_include_directories(audiocommon_xaudio27 PRIVATE
|
||||||
${PROJECT_SOURCE_DIR}/Externals
|
${PROJECT_SOURCE_DIR}/Externals
|
||||||
${PROJECT_SOURCE_DIR}/Externals/XAudio2_7
|
${PROJECT_SOURCE_DIR}/Externals/XAudio2_7
|
||||||
)
|
)
|
||||||
list(APPEND LIBS audiocommon_xaudio27)
|
list(APPEND LIBS audiocommon_xaudio27)
|
||||||
|
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
|
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user