2024-12-23 13:37:52 -05:00
|
|
|
include(audio)
|
|
|
|
|
2022-09-25 19:24:07 -04:00
|
|
|
set(TEST_SOURCES
|
2024-06-20 00:06:40 -04:00
|
|
|
TestH264Decode.cpp
|
2023-06-24 04:41:14 -04:00
|
|
|
TestParseMatroska.cpp
|
2024-08-28 06:08:38 -04:00
|
|
|
TestPlaybackStream.cpp
|
2024-09-11 06:43:56 -04:00
|
|
|
TestVorbisDecode.cpp
|
2022-09-25 19:24:07 -04:00
|
|
|
TestVP9Decode.cpp
|
2024-08-28 06:08:38 -04:00
|
|
|
TestWav.cpp
|
2022-09-25 19:24:07 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
2024-08-28 06:08:38 -04:00
|
|
|
lagom_test("${source}" LibMedia LIBS LibMedia LibFileSystem WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
|
2022-09-25 19:24:07 -04:00
|
|
|
endforeach()
|
2024-12-23 13:37:52 -05:00
|
|
|
|
|
|
|
if (LADYBIRD_AUDIO_BACKEND STREQUAL "PULSE")
|
|
|
|
target_compile_definitions(TestPlaybackStream PRIVATE HAVE_PULSEAUDIO=1)
|
|
|
|
endif()
|