mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
4b0d4ded98
Added autodetection of shared libraries. Added a check for Xrandr. Fix OpenAL linkage. Copy User and Sys directories to lower case in the binary directory. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6338 8ced0084-cf51-0410-be5f-012b33b47a6e
39 lines
877 B
CMake
39 lines
877 B
CMake
set(SRCS Src/AudioCommon.cpp
|
|
Src/AudioCommonConfig.cpp
|
|
Src/Mixer.cpp
|
|
Src/WaveFile.cpp
|
|
Src/NullSoundStream.cpp)
|
|
|
|
set(LIBS "")
|
|
|
|
if(APPLE)
|
|
set(SRCS ${SRCS} Src/CoreAudioSoundStream.cpp)
|
|
else()
|
|
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 OR WIN32)
|
|
set(SRCS ${SRCS} Src/OpenALStream.cpp Src/aldlist.cpp)
|
|
set(LIBS ${LIBS} openal)
|
|
endif(OPENAL_FOUND OR WIN32)
|
|
|
|
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)
|
|
endif(WIN32)
|
|
endif()
|
|
|
|
add_library(audiocommon STATIC ${SRCS})
|
|
target_link_libraries(audiocommon ${LIBS})
|