dolphin/Source/Core/AudioCommon/CMakeLists.txt

41 lines
876 B
CMake
Raw Normal View History

2013-12-07 20:14:29 +00:00
set(SRCS AudioCommon.cpp
DPL2Decoder.cpp
Mixer.cpp
WaveFile.cpp
NullSoundStream.cpp)
set(LIBS "")
if(OPENSLES_FOUND)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} OpenSLESStream.cpp)
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
endif(OPENSLES_FOUND)
2013-02-26 19:49:00 +00:00
2011-12-05 04:49:08 +00:00
if(ALSA_FOUND)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} AlsaSoundStream.cpp)
2011-12-05 04:49:08 +00:00
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
endif(ALSA_FOUND)
if(AO_FOUND)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} AOSoundStream.cpp)
2011-12-05 04:49:08 +00:00
set(LIBS ${LIBS} ${AO_LIBRARIES})
endif(AO_FOUND)
if(OPENAL_FOUND)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
2011-12-05 04:49:08 +00:00
endif(OPENAL_FOUND)
if(PULSEAUDIO_FOUND)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} PulseAudioStream.cpp)
2011-12-05 04:49:08 +00:00
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
endif(PULSEAUDIO_FOUND)
if(WIN32)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} XAudio2Stream.cpp)
2015-01-03 12:17:57 +00:00
elseif(APPLE)
2013-12-07 20:14:29 +00:00
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
endif()
add_dolphin_library(audiocommon "${SRCS}" "${LIBS}")