mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
6b014489d4
This just sets up the infrastructure for the WebContent process to house WebDriver IPCs, and adds an IPC for WebContent to create the WebDriver connection. The WebDriverConnection class inside WebContent ultimately will contain most of what is currently in WebDriver::Session (so the copyright attributions are copied here as well). The socket created by WebDriver is currently /tmp/browser_webdriver (formatted with some IDs). This will be moved to the /tmp/webdriver folder, as WebDriver will create multiple sockets to communicate with both Browser and WebContent as the IPCs are iteratively moved to WebContent. That path is unveiled here, though it is unused as of this commit.
32 lines
881 B
CMake
32 lines
881 B
CMake
serenity_component(
|
|
WebContent
|
|
TARGETS WebContent
|
|
DEPENDS ImageDecoder RequestServer WebSocket
|
|
)
|
|
|
|
compile_ipc(WebContentServer.ipc WebContentServerEndpoint.h)
|
|
compile_ipc(WebContentClient.ipc WebContentClientEndpoint.h)
|
|
|
|
compile_ipc(WebDriverClient.ipc WebDriverClientEndpoint.h)
|
|
compile_ipc(WebDriverServer.ipc WebDriverServerEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ConnectionFromClient.cpp
|
|
ConsoleGlobalObject.cpp
|
|
ImageCodecPluginSerenity.cpp
|
|
PageHost.cpp
|
|
WebContentConsoleClient.cpp
|
|
WebDriverConnection.cpp
|
|
main.cpp
|
|
)
|
|
|
|
set(GENERATED_SOURCES
|
|
WebContentClientEndpoint.h
|
|
WebContentServerEndpoint.h
|
|
WebDriverClientEndpoint.h
|
|
WebDriverServerEndpoint.h
|
|
)
|
|
|
|
serenity_bin(WebContent)
|
|
target_link_libraries(WebContent PRIVATE LibCore LibIPC LibGfx LibImageDecoderClient LibJS LibWebView LibWeb LibLocale LibMain)
|
|
link_with_locale_data(WebContent)
|