Qt/ladybird: Enable in Windows CI

This commit is contained in:
ayeteadoe 2025-06-28 13:52:44 -07:00 committed by Andrew Kaster
parent f58298132b
commit ed93551d59
Notes: github-actions[bot] 2025-08-23 22:06:38 +00:00
3 changed files with 39 additions and 5 deletions

View file

@ -16,3 +16,25 @@ target_sources(ladybird PRIVATE
)
target_link_libraries(ladybird PRIVATE Qt::Core Qt::Gui Qt::Widgets)
create_ladybird_bundle(ladybird)
if (WIN32)
qt_generate_deploy_script(
TARGET ladybird
OUTPUT_SCRIPT ladybird_deploy_script
CONTENT "
qt_deploy_runtime_dependencies(
EXECUTABLE $<TARGET_FILE:ladybird>
PLUGINS_DIR $<TARGET_FILE_DIR:ladybird>
)
")
add_custom_command(TARGET ladybird POST_BUILD
COMMAND ${CMAKE_COMMAND}
-E copy_if_different
$<TARGET_RUNTIME_DLLS:ladybird>
$<TARGET_FILE_DIR:ladybird>
COMMAND ${CMAKE_COMMAND}
-P ${ladybird_deploy_script}
COMMAND_EXPAND_LISTS
)
endif()