This file was here for quite a long while now. Let's finally move most of the dependency checks to one centralized place.
19 lines
448 B
CMake
19 lines
448 B
CMake
include_guard()
|
|
|
|
# Audio backend -- how we output audio to the speakers.
|
|
if (APPLE AND NOT IOS)
|
|
set(LADYBIRD_AUDIO_BACKEND "AUDIO_UNIT")
|
|
return()
|
|
elseif (NOT WIN32)
|
|
pkg_check_modules(PULSEAUDIO IMPORTED_TARGET libpulse)
|
|
|
|
if (PULSEAUDIO_FOUND)
|
|
set(LADYBIRD_AUDIO_BACKEND "PULSE")
|
|
return()
|
|
endif()
|
|
else()
|
|
set(LADYBIRD_AUDIO_BACKEND "WASAPI")
|
|
return()
|
|
endif()
|
|
|
|
message(WARNING "No audio backend available")
|