WebDriver: Move all WebDriver configuration to Services

This commit is contained in:
Timothy Flynn 2024-11-09 09:39:24 -05:00 committed by Andreas Kling
parent d5c2d11ac7
commit 19fb790dc6
Notes: github-actions[bot] 2024-11-09 16:56:41 +00:00
5 changed files with 10 additions and 11 deletions

View file

@ -89,6 +89,7 @@ endif()
include(CTest) # for BUILD_TESTING option, default ON
if (ENABLE_GUI_TARGETS)
add_subdirectory(Userland/Services)
add_subdirectory(Ladybird)
endif()

View file

@ -135,7 +135,6 @@ add_subdirectory(Headless)
add_subdirectory(ImageDecoder)
add_subdirectory(RequestServer)
add_subdirectory(WebContent)
add_subdirectory(WebDriver)
add_subdirectory(WebWorker)
set(ladybird_helper_processes ImageDecoder RequestServer WebContent WebWorker)

View file

@ -0,0 +1 @@
add_subdirectory(WebDriver)

View file

@ -1,18 +1,16 @@
set(WEBDRIVER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/WebDriver)
set(SOURCES
${WEBDRIVER_SOURCE_DIR}/Client.cpp
${WEBDRIVER_SOURCE_DIR}/Session.cpp
${WEBDRIVER_SOURCE_DIR}/WebContentConnection.cpp
../Utilities.cpp
${LADYBIRD_SOURCE_DIR}/Ladybird/Utilities.cpp
Client.cpp
Session.cpp
WebContentConnection.cpp
main.cpp
)
add_executable(WebDriver ${SOURCES})
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../..)
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
target_include_directories(WebDriver PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland)
target_include_directories(WebDriver PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services)
target_link_libraries(WebDriver PRIVATE LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket LibWebView)
add_dependencies(WebDriver headless-browser)

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
* Copyright (c) 2022-2024, Tim Flynn <trflynn89@laybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/