1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:38:11 +00:00
serenity/Userland/Services/WebWorker/CMakeLists.txt
Andrew Kaster 124c378472 LibWeb+WebWorker: Move worker execution into a new WebWorker process
We now create a WorkerAgent for the parent context, which is currently
only a Window. Note that Workers can have Workers per the spec.

The WorkerAgent spawns a WebWorker process to hold the actual
script execution of the Worker. This is modeled with the
DedicatedWorkerHost object in the WebWorker process.
A start_dedicated_worker IPC method in the WebWorker IPC creates the
WorkerHost object. Future different worker types may use different IPC
messages to create their WorkerHost instance.

This implementation cannot yet postMessage between the parent and the
child processes.

Co-Authored-By: Andreas Kling <kling@serenityos.org>
2023-11-15 12:56:33 +01:00

21 lines
499 B
CMake

serenity_component(
WebWorker
TARGETS WebWorker
DEPENDS WebContent
)
set(SOURCES
ConnectionFromClient.cpp
DedicatedWorkerHost.cpp
PageHost.cpp
main.cpp
)
set(GENERATED_SOURCES
../Libraries/LibWeb/Worker/WebWorkerClientEndpoint.h
../Libraries/LibWeb/Worker/WebWorkerServerEndpoint.h
)
serenity_bin(WebWorker)
target_link_libraries(WebWorker PRIVATE LibCore LibFileSystem LibGfx LibIPC LibJS LibWeb LibWebView LibLocale LibMain)
link_with_locale_data(WebWorker)