mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
e5192073d9
This allows us to use standard Serenity IPC infrastructure rather than manually creating FD-passing sockets. This also lets us use Serenity's WebDriver Session class, removing the copy previously used in Ladybird. This ensures any changes to Session in the future will be picked up by Ladybird for free.
18 lines
782 B
CMake
18 lines
782 B
CMake
set(WEBDRIVER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Services/WebDriver)
|
|
|
|
set(SOURCES
|
|
${WEBDRIVER_SOURCE_DIR}/Client.cpp
|
|
${WEBDRIVER_SOURCE_DIR}/Session.cpp
|
|
${WEBDRIVER_SOURCE_DIR}/WebContentConnection.cpp
|
|
../Utilities.cpp
|
|
main.cpp
|
|
)
|
|
|
|
qt_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 ${SERENITY_SOURCE_DIR}/Userland)
|
|
target_include_directories(WebDriver PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services)
|
|
target_link_libraries(WebDriver PRIVATE Qt::Core Qt::Network LibCore LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket)
|
|
add_dependencies(WebDriver headless-browser)
|