Remove setDefersLoading infrastructure from WebKit2
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformWin.cmake
1 set(WebKitTestRunnerLib_SOURCES
2     ${WebKitTestRunner_SOURCES}
3     ${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
4     win/EventSenderProxyWin.cpp
5     win/PlatformWebViewWin.cpp
6     win/TestControllerWin.cpp
7     win/main.cpp
8 )
9
10 set(WebKitTestRunner_SOURCES
11     ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp
12 )
13
14 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
15     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/ActivateFontsWin.cpp
16     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/InjectedBundleWin.cpp
17     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/TestRunnerWin.cpp
18     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/AccessibilityControllerWin.cpp
19     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/AccessibilityUIElementWin.cpp
20 )
21
22
23 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
24     cairo
25     win
26     ${CAIRO_INCLUDE_DIRS}
27     ${FORWARDING_HEADERS_DIR}
28     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win
29 )
30
31
32 set(WebKitTestRunnerLib_LIBRARIES
33     ${WebKitTestRunner_LIBRARIES}
34     Comsuppw
35     Oleacc
36 )
37
38 list(APPEND WebKitTestRunner_LIBRARIES
39     WTF
40     WebKit
41 )
42
43 set(WebKitTestRunnerInjectedBundle_LIBRARIES
44     WebCoreTestSupport
45     WebKit
46 )
47
48
49 list(REMOVE_ITEM
50     WebKitTestRunnerLib_SOURCES
51     ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp
52 )
53 list(REMOVE_ITEM
54     WebKitTestRunnerInjectedBundle_SOURCES
55     ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp
56 )
57
58 WEBKIT_ADD_PRECOMPILED_HEADER(WebKitTestRunnerPrefix.h
59     ${WEBKIT_TESTRUNNER_DIR}/win/WebKitTestRunnerPrefix.cpp
60     WebKitTestRunnerLib_SOURCES
61 )
62 WEBKIT_ADD_PRECOMPILED_HEADER(TestRunnerInjectedBundlePrefix.h
63     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/win/TestRunnerInjectedBundlePrefix.cpp
64     WebKitTestRunnerInjectedBundle_SOURCES
65 )
66
67 list(APPEND
68     WebKitTestRunnerLib_SOURCES
69     ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp
70 )
71 list(APPEND
72     WebKitTestRunnerInjectedBundle_SOURCES
73     ${WEBKIT_TESTRUNNER_BINDINGS_DIR}/JSWrapper.cpp
74 )
75
76
77 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MSVC_RUNTIME_LINKER_FLAGS}")
78 add_library(WebKitTestRunnerLib SHARED ${WebKitTestRunnerLib_SOURCES})
79 target_link_libraries(WebKitTestRunnerLib ${WebKitTestRunnerLib_LIBRARIES})
80
81 add_definitions(
82     -DWIN_CAIRO
83     -DUSE_CONSOLE_ENTRY_POINT
84     -D_UNICODE
85 )