2018-10-31 04:00:45 +00:00
|
|
|
set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TestWebKitAPI")
|
|
|
|
|
|
|
|
set(test_main_SOURCES
|
2020-04-27 05:07:40 +00:00
|
|
|
playstation/main.cpp
|
2018-10-31 04:00:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND TestWTF_SOURCES
|
2019-05-01 23:47:28 +00:00
|
|
|
${test_main_SOURCES}
|
|
|
|
|
|
|
|
generic/UtilitiesGeneric.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND TestWebCore_SOURCES
|
|
|
|
${test_main_SOURCES}
|
2018-10-31 04:00:45 +00:00
|
|
|
)
|
2020-02-04 23:33:27 +00:00
|
|
|
|
|
|
|
# TestWebKit
|
|
|
|
if (ENABLE_WEBKIT)
|
|
|
|
target_sources(TestWebKitAPIInjectedBundle PRIVATE
|
|
|
|
generic/UtilitiesGeneric.cpp
|
|
|
|
|
|
|
|
playstation/PlatformUtilitiesPlayStation.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND TestWebKit_SOURCES
|
|
|
|
${test_main_SOURCES}
|
|
|
|
|
|
|
|
Tests/WebKit/curl/Certificates.cpp
|
|
|
|
|
|
|
|
generic/UtilitiesGeneric.cpp
|
|
|
|
|
|
|
|
playstation/PlatformUtilitiesPlayStation.cpp
|
|
|
|
playstation/PlatformWebViewPlayStation.cpp
|
|
|
|
)
|
2020-05-21 19:52:41 +00:00
|
|
|
|
|
|
|
# Exclude tests which don't finish.
|
|
|
|
list(REMOVE_ITEM TestWebKit_SOURCES
|
|
|
|
Tests/WebKit/ForceRepaint.cpp
|
|
|
|
Tests/WebKit/Geolocation.cpp
|
|
|
|
)
|
2021-03-09 05:40:29 +00:00
|
|
|
|
|
|
|
list(APPEND TestWebKit_PRIVATE_LIBRARIES
|
|
|
|
WebKitRequirements::ProcessLauncher
|
|
|
|
)
|
2020-02-04 23:33:27 +00:00
|
|
|
endif ()
|
2020-04-27 05:07:40 +00:00
|
|
|
|
|
|
|
# Set the debugger working directory for Visual Studio
|
|
|
|
if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
2020-05-23 00:54:03 +00:00
|
|
|
set_target_properties(TestWTF PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
|
|
|
if (ENABLE_WEBCORE)
|
|
|
|
set_target_properties(TestWebCore PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
|
|
|
endif ()
|
|
|
|
if (ENABLE_WEBCORE)
|
|
|
|
set_target_properties(TestWebKit PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
|
|
|
|
endif ()
|
2020-04-27 05:07:40 +00:00
|
|
|
endif ()
|
2020-05-21 19:52:41 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DTEST_WEBKIT_RESOURCES_DIR=\"${TOOLS_DIR}/TestWebKitAPI/Tests/WebKit\"
|
|
|
|
)
|