2024-06-07 19:50:00 +02:00
|
|
|
include(fontconfig)
|
|
|
|
|
2024-06-03 08:40:19 -04:00
|
|
|
set(WEBWORKER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/WebWorker)
|
2023-11-08 11:47:41 -07:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC OFF)
|
|
|
|
set(CMAKE_AUTORCC OFF)
|
|
|
|
set(CMAKE_AUTOUIC OFF)
|
|
|
|
|
|
|
|
set(WEBWORKER_SOURCES
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/ConnectionFromClient.cpp"
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/DedicatedWorkerHost.cpp"
|
|
|
|
"${WEBWORKER_SOURCE_DIR}/PageHost.cpp"
|
2024-06-04 15:18:48 +02:00
|
|
|
../FontPlugin.cpp
|
2023-11-08 11:47:41 -07:00
|
|
|
../HelperProcess.cpp
|
|
|
|
../Utilities.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# FIXME: Add Android service
|
|
|
|
|
|
|
|
add_library(webworker STATIC ${WEBWORKER_SOURCES})
|
|
|
|
|
2024-06-03 08:40:19 -04:00
|
|
|
target_include_directories(webworker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services/)
|
|
|
|
target_include_directories(webworker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
2023-11-08 11:47:41 -07:00
|
|
|
target_include_directories(webworker PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
2024-06-23 09:14:27 -04:00
|
|
|
target_link_libraries(webworker PUBLIC LibCore LibFileSystem LibGfx LibIPC LibJS LibProtocol LibWeb LibWebView LibUnicode LibImageDecoderClient LibMain LibURL)
|
2023-11-08 11:47:41 -07:00
|
|
|
|
2024-06-07 19:50:00 +02:00
|
|
|
if (HAS_FONTCONFIG)
|
|
|
|
target_link_libraries(webworker PRIVATE Fontconfig::Fontconfig)
|
|
|
|
endif()
|
|
|
|
|
2023-11-08 11:47:41 -07:00
|
|
|
add_executable(WebWorker main.cpp)
|
2024-06-03 08:40:19 -04:00
|
|
|
target_include_directories(WebWorker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
2023-11-08 11:47:41 -07:00
|
|
|
target_link_libraries(WebWorker PRIVATE webworker)
|