LibVideo: Add LibVideo test to Lagom

This commit is contained in:
Zaggy1024 2022-10-09 20:55:54 -05:00 committed by Andrew Kaster
parent d67231312e
commit bbc053fa56
Notes: sideshowbarker 2024-07-17 06:07:01 +09:00

View file

@ -541,6 +541,14 @@ if (BUILD_LAGOM)
)
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
# Video
file(GLOB LIBVIDEO_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibVideo/*.cpp")
file(GLOB LIBVIDEO_SUBDIR_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibVideo/*/*.cpp")
lagom_lib(Video video
SOURCES ${LIBVIDEO_SOURCES} ${LIBVIDEO_SUBDIR_SOURCES}
LIBS LibAudio LibIPC LibGfx
)
# WASM
file(GLOB LIBWASM_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibWasm/*/*.cpp")
lagom_lib(Wasm wasm
@ -790,6 +798,13 @@ if (BUILD_LAGOM)
lagom_test(${source} LIBS LibUnicode)
endforeach()
# Video
file(GLOB LIBVIDEO_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibVideo/*.cpp")
foreach(source ${LIBVIDEO_TEST_SOURCES})
lagom_test(${source} LIBS LibVideo
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/LibVideo)
endforeach()
# JavaScriptTestRunner + LibTest tests
# test-js
add_executable(test-js_lagom