commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 1 | set(WEBKIT_TESTRUNNER_DIR "${TOOLS_DIR}/WebKitTestRunner") |
| 2 | set(WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR "${TOOLS_DIR}/WebKitTestRunner/InjectedBundle") |
simon.fraser@apple.com | 56c25ea | 2016-08-24 02:03:43 +0000 | [diff] [blame] | 3 | set(WEBKIT_TESTRUNNER_SHARED_DIR "${TOOLS_DIR}/TestRunnerShared/") |
| 4 | set(WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR "${WEBKIT_TESTRUNNER_SHARED_DIR}/UIScriptContext") |
| 5 | set(WEBKIT_TESTRUNNER_BINDINGS_DIR "${WEBKIT_TESTRUNNER_SHARED_DIR}/Bindings") |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 6 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 7 | file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/InjectedBundle) |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 8 | file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/UIScriptContext) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 9 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 10 | set(WebKitTestRunner_SOURCES |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 11 | ${WEBKIT_TESTRUNNER_DIR}/CyclicRedundancyCheck.cpp |
benjamin@webkit.org | 04e047f | 2012-09-21 21:06:05 +0000 | [diff] [blame] | 12 | ${WEBKIT_TESTRUNNER_DIR}/GeolocationProviderMock.cpp |
commit-queue@webkit.org | 85676e8 | 2013-12-16 04:58:10 +0000 | [diff] [blame] | 13 | ${WEBKIT_TESTRUNNER_DIR}/Options.cpp |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 14 | ${WEBKIT_TESTRUNNER_DIR}/PixelDumpSupport.cpp |
| 15 | ${WEBKIT_TESTRUNNER_DIR}/TestController.cpp |
| 16 | ${WEBKIT_TESTRUNNER_DIR}/TestInvocation.cpp |
simon.fraser@apple.com | e289bbc | 2015-09-30 01:20:23 +0000 | [diff] [blame] | 17 | ${WEBKIT_TESTRUNNER_DIR}/TestOptions.cpp |
jonlee@apple.com | fc75482 | 2012-08-29 19:23:45 +0000 | [diff] [blame] | 18 | ${WEBKIT_TESTRUNNER_DIR}/WebNotificationProvider.cpp |
commit-queue@webkit.org | 76b6b77 | 2012-10-17 07:54:23 +0000 | [diff] [blame] | 19 | ${WEBKIT_TESTRUNNER_DIR}/WorkQueueManager.cpp |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 20 | ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptContext.cpp |
| 21 | ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptController.cpp |
simon.fraser@apple.com | 56c25ea | 2016-08-24 02:03:43 +0000 | [diff] [blame] | 22 | ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 23 | ) |
| 24 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 25 | set(WebKitTestRunner_LIBRARIES |
don.olmstead@sony.com | 82784e1 | 2019-06-03 17:04:35 +0000 | [diff] [blame] | 26 | WebKit::JavaScriptCore |
paroga@webkit.org | 8c21780 | 2013-05-18 11:36:50 +0000 | [diff] [blame] | 27 | WebCoreTestSupport |
mcatanzaro@igalia.com | d0d3e86 | 2017-09-19 00:29:31 +0000 | [diff] [blame] | 28 | WebKit |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 29 | ) |
| 30 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 31 | set(WebKitTestRunner_INCLUDE_DIRECTORIES |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 32 | ${WEBKIT_TESTRUNNER_DIR} |
| 33 | ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle |
| 34 | ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/Bindings |
commit-queue@webkit.org | 49ac292 | 2013-09-20 15:15:22 +0000 | [diff] [blame] | 35 | ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/atk |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 36 | ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR} |
simon.fraser@apple.com | 56c25ea | 2016-08-24 02:03:43 +0000 | [diff] [blame] | 37 | ${WEBKIT_TESTRUNNER_BINDINGS_DIR} |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 38 | ${WEBCORE_DIR}/testing/js |
mcatanzaro@igalia.com | d0d3e86 | 2017-09-19 00:29:31 +0000 | [diff] [blame] | 39 | ${WEBKIT_DIR}/Platform/IPC |
| 40 | ${WEBKIT_DIR}/Shared |
| 41 | ${WEBKIT_DIR}/Shared/API/c |
| 42 | ${WEBKIT_DIR}/Shared/Plugins |
| 43 | ${WEBKIT_DIR}/UIProcess |
| 44 | ${WEBKIT_DIR}/UIProcess/API/C/soup |
| 45 | ${WEBKIT_DIR}/WebProcess/InjectedBundle |
| 46 | ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/c |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 47 | ${DERIVED_SOURCES_DIR}/InjectedBundle |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 48 | ${DERIVED_SOURCES_DIR}/UIScriptContext |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 49 | ${CMAKE_SOURCE_DIR}/Source |
mcatanzaro@igalia.com | e8d3330 | 2015-06-21 13:15:54 +0000 | [diff] [blame] | 50 | ) |
| 51 | |
| 52 | set(WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES |
rakuco@webkit.org | 48d9a03 | 2012-08-13 23:30:23 +0000 | [diff] [blame] | 53 | ${LIBSOUP_INCLUDE_DIRS} |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 54 | ) |
| 55 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 56 | set(WebKitTestRunnerInjectedBundle_SOURCES |
Hironori.Fujii@sony.com | 316538b | 2018-11-27 01:54:59 +0000 | [diff] [blame] | 57 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityController.cpp |
| 58 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarker.cpp |
| 59 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarkerRange.cpp |
| 60 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityUIElement.cpp |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 61 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/EventSendingController.cpp |
| 62 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/GCController.cpp |
| 63 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundle.cpp |
| 64 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundleMain.cpp |
| 65 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundlePage.cpp |
rniwa@webkit.org | 24fe9df | 2012-08-16 01:22:26 +0000 | [diff] [blame] | 66 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TestRunner.cpp |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 67 | ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TextInputController.cpp |
| 68 | |
simon.fraser@apple.com | 56c25ea | 2016-08-24 02:03:43 +0000 | [diff] [blame] | 69 | ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 70 | ) |
| 71 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 72 | set(WebKitTestRunnerInjectedBundle_IDL_FILES |
Hironori.Fujii@sony.com | 316538b | 2018-11-27 01:54:59 +0000 | [diff] [blame] | 73 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityController.idl" |
| 74 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarker.idl" |
| 75 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarkerRange.idl" |
| 76 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityUIElement.idl" |
hugo.lima@openbossa.org | a4605a3 | 2012-11-13 14:54:06 +0000 | [diff] [blame] | 77 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/EventSendingController.idl" |
| 78 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/GCController.idl" |
| 79 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TestRunner.idl" |
| 80 | "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TextInputController.idl" |
| 81 | ) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 82 | |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 83 | set(WebKitTestRunner_IDL_FILES |
simon.fraser@apple.com | 56c25ea | 2016-08-24 02:03:43 +0000 | [diff] [blame] | 84 | "${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/Bindings/UIScriptController.idl" |
kbalazs@webkit.org | d50a83e | 2013-07-17 08:37:03 +0000 | [diff] [blame] | 85 | ) |
| 86 | |
commit-queue@webkit.org | ad732b3 | 2016-10-20 14:34:24 +0000 | [diff] [blame] | 87 | GENERATE_BINDINGS(WebKitTestRunnerInjectedBundleBindings |
commit-queue@webkit.org | 6bb132c | 2016-09-15 17:48:05 +0000 | [diff] [blame] | 88 | OUTPUT_SOURCE WebKitTestRunnerInjectedBundle_SOURCES |
| 89 | INPUT_FILES ${WebKitTestRunnerInjectedBundle_IDL_FILES} |
| 90 | BASE_DIR ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings |
| 91 | IDL_INCLUDES ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings |
| 92 | FEATURES ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} |
| 93 | DESTINATION ${DERIVED_SOURCES_DIR}/InjectedBundle |
| 94 | GENERATOR TestRunner) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 95 | |
commit-queue@webkit.org | ad732b3 | 2016-10-20 14:34:24 +0000 | [diff] [blame] | 96 | GENERATE_BINDINGS(WebKitTestRunnerBindings |
commit-queue@webkit.org | 6bb132c | 2016-09-15 17:48:05 +0000 | [diff] [blame] | 97 | OUTPUT_SOURCE WebKitTestRunner_SOURCES |
| 98 | INPUT_FILES ${WebKitTestRunner_IDL_FILES} |
| 99 | BASE_DIR ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings |
| 100 | IDL_INCLUDES ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings |
| 101 | FEATURES ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} |
| 102 | DESTINATION ${DERIVED_SOURCES_DIR}/UIScriptContext |
| 103 | GENERATOR TestRunner) |
simon.fraser@apple.com | 943a967 | 2015-09-21 19:10:48 +0000 | [diff] [blame] | 104 | |
gyuyoung.kim@samsung.com | c17c273 | 2015-03-28 04:18:13 +0000 | [diff] [blame] | 105 | WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 106 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 107 | include_directories(${WebKitTestRunner_INCLUDE_DIRECTORIES}) |
mcatanzaro@igalia.com | e8d3330 | 2015-06-21 13:15:54 +0000 | [diff] [blame] | 108 | include_directories(SYSTEM ${WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES}) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 109 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 110 | add_library(TestRunnerInjectedBundle SHARED ${WebKitTestRunnerInjectedBundle_SOURCES}) |
zandobersek@gmail.com | 991d672 | 2018-03-06 17:38:05 +0000 | [diff] [blame] | 111 | target_link_libraries(TestRunnerInjectedBundle ${WebKitTestRunnerInjectedBundle_LIBRARIES}) |
commit-queue@webkit.org | ad732b3 | 2016-10-20 14:34:24 +0000 | [diff] [blame] | 112 | add_dependencies(TestRunnerInjectedBundle WebKitTestRunnerInjectedBundleBindings) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 113 | |
commit-queue@webkit.org | d6fb2c5 | 2012-12-06 03:10:13 +0000 | [diff] [blame] | 114 | add_executable(WebKitTestRunner ${WebKitTestRunner_SOURCES}) |
| 115 | target_link_libraries(WebKitTestRunner ${WebKitTestRunner_LIBRARIES}) |
commit-queue@webkit.org | ad732b3 | 2016-10-20 14:34:24 +0000 | [diff] [blame] | 116 | add_dependencies(WebKitTestRunner WebKitTestRunnerBindings) |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 117 | |
mcatanzaro@igalia.com | 8b224d4 | 2017-08-08 15:03:48 +0000 | [diff] [blame] | 118 | if (COMPILER_IS_GCC_OR_CLANG) |
| 119 | WEBKIT_ADD_TARGET_CXX_FLAGS(TestRunnerInjectedBundle -Wno-unused-parameter) |
| 120 | WEBKIT_ADD_TARGET_CXX_FLAGS(WebKitTestRunner -Wno-unused-parameter) |
| 121 | endif () |
| 122 | |
commit-queue@webkit.org | e7f2cac | 2018-11-12 18:58:01 +0000 | [diff] [blame] | 123 | if (WIN32) |
| 124 | add_dependencies(WebKitTestRunnerLib WebKitTestRunnerBindings) |
| 125 | add_dependencies(WebKitTestRunner WebKitTestRunnerLib) |
| 126 | elseif (NOT APPLE) |
mcatanzaro@igalia.com | d0d3e86 | 2017-09-19 00:29:31 +0000 | [diff] [blame] | 127 | add_dependencies(WebKit ${ForwardingHeadersForWebKitTestRunner_NAME}) |
mcatanzaro@igalia.com | 8b224d4 | 2017-08-08 15:03:48 +0000 | [diff] [blame] | 128 | endif () |