mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-20 15:02:20 +00:00
XAudio2 cmake option
This commit is contained in:
parent
019d889306
commit
de9726c7d0
1 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
project("UnleashedRecomp")
|
project("UnleashedRecomp")
|
||||||
set(TARGET_NAME "SWA")
|
set(TARGET_NAME "SWA")
|
||||||
|
|
||||||
|
option(SWA_XAUDIO2 "Use XAudio2 for audio playback" OFF)
|
||||||
|
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
/fp:strict
|
/fp:strict
|
||||||
-march=sandybridge
|
-march=sandybridge
|
||||||
|
|
@ -57,10 +59,14 @@ set(SWA_GPU_CXX_SOURCES
|
||||||
|
|
||||||
set(SWA_APU_CXX_SOURCES
|
set(SWA_APU_CXX_SOURCES
|
||||||
"apu/audio.cpp"
|
"apu/audio.cpp"
|
||||||
#"apu/driver/xaudio_driver.cpp"
|
|
||||||
"apu/driver/sdl2_driver.cpp"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(SWA_XAUDIO2)
|
||||||
|
list(APPEND SWA_APU_CXX_SOURCES "apu/driver/xaudio_driver.cpp")
|
||||||
|
else()
|
||||||
|
list(APPEND SWA_APU_CXX_SOURCES "apu/driver/sdl2_driver.cpp")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(SWA_HID_CXX_SOURCES
|
set(SWA_HID_CXX_SOURCES
|
||||||
"hid/hid.cpp"
|
"hid/hid.cpp"
|
||||||
"hid/driver/sdl_hid.cpp"
|
"hid/driver/sdl_hid.cpp"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue