WebWorker: Move all WebWorker configuration to Services

This commit is contained in:
Timothy Flynn 2024-11-09 10:06:26 -05:00 committed by Andreas Kling
parent 20bdd34696
commit ed6431a0b1
Notes: github-actions[bot] 2024-11-09 16:56:17 +00:00
4 changed files with 13 additions and 15 deletions

View file

@ -132,7 +132,6 @@ else()
endif()
add_subdirectory(Headless)
add_subdirectory(WebWorker)
set(ladybird_helper_processes ImageDecoder RequestServer WebContent WebWorker)

View file

@ -2,3 +2,4 @@ add_subdirectory(ImageDecoder)
add_subdirectory(RequestServer)
add_subdirectory(WebContent)
add_subdirectory(WebDriver)
add_subdirectory(WebWorker)

View file

@ -1,14 +1,12 @@
include(fontconfig)
set(WEBWORKER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/WebWorker)
set(WEBWORKER_SOURCES
"${WEBWORKER_SOURCE_DIR}/ConnectionFromClient.cpp"
"${WEBWORKER_SOURCE_DIR}/DedicatedWorkerHost.cpp"
"${WEBWORKER_SOURCE_DIR}/PageHost.cpp"
../FontPlugin.cpp
../HelperProcess.cpp
../Utilities.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/FontPlugin.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/HelperProcess.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Utilities.cpp
ConnectionFromClient.cpp
DedicatedWorkerHost.cpp
PageHost.cpp
)
# FIXME: Add Android service
@ -16,9 +14,10 @@ set(WEBWORKER_SOURCES
add_library(webworkerservice STATIC ${WEBWORKER_SOURCES})
set_target_properties(webworkerservice PROPERTIES AUTOMOC OFF AUTORCC OFF AUTOUIC OFF)
target_include_directories(webworkerservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
target_include_directories(webworkerservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services/)
target_include_directories(webworkerservice PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
target_include_directories(webworkerservice PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
target_link_libraries(webworkerservice PUBLIC LibCore LibFileSystem LibGfx LibIPC LibJS LibRequests LibWeb LibWebView LibUnicode LibImageDecoderClient LibMain LibURL)
if (HAS_FONTCONFIG)
@ -27,15 +26,14 @@ endif()
if (ENABLE_QT)
qt_add_executable(WebWorker
../Qt/EventLoopImplementationQt.cpp
../Qt/EventLoopImplementationQtEventTarget.cpp
../Qt/StringUtils.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Qt/EventLoopImplementationQt.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Qt/EventLoopImplementationQtEventTarget.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Qt/StringUtils.cpp
main.cpp
)
target_link_libraries(WebWorker PRIVATE Qt::Core)
target_link_libraries(WebWorker PRIVATE webworkerservice LibWebSocket)
target_compile_definitions(WebWorker PRIVATE HAVE_QT=1)
else()
add_executable(WebWorker main.cpp)
endif()