mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
Qt/ladybird: Enable in Windows CI
This commit is contained in:
parent
f58298132b
commit
ed93551d59
Notes:
github-actions[bot]
2025-08-23 22:06:38 +00:00
Author: https://github.com/ayeteadoe
Commit: ed93551d59
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5229
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 39 additions and 5 deletions
|
@ -1,5 +1,11 @@
|
|||
add_subdirectory(ImageDecoder)
|
||||
add_subdirectory(RequestServer)
|
||||
add_subdirectory(WebContent)
|
||||
add_subdirectory(WebDriver)
|
||||
add_subdirectory(WebWorker)
|
||||
|
||||
# FIXME: Increase support for building targets on Windows
|
||||
if (WIN32 AND ENABLE_WINDOWS_CI)
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_subdirectory(WebDriver)
|
||||
|
|
|
@ -78,9 +78,12 @@ target_include_directories(${LADYBIRD_TARGET} ${LADYBIRD_SOURCE_DIR}/Services/)
|
|||
|
||||
if(WIN32)
|
||||
# FIXME: This is a hack to get around lld-link error undefined symbols in various libraries
|
||||
target_link_libraries(${LADYBIRD_TARGET} PRIVATE
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,Application>
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,UserAgent>
|
||||
target_link_libraries(${LADYBIRD_TARGET}
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,Application>
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,UserAgent>
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,Utilities>
|
||||
$<FILTER:$<TARGET_OBJECTS:LibWebView>,INCLUDE,WebContentClient>
|
||||
LibDevTools
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -115,7 +118,10 @@ endif()
|
|||
set(ladybird_helper_processes ImageDecoder RequestServer WebContent WebWorker)
|
||||
|
||||
add_dependencies(ladybird ${ladybird_helper_processes})
|
||||
add_dependencies(WebDriver ladybird)
|
||||
# FIXME: Increase support for building targets on Windows
|
||||
if (NOT WIN32)
|
||||
add_dependencies(WebDriver ladybird)
|
||||
endif()
|
||||
|
||||
set_helper_process_properties(${ladybird_helper_processes})
|
||||
if (APPLE)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue