ladybird/Tests/LibMedia/CMakeLists.txt
Timothy Flynn 79a2b96d1c Meta: Consolidate checking for the system audio backend
The goal here is to ensure we check for audio backends in a way that
makes sense. On macOS, let's just always use Audio Unit (and thus avoid
any checks for Pulse, to reduce needless/confusing build log noise). We
will also only use the Qt audio backend if no other backend was found,
rather than only checking for Pulse.
2024-12-25 12:00:43 +01:00

18 lines
470 B
CMake

include(audio)
set(TEST_SOURCES
TestH264Decode.cpp
TestParseMatroska.cpp
TestPlaybackStream.cpp
TestVorbisDecode.cpp
TestVP9Decode.cpp
TestWav.cpp
)
foreach(source IN LISTS TEST_SOURCES)
lagom_test("${source}" LibMedia LIBS LibMedia LibFileSystem WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
endforeach()
if (LADYBIRD_AUDIO_BACKEND STREQUAL "PULSE")
target_compile_definitions(TestPlaybackStream PRIVATE HAVE_PULSEAUDIO=1)
endif()