CMakeLists.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. set(WEBKIT_TESTRUNNER_DIR "${TOOLS_DIR}/WebKitTestRunner")
  2. set(WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR "${TOOLS_DIR}/WebKitTestRunner/InjectedBundle")
  3. file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/InjectedBundle)
  4. set(WebKitTestRunner_SOURCES
  5. ${WEBKIT_TESTRUNNER_DIR}/CyclicRedundancyCheck.cpp
  6. ${WEBKIT_TESTRUNNER_DIR}/GeolocationProviderMock.cpp
  7. ${WEBKIT_TESTRUNNER_DIR}/PixelDumpSupport.cpp
  8. ${WEBKIT_TESTRUNNER_DIR}/TestController.cpp
  9. ${WEBKIT_TESTRUNNER_DIR}/TestInvocation.cpp
  10. ${WEBKIT_TESTRUNNER_DIR}/WebNotificationProvider.cpp
  11. ${WEBKIT_TESTRUNNER_DIR}/WorkQueueManager.cpp
  12. )
  13. set(WebKitTestRunner_LIBRARIES
  14. JavaScriptCore
  15. WebCore
  16. WebCoreTestSupport
  17. WebKit2
  18. )
  19. set(WebKitTestRunner_INCLUDE_DIRECTORIES
  20. ${WEBKIT_TESTRUNNER_DIR}
  21. ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle
  22. ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/Bindings
  23. ${JAVASCRIPTCORE_DIR}
  24. ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
  25. ${WEBCORE_DIR}/editing
  26. ${WEBCORE_DIR}/platform
  27. ${WEBCORE_DIR}/platform/graphics
  28. ${WEBCORE_DIR}/platform/graphics/harfbuzz
  29. ${WEBCORE_DIR}/platform/graphics/harfbuzz/ng
  30. ${WEBCORE_DIR}/platform/network
  31. ${WEBCORE_DIR}/platform/text
  32. ${WEBCORE_DIR}/testing/js
  33. ${WEBKIT2_DIR}/Shared
  34. ${WEBKIT2_DIR}/Shared/API/c
  35. ${WEBKIT2_DIR}/Shared/Plugins
  36. ${WEBKIT2_DIR}/UIProcess
  37. ${WEBKIT2_DIR}/UIProcess/API/C/efl
  38. ${WEBKIT2_DIR}/UIProcess/API/C/soup
  39. ${WEBKIT2_DIR}/WebProcess/InjectedBundle
  40. ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c
  41. ${WTF_DIR}
  42. ${DERIVED_SOURCES_WEBCORE_DIR}
  43. ${DERIVED_SOURCES_WEBCORE_DIR}/include
  44. ${DERIVED_SOURCES_WEBKIT2_DIR}/include
  45. ${DERIVED_SOURCES_DIR}/InjectedBundle
  46. ${CMAKE_BINARY_DIR}
  47. ${CMAKE_SOURCE_DIR}/Source
  48. ${LIBSOUP_INCLUDE_DIRS}
  49. )
  50. set(WebKitTestRunnerInjectedBundle_SOURCES
  51. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityController.cpp
  52. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarker.cpp
  53. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarkerRange.cpp
  54. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityUIElement.cpp
  55. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/EventSendingController.cpp
  56. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/GCController.cpp
  57. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundle.cpp
  58. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundleMain.cpp
  59. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundlePage.cpp
  60. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TestRunner.cpp
  61. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TextInputController.cpp
  62. ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/JSWrapper.cpp
  63. )
  64. set(WebKitTestRunnerInjectedBundle_IDL_FILES
  65. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityController.idl"
  66. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarker.idl"
  67. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarkerRange.idl"
  68. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityUIElement.idl"
  69. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/EventSendingController.idl"
  70. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/GCController.idl"
  71. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TestRunner.idl"
  72. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TextInputController.idl"
  73. )
  74. GENERATE_BINDINGS(WebKitTestRunnerInjectedBundle_SOURCES
  75. "${WebKitTestRunnerInjectedBundle_IDL_FILES}"
  76. "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings"
  77. "--include=${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings"
  78. "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
  79. ${DERIVED_SOURCES_DIR}/InjectedBundle JS TestRunner
  80. ${WEBCORE_DIR}/bindings/scripts/IDLAttributes.txt)
  81. INCLUDE_IF_EXISTS(${WEBKIT_TESTRUNNER_DIR}/Platform${PORT}.cmake)
  82. include_directories(${WebKitTestRunner_INCLUDE_DIRECTORIES})
  83. add_library(TestRunnerInjectedBundle SHARED ${WebKitTestRunnerInjectedBundle_SOURCES})
  84. target_link_libraries(TestRunnerInjectedBundle ${WebKitTestRunner_LIBRARIES})
  85. add_executable(WebKitTestRunner ${WebKitTestRunner_SOURCES})
  86. target_link_libraries(WebKitTestRunner ${WebKitTestRunner_LIBRARIES})
  87. add_dependencies(WebKit2 ${ForwardingHeadersForWebKitTestRunner_NAME})
  88. add_dependencies(WebKit2 ${ForwardingNetworkHeadersForWebKitTestRunner_NAME})