[WK2] Add a WebKit2 API for Geolocation's highAccuracy
[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     Geolocation
85     GetInjectedBundleInitializationUserDataCallback
86     HitTestResultNodeHandle
87     InjectedBundleBasic
88     InjectedBundleFrameHitTest
89     InjectedBundleInitializationUserDataCallbackWins
90     LoadAlternateHTMLStringWithNonDirectoryURL
91     LoadCanceledNoServerRedirectCallback
92     LoadPageOnCrash
93     MouseMoveAfterCrash
94     NewFirstVisuallyNonEmptyLayout
95     NewFirstVisuallyNonEmptyLayoutFails
96     NewFirstVisuallyNonEmptyLayoutForImages
97     NewFirstVisuallyNonEmptyLayoutFrames
98     PageLoadBasic
99     PageLoadDidChangeLocationWithinPageForFrame
100     ParentFrame
101     PreventEmptyUserAgent
102     PrivateBrowsingPushStateNoHistoryCallback
103     ReloadPageAfterCrash
104     ResizeWindowAfterCrash
105     RestoreSessionStateContainingFormData
106     ShouldGoToBackForwardListItem
107     UserMessage
108     WillSendSubmitEvent
109     WKConnection
110     WKPageGetScaleFactorNotZero
111     WKPreferences
112     WKString
113     WKStringJSString
114     WKURL
115 )