haikuwebkit/Source/WebDriver/PlatformWPE.cmake

20 lines
367 B
CMake
Raw Permalink Normal View History

set(WebDriver_OUTPUT_NAME WPEWebDriver)
[WPE] Add initial support for WebDriver https://bugs.webkit.org/show_bug.cgi?id=179727 Reviewed by Michael Catanzaro. .: Enable WebDriver by default in WPE. * Source/cmake/OptionsWPE.cmake: Source/WebDriver: Add WPE implementation for platform-specific methods. Move the version handling to a common file WebDriverServiceGLib.cpp. * Capabilities.h: * PlatformGTK.cmake: * PlatformWPE.cmake: * glib/WebDriverServiceGLib.cpp: Added. (WebDriver::parseVersion): (WebDriver::WebDriverService::platformCompareBrowserVersions): * gtk/WebDriverServiceGtk.cpp: * wpe/WebDriverServiceWPE.cpp: Copied from Source/WebDriver/gtk/WebDriverServiceGtk.cpp. (WebDriver::WebDriverService::platformCapabilities): (WebDriver::WebDriverService::platformValidateCapability const): (WebDriver::WebDriverService::platformMatchCapability const): (WebDriver::WebDriverService::platformParseCapabilities const): Tools: Make it possible to run WebDriver tests with WPE. * Scripts/run-webdriver-tests: Add --wpe alias for --platform=wpe. * Scripts/webkitpy/port/wpe.py: (WPEPort.__init__): Initialize _display_server from options. (WPEPort._driver_class): Use WaylandDriver when wayland is passed as display server option. * Scripts/webkitpy/webdriver_tests/webdriver_driver.py: (WebDriver.browser_env): Add virtual method to get the environment that should be used. * Scripts/webkitpy/webdriver_tests/webdriver_driver_wpe.py: Copied from Tools/Scripts/webkitpy/webdriver_tests/webdriver_driver.py. (WebDriverWPE): (WebDriverWPE.__init__): (WebDriverWPE.binary_path): (WebDriverWPE.browser_name): (WebDriverWPE.capabilities): (WebDriverWPE.browser_env): * Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py: (WebDriverW3CExecutor.__init__): Update the environment with the one provided by the driver. * wpe/jhbuild.modules: Upgrade dyz to newer version that supports automation. Canonical link: https://commits.webkit.org/195790@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-11-16 12:48:22 +00:00
list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
"${GLIB_INCLUDE_DIRS}"
"${LIBSOUP_INCLUDE_DIRS}"
)
list(APPEND WebDriver_SOURCES
glib/SessionHostGlib.cpp
glib/WebDriverServiceGLib.cpp
soup/HTTPServerSoup.cpp
wpe/WebDriverServiceWPE.cpp
)
list(APPEND WebDriver_LIBRARIES
${LIBSOUP_LIBRARIES}
)