blob: 918fe4d22ffe6fddbb29d24c4ac5a3a8eaa2fd2d [file] [log] [blame]
set(WEBKIT_TESTRUNNER_SHARED_DIR "${TOOLS_DIR}/TestRunnerShared/")
set(WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR "${TOOLS_DIR}/TestRunnerShared/UIScriptContext")
set(DUMP_RENDER_TREE_BINDINGS_DIR "${TOOLS_DIR}/DumpRenderTree/Bindings")
file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/DumpRenderTree)
set(DumpRenderTree_SOURCES
AccessibilityController.cpp
AccessibilityTextMarker.cpp
AccessibilityUIElement.cpp
CyclicRedundancyCheck.cpp
DumpRenderTreeCommon.cpp
GCController.cpp
JavaScriptThreading.cpp
PixelDumpSupport.cpp
TestRunner.cpp
WorkQueue.cpp
${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptContext.cpp
${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptController.cpp
${WEBKIT_TESTRUNNER_SHARED_DIR}/Bindings/JSWrapper.cpp
)
set(DumpRenderTree_LIBRARIES
JavaScriptCore
WebCoreTestSupport
)
set(DumpRenderTree_INCLUDE_DIRECTORIES
${WEBCORE_DIR}
${WEBCORE_DIR}/bindings
${WEBCORE_DIR}/bridge
${WEBCORE_DIR}/bridge/jsc
${WEBCORE_DIR}/css
${WEBCORE_DIR}/dom
${WEBCORE_DIR}/editing
${WEBCORE_DIR}/history
${WEBCORE_DIR}/html
${WEBCORE_DIR}/inspector
${WEBCORE_DIR}/loader
${WEBCORE_DIR}/loader/cache
${WEBCORE_DIR}/loader/icon
${WEBCORE_DIR}/page
${WEBCORE_DIR}/page/animation
${WEBCORE_DIR}/platform
${WEBCORE_DIR}/platform/animation
${WEBCORE_DIR}/platform/graphics
${WEBCORE_DIR}/platform/graphics/transforms
${WEBCORE_DIR}/platform/network
${WEBCORE_DIR}/platform/text
${WEBCORE_DIR}/plugins
${WEBCORE_DIR}/rendering
${WEBCORE_DIR}/rendering/shapes
${WEBCORE_DIR}/rendering/style
${JAVASCRIPTCORE_DIR}
${JAVASCRIPTCORE_DIR}/API
${JAVASCRIPTCORE_DIR}/assembler
${JAVASCRIPTCORE_DIR}/bytecode
${JAVASCRIPTCORE_DIR}/dfg
${JAVASCRIPTCORE_DIR}/disassembler
${JAVASCRIPTCORE_DIR}/heap
${JAVASCRIPTCORE_DIR}/interpreter
${JAVASCRIPTCORE_DIR}/jit
${JAVASCRIPTCORE_DIR}/llint
${JAVASCRIPTCORE_DIR}/parser
${JAVASCRIPTCORE_DIR}/profiler
${JAVASCRIPTCORE_DIR}/runtime
${JAVASCRIPTCORE_DIR}/ForwardingHeaders
${DERIVED_SOURCES_DIR}/ForwardingHeaders
${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
${DERIVED_SOURCES_DIR}/DumpRenderTree
${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}
${WEBKIT_TESTRUNNER_SHARED_DIR}/Bindings
${TOOLS_DIR}/DumpRenderTree
${WTF_DIR}
${CMAKE_SOURCE_DIR}/Source
${CMAKE_BINARY_DIR}
${DERIVED_SOURCES_DIR}
${DERIVED_SOURCES_WEBCORE_DIR}
${WEBCORE_DIR}/bindings/js
${WEBCORE_DIR}/testing/js
)
set(TestNetscapePlugin_SOURCES
TestNetscapePlugin/PluginObject.cpp
TestNetscapePlugin/PluginTest.cpp
TestNetscapePlugin/TestObject.cpp
TestNetscapePlugin/main.cpp
TestNetscapePlugin/Tests/DocumentOpenInDestroyStream.cpp
TestNetscapePlugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp
TestNetscapePlugin/Tests/FormValue.cpp
TestNetscapePlugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp
TestNetscapePlugin/Tests/GetURLWithJavaScriptURL.cpp
TestNetscapePlugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp
TestNetscapePlugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp
TestNetscapePlugin/Tests/LogNPPSetWindow.cpp
TestNetscapePlugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp
TestNetscapePlugin/Tests/NPPNewFails.cpp
TestNetscapePlugin/Tests/NPPSetWindowCalledDuringDestruction.cpp
TestNetscapePlugin/Tests/NPRuntimeCallsWithNullNPP.cpp
TestNetscapePlugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp
TestNetscapePlugin/Tests/NPRuntimeRemoveProperty.cpp
TestNetscapePlugin/Tests/NullNPPGetValuePointer.cpp
TestNetscapePlugin/Tests/PassDifferentNPPStruct.cpp
TestNetscapePlugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp
TestNetscapePlugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp
TestNetscapePlugin/Tests/PrivateBrowsing.cpp
TestNetscapePlugin/Tests/ToStringAndValueOfObject.cpp
TestNetscapePlugin/Tests/URLRedirect.cpp
)
set(TestNetscapePlugin_LIBRARIES
JavaScriptCore
WTF
WebCoreTestSupport
)
set(DumpRenderTree_IDL_FILES
"${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/Bindings/UIScriptController.idl"
)
GENERATE_BINDINGS(
OUTPUT_SOURCE DumpRenderTree_SOURCES
INPUT_FILES ${DumpRenderTree_IDL_FILES}
BASE_DIR ${DUMP_RENDER_TREE_BINDINGS_DIR}
IDL_INCLUDES Bindings
FEATURES ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}
DESTINATION ${DERIVED_SOURCES_DIR}/DumpRenderTree
GENERATOR DumpRenderTree)
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
add_executable(DumpRenderTree ${DumpRenderTree_SOURCES})
target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES})
if (ENABLE_NETSCAPE_PLUGIN_API)
add_library(TestNetscapePlugin SHARED ${TestNetscapePlugin_SOURCES})
target_link_libraries(TestNetscapePlugin ${TestNetscapePlugin_LIBRARIES})
endif ()
if (WIN32)
add_dependencies(DumpRenderTree DumpRenderTreeLib)
endif ()