Truly independent web browser
LibSandbox: Link unit tests into one executable
Timothy Flynnf4bb3de78542
diff --git a/Tests/LibSandbox/CMakeLists.txt b/Tests/LibSandbox/CMakeLists.txtindex f0db1fffe35..90d4a655fe2 100644--- a/Tests/LibSandbox/CMakeLists.txt+++ b/Tests/LibSandbox/CMakeLists.txt@@ -1,23 +1,28 @@-if (LINUX)- ladybird_test(TestLandlock.cpp LibSandbox LIBS LibSandbox)- ladybird_test(TestSeccomp.cpp LibSandbox LIBS LibSandbox LibCore)+ladybird_test_suite(LibSandbox)+target_link_libraries(TestLibSandbox PRIVATE LibSandbox)+if (LINUX)# Applies the real sandbox of the image decoder, so it builds its sandbox source.- ladybird_test(TestImageDecoderSandbox.cpp LibSandbox LIBS LibSandbox LibCore)- target_sources(TestImageDecoderSandbox PRIVATE ${LADYBIRD_SOURCE_DIR}/Services/ImageDecoder/SandboxLinux.cpp)- target_include_directories(TestImageDecoderSandbox PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)+ target_sources(TestLibSandbox PRIVATE+ TestImageDecoderSandbox.cpp+ TestLandlock.cpp+ TestSeccomp.cpp+ ${LADYBIRD_SOURCE_DIR}/Services/ImageDecoder/SandboxLinux.cpp+ )+ target_include_directories(TestLibSandbox PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)endif()if (APPLE)- ladybird_test(TestSeatbelt.cpp LibSandbox LIBS LibSandbox LibCore)- target_link_libraries(TestSeatbelt PRIVATE "-framework CoreFoundation" "-framework CoreServices" "-framework IOKit" "-framework IOSurface" "-framework Security")-# Applies the real sandboxes of the helpers, so it builds their sandbox sources.- ladybird_test(TestHelperSandboxes.cpp LibSandbox LIBS LibSandbox LibCore LibWebView)- target_sources(TestHelperSandboxes PRIVATE+ target_sources(TestLibSandbox PRIVATE+ TestHelperSandboxes.cpp+ TestSeatbelt.cpp${LADYBIRD_SOURCE_DIR}/Services/Compositor/SandboxMacOS.cpp${LADYBIRD_SOURCE_DIR}/Services/RendererSandboxMacOS.cpp)- target_include_directories(TestHelperSandboxes PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)- target_link_libraries(TestHelperSandboxes PRIVATE "-framework CoreFoundation" "-framework CoreGraphics" "-framework Security")+ target_include_directories(TestLibSandbox PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)+ target_link_libraries(TestLibSandbox PRIVATE LibWebView+ "-framework CoreFoundation" "-framework CoreServices" "-framework IOKit"+ "-framework IOSurface" "-framework Security" "-framework CoreGraphics"+ )endif()