2024-06-07 17:50:00 +00:00
|
|
|
include(fontconfig)
|
|
|
|
|
2024-06-03 12:40:19 +00:00
|
|
|
set(WEBWORKER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/WebWorker)
|
2023-11-08 18:47:41 +00:00
|
|
|
|
|
|
|
set(WEBWORKER_SOURCES
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/ConnectionFromClient.cpp"
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/DedicatedWorkerHost.cpp"
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/PageHost.cpp"
|
2024-06-04 13:18:48 +00:00
|
|
|
../FontPlugin.cpp
|
2023-11-08 18:47:41 +00:00
|
|
|
../HelperProcess.cpp
|
|
|
|
../Utilities.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# FIXME: Add Android service
|
|
|
|
|
2024-09-03 08:31:45 +00:00
|
|
|
add_library(webworkerservice STATIC ${WEBWORKER_SOURCES})
|
|
|
|
set_target_properties(webworkerservice PROPERTIES AUTOMOC OFF AUTORCC OFF AUTOUIC OFF)
|
2023-11-08 18:47:41 +00:00
|
|
|
|
2024-09-03 08:31:45 +00:00
|
|
|
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)
|
2023-11-08 18:47:41 +00:00
|
|
|
|
2024-06-07 17:50:00 +00:00
|
|
|
if (HAS_FONTCONFIG)
|
2024-09-03 08:31:45 +00:00
|
|
|
target_link_libraries(webworkerservice PRIVATE Fontconfig::Fontconfig)
|
2024-06-07 17:50:00 +00:00
|
|
|
endif()
|
|
|
|
|
2024-07-06 02:41:07 +00:00
|
|
|
if (ENABLE_QT)
|
|
|
|
qt_add_executable(WebWorker
|
|
|
|
../Qt/EventLoopImplementationQt.cpp
|
|
|
|
../Qt/EventLoopImplementationQtEventTarget.cpp
|
|
|
|
../Qt/StringUtils.cpp
|
|
|
|
main.cpp
|
|
|
|
)
|
2024-10-08 11:19:26 +00:00
|
|
|
target_link_libraries(WebWorker PRIVATE Qt::Core)
|
2024-09-03 08:31:45 +00:00
|
|
|
target_link_libraries(WebWorker PRIVATE webworkerservice LibWebSocket)
|
2024-07-06 02:41:07 +00:00
|
|
|
target_compile_definitions(WebWorker PRIVATE HAVE_QT=1)
|
|
|
|
|
|
|
|
else()
|
|
|
|
add_executable(WebWorker main.cpp)
|
|
|
|
endif()
|
|
|
|
|
2024-06-03 12:40:19 +00:00
|
|
|
target_include_directories(WebWorker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
2024-09-03 08:31:45 +00:00
|
|
|
target_link_libraries(WebWorker PRIVATE webworkerservice)
|