blob: d185380e8fac838f3dc66edda1234331451b45b8 [file] [log] [blame]
set(DumpRenderTree_DIR "${TOOLS_DIR}/DumpRenderTree")
set(DumpRenderTree_BINDINGS_DIR "${TOOLS_DIR}/DumpRenderTree/Bindings")
set(WebKitTestRunner_SHARED_DIR "${TOOLS_DIR}/TestRunnerShared/")
set(WebKitTestRunner_UISCRIPTCONTEXT_DIR "${TOOLS_DIR}/TestRunnerShared/UIScriptContext")
file(MAKE_DIRECTORY ${DumpRenderTree_DERIVED_SOURCES_DIR})
set(DumpRenderTree_SOURCES
${WebKitTestRunner_SHARED_DIR}/Bindings/JSWrapper.cpp
${WebKitTestRunner_UISCRIPTCONTEXT_DIR}/UIScriptContext.cpp
${WebKitTestRunner_UISCRIPTCONTEXT_DIR}/UIScriptController.cpp
AccessibilityController.cpp
AccessibilityTextMarker.cpp
AccessibilityUIElement.cpp
CyclicRedundancyCheck.cpp
DumpRenderTreeCommon.cpp
GCController.cpp
JavaScriptThreading.cpp
PixelDumpSupport.cpp
TestOptions.cpp
TestRunner.cpp
WorkQueue.cpp
)
set(DumpRenderTree_LIBRARIES
WebKit::WebCoreTestSupport
WebKit::JavaScriptCore
)
set(DumpRenderTree_PRIVATE_INCLUDE_DIRECTORIES
${CMAKE_BINARY_DIR}
${DumpRenderTree_DERIVED_SOURCES_DIR}
${DumpRenderTree_DIR}
${WebKitTestRunner_SHARED_DIR}/Bindings
${WebKitTestRunner_UISCRIPTCONTEXT_DIR}
)
list(APPEND DumpRenderTree_PRIVATE_INCLUDE_DIRECTORIES
${PAL_FRAMEWORK_HEADERS_DIR}
${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}
${WebKitLegacy_FRAMEWORK_HEADERS_DIR}
)
set(DumpRenderTree_IDL_FILES
"${WebKitTestRunner_UISCRIPTCONTEXT_DIR}/Bindings/UIScriptController.idl"
)
GENERATE_BINDINGS(DumpRenderTreeBindings
OUTPUT_SOURCE DumpRenderTree_SOURCES
INPUT_FILES ${DumpRenderTree_IDL_FILES}
BASE_DIR ${DumpRenderTree_BINDINGS_DIR}
IDL_INCLUDES Bindings
FEATURES ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}
DESTINATION ${DumpRenderTree_DERIVED_SOURCES_DIR}
GENERATOR DumpRenderTree)
set(DumpRenderTree_DEPENDENCIES DumpRenderTreeBindings)
WEBKIT_EXECUTABLE_DECLARE(DumpRenderTree)
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
WEBKIT_EXECUTABLE(DumpRenderTree)
if (ENABLE_NETSCAPE_PLUGIN_API)
add_subdirectory(TestNetscapePlugIn)
endif ()