2023-06-14 19:23:53 +00:00
|
|
|
# ###################################### RtAudio
|
|
|
|
if(LASP_HAS_PORTAUDIO)
|
|
|
|
message("Building with Portaudio backend")
|
|
|
|
if(WIN32)
|
2024-03-27 12:45:13 +00:00
|
|
|
set(PA_USE_ALSA FALSE CACHE BOOL "Build PortAudio with ALSA backend")
|
2024-04-05 13:49:48 +00:00
|
|
|
set(PA_USE_ASIO TRUE CACHE BOOL "Build PortAudio with ASIO backend")
|
|
|
|
set(PA_USE_DS FALSE CACHE BOOL "Build PortAudio with Directsound backend")
|
|
|
|
set(PA_USE_WMME FALSE CACHE BOOL "Build PortAudio with WMME backend")
|
|
|
|
set(PA_USE_WDMKS FALSE CACHE BOOL "Build PortAudio with WDMKS backend")
|
2023-06-14 19:23:53 +00:00
|
|
|
else()
|
2024-02-20 14:47:12 +00:00
|
|
|
# Unix
|
2023-06-14 19:23:53 +00:00
|
|
|
set(PA_USE_ALSA TRUE CACHE BOOL "Build PortAudio with ALSA backend")
|
2024-02-06 13:59:51 +00:00
|
|
|
set(PA_USE_JACK FALSE CACHE BOOL "Build PortAudio with Jack backend")
|
|
|
|
set(PA_USE_PULSEAUDIO FALSE CACHE BOOL "Build PortAudio with PulseAudio backend")
|
2023-06-14 19:23:53 +00:00
|
|
|
set(PA_BUILD_SHARED_LIBS FALSE CACHE BOOL "Build static library")
|
|
|
|
endif()
|
2024-03-27 12:45:13 +00:00
|
|
|
|
2023-06-14 19:23:53 +00:00
|
|
|
add_subdirectory(third_party/portaudio)
|
|
|
|
include_directories(third_party/portaudio/include)
|
|
|
|
link_directories(third_party/portaudio)
|
2024-03-27 12:45:13 +00:00
|
|
|
|
|
|
|
if(PA_USE_ALSA)
|
|
|
|
add_definitions(-DLASP_HAS_PA_ALSA=1)
|
|
|
|
else()
|
|
|
|
add_definitions(-DLASP_HAS_PA_ALSA=0)
|
|
|
|
endif()
|
|
|
|
|
2023-06-14 19:23:53 +00:00
|
|
|
endif()
|