2017-07-18 07:20:33 +00:00
|
|
|
set_property(DIRECTORY . PROPERTY FOLDER "WebDriver")
|
|
|
|
|
2019-05-21 13:10:52 +00:00
|
|
|
include(WebKitCommon)
|
|
|
|
|
|
|
|
set(WebDriver_PRIVATE_INCLUDE_DIRECTORIES
|
|
|
|
"${CMAKE_BINARY_DIR}"
|
2017-07-18 07:20:33 +00:00
|
|
|
"${WEBDRIVER_DIR}"
|
2021-03-25 23:10:50 +00:00
|
|
|
"${WebDriver_DERIVED_SOURCES_DIR}"
|
2017-07-18 07:20:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(WebDriver_SOURCES
|
|
|
|
CommandResult.cpp
|
|
|
|
HTTPServer.cpp
|
|
|
|
Session.cpp
|
|
|
|
SessionHost.cpp
|
|
|
|
WebDriverMain.cpp
|
|
|
|
WebDriverService.cpp
|
|
|
|
)
|
|
|
|
|
2020-12-10 21:28:18 +00:00
|
|
|
set(WebDriver_FRAMEWORKS
|
|
|
|
WTF
|
2017-07-18 07:20:33 +00:00
|
|
|
)
|
2020-12-11 19:15:43 +00:00
|
|
|
if (NOT USE_SYSTEM_MALLOC)
|
|
|
|
list(APPEND WebDriver_FRAMEWORKS bmalloc)
|
|
|
|
endif ()
|
|
|
|
|
2017-07-18 07:20:33 +00:00
|
|
|
|
|
|
|
set(WebDriver_SCRIPTS
|
2017-09-19 00:29:31 +00:00
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/ElementAttribute.js
|
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/ElementDisplayed.js
|
2019-12-12 11:05:34 +00:00
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/ElementEnabled.js
|
2018-05-24 08:54:37 +00:00
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/EnterFullscreen.js
|
2017-09-19 00:29:31 +00:00
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/FindNodes.js
|
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/FormElementClear.js
|
|
|
|
${WEBKIT_DIR}/UIProcess/Automation/atoms/FormSubmit.js
|
2017-07-18 07:20:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
MAKE_JS_FILE_ARRAYS(
|
2021-03-25 23:10:50 +00:00
|
|
|
${WebDriver_DERIVED_SOURCES_DIR}/WebDriverAtoms.cpp
|
|
|
|
${WebDriver_DERIVED_SOURCES_DIR}/WebDriverAtoms.h
|
2017-07-18 07:20:33 +00:00
|
|
|
WebDriver
|
|
|
|
WebDriver_SCRIPTS
|
|
|
|
Session.cpp
|
|
|
|
)
|
2021-03-25 23:10:50 +00:00
|
|
|
list(APPEND WebDriver_SOURCES ${WebDriver_DERIVED_SOURCES_DIR}/WebDriverAtoms.cpp)
|
2017-07-18 07:20:33 +00:00
|
|
|
|
2019-05-21 13:10:52 +00:00
|
|
|
WEBKIT_EXECUTABLE_DECLARE(WebDriver)
|
2017-07-18 07:20:33 +00:00
|
|
|
|
2020-07-15 20:18:13 +00:00
|
|
|
add_dependencies(WebDriver JavaScriptCoreSharedScripts)
|
|
|
|
|
2019-05-21 13:10:52 +00:00
|
|
|
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
|
2017-07-18 07:20:33 +00:00
|
|
|
|
2019-05-21 13:10:52 +00:00
|
|
|
WEBKIT_EXECUTABLE(WebDriver)
|
2017-07-18 07:20:33 +00:00
|
|
|
|
|
|
|
install(TARGETS WebDriver
|
|
|
|
RUNTIME DESTINATION "${EXEC_INSTALL_DIR}"
|
|
|
|
)
|