Move the image loader sources and decoder-only dependencies from LibGfx into a new LibImageDecoders library. This keeps the APNG-enabled PNG loader out of processes that only need core graphics and image writers. Link the ImageDecoder service, direct decoder tests, fuzzers, test-web, and the image utility against LibImageDecoders where they still decode images in-process.
21 lines
564 B
CMake
21 lines
564 B
CMake
set(TEST_SOURCES
|
|
BenchmarkJPEGLoader.cpp
|
|
TestBitmapExport.cpp
|
|
TestColor.cpp
|
|
TestImageDecoder.cpp
|
|
TestImageWriter.cpp
|
|
TestQuad.cpp
|
|
TestRect.cpp
|
|
TestWOFF.cpp
|
|
TestWOFF2.cpp
|
|
)
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
ladybird_test("${source}" LibGfx LIBS LibGfx)
|
|
endforeach()
|
|
|
|
target_link_libraries(BenchmarkJPEGLoader PRIVATE LibImageDecoders)
|
|
target_link_libraries(TestImageDecoder PRIVATE LibImageDecoders)
|
|
target_link_libraries(TestImageWriter PRIVATE LibImageDecoders)
|
|
|
|
ladybird_test(TestYUVData.cpp LibGfx LIBS LibGfx skia)
|