2010-11-01 15:47:02 +00:00
|
|
|
set(SRCS Src/AudioCommon.cpp
|
2013-01-11 03:03:09 +00:00
|
|
|
Src/DPL2Decoder.cpp
|
2010-11-01 15:47:02 +00:00
|
|
|
Src/Mixer.cpp
|
2010-11-02 00:39:52 +00:00
|
|
|
Src/WaveFile.cpp
|
2010-11-02 03:35:44 +00:00
|
|
|
Src/NullSoundStream.cpp)
|
2010-11-01 15:47:02 +00:00
|
|
|
|
2010-11-03 04:13:36 +00:00
|
|
|
set(LIBS "")
|
2010-11-01 15:47:02 +00:00
|
|
|
|
2013-02-26 19:49:00 +00:00
|
|
|
if(ANDROID)
|
|
|
|
set(SRCS ${SRCS} Src/OpenSLESStream.cpp)
|
|
|
|
set(LIBS ${LIBS} OpenSLES)
|
|
|
|
endif(ANDROID)
|
|
|
|
|
2011-12-05 04:49:08 +00:00
|
|
|
if(ALSA_FOUND)
|
|
|
|
set(SRCS ${SRCS} Src/AlsaSoundStream.cpp)
|
|
|
|
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
|
|
|
endif(ALSA_FOUND)
|
|
|
|
|
|
|
|
if(AO_FOUND)
|
|
|
|
set(SRCS ${SRCS} Src/AOSoundStream.cpp)
|
|
|
|
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
|
|
|
endif(AO_FOUND)
|
|
|
|
|
|
|
|
if(OPENAL_FOUND)
|
|
|
|
set(SRCS ${SRCS} Src/OpenALStream.cpp Src/aldlist.cpp)
|
2013-01-09 16:26:12 +00:00
|
|
|
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
2011-12-05 04:49:08 +00:00
|
|
|
endif(OPENAL_FOUND)
|
|
|
|
|
|
|
|
if(PULSEAUDIO_FOUND)
|
|
|
|
set(SRCS ${SRCS} Src/PulseAudioStream.cpp)
|
|
|
|
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
|
|
|
endif(PULSEAUDIO_FOUND)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(SRCS ${SRCS} Src/DSoundStream.cpp)
|
|
|
|
set(SRCS ${SRCS} Src/XAudio2Stream.cpp)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2010-11-17 01:03:39 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2010-11-01 15:47:02 +00:00
|
|
|
set(SRCS ${SRCS} Src/CoreAudioSoundStream.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(audiocommon STATIC ${SRCS})
|
2010-11-03 04:13:36 +00:00
|
|
|
target_link_libraries(audiocommon ${LIBS})
|