rename KURL to URL
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformGTK.cmake
1 # This is necessary because it is possible to build TestWebKitAPI with WebKit2
2 # disabled and this triggers the inclusion of the WebKit2 headers.
3 add_definitions(-DBUILDING_WEBKIT2__)
4
5 add_custom_target(forwarding-headersGTKForTestWebKitAPI
6     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include gtk
7     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include gtk
8 )
9 set(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersGTKForTestWebKitAPI)
10
11 add_custom_target(forwarding-headersSoupForTestWebKitAPI
12     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
13     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
14 )
15 set(ForwardingNetworkHeadersForTestWebKitAPI_NAME forwarding-headersSoupForTestWebKitAPI)
16
17 include_directories(
18     ${WEBKIT2_DIR}/UIProcess/API/C/soup
19     ${WEBKIT2_DIR}/UIProcess/API/C/gtk
20     ${WEBKIT2_DIR}/UIProcess/API/gtk
21     ${GDK3_INCLUDE_DIRS}
22     ${GLIB_INCLUDE_DIRS}
23     ${GTK3_INCLUDE_DIRS}
24     ${LIBSOUP_INCLUDE_DIRS}
25 )
26 set(test_main_SOURCES
27     ${TESTWEBKITAPI_DIR}/gtk/main.cpp
28 )
29
30 set(bundle_harness_SOURCES
31     ${TESTWEBKITAPI_DIR}/gtk/InjectedBundleControllerGtk.cpp
32     ${TESTWEBKITAPI_DIR}/gtk/PlatformUtilitiesGtk.cpp
33 )
34
35 set(webkit2_api_harness_SOURCES
36     ${TESTWEBKITAPI_DIR}/gtk/PlatformUtilitiesGtk.cpp
37     ${TESTWEBKITAPI_DIR}/gtk/PlatformWebViewGtk.cpp
38     ${TESTWEBKITAPI_DIR}/gtk/PlatformWebViewGtk.cpp
39     ../../Source/WebCore/platform/gtk/GOwnPtrGtk.cpp
40 )
41
42 list(APPEND test_wtf_LIBRARIES
43     ${GDK3_LIBRARIES}
44     ${GTK3_LIBRARIES}
45 )
46
47 list(APPEND test_webkit2_api_LIBRARIES
48     ${GDK3_LIBRARIES}
49     ${GTK3_LIBRARIES}
50 )
51
52 list(APPEND test_webcore_LIBRARIES
53     ${GDK3_LIBRARIES}
54     ${GTK3_LIBRARIES}
55 )
56
57 # The list below works like a test expectation. Tests in the
58 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
59 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
60 # are compiled and suffixed with fail and skipped from the test runner.
61 #
62 # Make sure that the tests are passing on both Debug and
63 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
64
65 set(test_webcore_BINARIES
66     LayoutUnit
67     URL
68 )
69
70 set(test_webkit2_api_BINARIES
71     AboutBlankLoad
72     CanHandleRequest
73     CookieManager
74     DocumentStartUserScriptAlertCrash
75     DOMWindowExtensionBasic
76     DOMWindowExtensionNoCache
77     DownloadDecideDestinationCrash
78     EvaluateJavaScript
79     FailedLoad
80     Find
81     ForceRepaint
82     FrameMIMETypeHTML
83     FrameMIMETypePNG
84     GetInjectedBundleInitializationUserDataCallback
85     HitTestResultNodeHandle
86     InjectedBundleBasic
87     InjectedBundleFrameHitTest
88     InjectedBundleInitializationUserDataCallbackWins
89     LoadAlternateHTMLStringWithNonDirectoryURL
90     LoadCanceledNoServerRedirectCallback
91     LoadPageOnCrash
92     MouseMoveAfterCrash
93     NewFirstVisuallyNonEmptyLayout
94     NewFirstVisuallyNonEmptyLayoutFails
95     NewFirstVisuallyNonEmptyLayoutForImages
96     NewFirstVisuallyNonEmptyLayoutFrames
97     PageLoadBasic
98     PageLoadDidChangeLocationWithinPageForFrame
99     ParentFrame
100     PreventEmptyUserAgent
101     PrivateBrowsingPushStateNoHistoryCallback
102     ReloadPageAfterCrash
103     ResizeWindowAfterCrash
104     RestoreSessionStateContainingFormData
105     ShouldGoToBackForwardListItem
106     UserMessage
107     WillSendSubmitEvent
108     WKConnection
109     WKPageGetScaleFactorNotZero
110     WKPreferences
111     WKString
112     WKStringJSString
113     WKURL
114 )