cmake: Reindent AudioCommon
This commit is contained in:
parent
3be364073d
commit
f1ba7832a5
|
@ -1,50 +1,52 @@
|
|||
set(SRCS AudioCommon.cpp
|
||||
DPL2Decoder.cpp
|
||||
Mixer.cpp
|
||||
WaveFile.cpp
|
||||
NullSoundStream.cpp)
|
||||
set(SRCS
|
||||
AudioCommon.cpp
|
||||
DPL2Decoder.cpp
|
||||
Mixer.cpp
|
||||
WaveFile.cpp
|
||||
NullSoundStream.cpp
|
||||
)
|
||||
|
||||
set(LIBS "")
|
||||
|
||||
find_package(OpenSLES)
|
||||
if(OPENSLES_FOUND)
|
||||
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
|
||||
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
||||
set(LIBS ${LIBS} OpenSLES::OpenSLES)
|
||||
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
|
||||
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
||||
set(LIBS ${LIBS} OpenSLES::OpenSLES)
|
||||
endif()
|
||||
|
||||
if(ALSA_FOUND)
|
||||
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
||||
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
||||
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
||||
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(AO_FOUND)
|
||||
set(SRCS ${SRCS} AOSoundStream.cpp)
|
||||
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
||||
set(SRCS ${SRCS} AOSoundStream.cpp)
|
||||
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(OPENAL_FOUND)
|
||||
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
||||
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
||||
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
||||
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
||||
endif()
|
||||
|
||||
if(PULSEAUDIO_FOUND)
|
||||
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
||||
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
||||
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
||||
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
||||
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
||||
|
||||
add_dolphin_library(audiocommon_xaudio27 "XAudio2_7Stream.cpp" "${LIBS}")
|
||||
target_include_directories(audiocommon_xaudio27 PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/Externals
|
||||
${PROJECT_SOURCE_DIR}/Externals/XAudio2_7
|
||||
)
|
||||
list(APPEND LIBS audiocommon_xaudio27)
|
||||
add_dolphin_library(audiocommon_xaudio27 "XAudio2_7Stream.cpp" "${LIBS}")
|
||||
target_include_directories(audiocommon_xaudio27 PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/Externals
|
||||
${PROJECT_SOURCE_DIR}/Externals/XAudio2_7
|
||||
)
|
||||
list(APPEND LIBS audiocommon_xaudio27)
|
||||
|
||||
elseif(APPLE)
|
||||
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
|
||||
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue