cmake: Build XAudio 2.7 backend on Windows

This commit is contained in:
Florent Castelli 2017-01-20 22:56:15 +01:00
parent 08d6a24bbc
commit b5b9c0cfc3
1 changed files with 9 additions and 0 deletions

View File

@ -33,8 +33,17 @@ endif(PULSEAUDIO_FOUND)
if(WIN32)
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)
elseif(APPLE)
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
endif()
add_dolphin_library(audiocommon "${SRCS}" "${LIBS}")