Unreviewed, EFL build fix when SHARED_CORE is on.
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformEfl.cmake
1 add_custom_target(forwarding-headersEflForTestWebKitAPI
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
3     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include CoordinatedGraphics
4     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
5     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
6     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
7 )
8 set(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersEflForTestWebKitAPI)
9
10 include_directories(
11     ${DERIVED_SOURCES_WEBKIT2_DIR}/include
12     ${WEBKIT2_DIR}/UIProcess/API/C/CoordinatedGraphics
13     ${WEBKIT2_DIR}/UIProcess/API/C/soup
14     ${WEBKIT2_DIR}/UIProcess/API/C/efl
15     ${WEBKIT2_DIR}/UIProcess/API/efl
16     ${ECORE_EVAS_INCLUDE_DIRS}
17     ${ECORE_INCLUDE_DIRS}
18     ${EINA_INCLUDE_DIRS}
19     ${EO_INCLUDE_DIRS}
20     ${EVAS_INCLUDE_DIRS}
21     ${GLIB_INCLUDE_DIRS}
22     ${LIBSOUP_INCLUDE_DIRS}
23 )
24
25 set(test_main_SOURCES
26     ${TESTWEBKITAPI_DIR}/efl/main.cpp
27 )
28
29 set(bundle_harness_SOURCES
30     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
31     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
32 )
33
34 set(webkit2_api_harness_SOURCES
35     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
36     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
37 )
38
39 list(APPEND TestJavaScriptCore_LIBRARIES
40     ${ECORE_LIBRARIES}
41     ${EINA_LIBRARIES}
42 )
43
44 # The list below works like a test expectation. Tests in the
45 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
46 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
47 # are compiled and suffixed with fail and skipped from the test runner.
48 #
49 # Make sure that the tests are passing on both Debug and
50 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
51
52 set(test_webcore_BINARIES
53     LayoutUnit
54     URL
55 )
56
57 # In here we list the bundles that are used by our specific WK2 API Tests
58 list(APPEND bundle_harness_SOURCES
59     ${TESTWEBKITAPI_DIR}/Tests/WebKit2/efl/WKViewClientWebProcessCallbacks_Bundle.cpp
60 )
61
62 set(test_webkit2_api_BINARIES
63     AboutBlankLoad
64     CloseThenTerminate
65     CookieManager
66     DidAssociateFormControls
67     DOMWindowExtensionNoCache
68     DocumentStartUserScriptAlertCrash
69     EvaluateJavaScript
70     FailedLoad
71     Find
72     ForceRepaint
73     FrameMIMETypeHTML
74     FrameMIMETypePNG
75     GetInjectedBundleInitializationUserDataCallback
76     HitTestResultNodeHandle
77     InjectedBundleBasic
78     InjectedBundleFrameHitTest
79     InjectedBundleInitializationUserDataCallbackWins
80     LoadAlternateHTMLStringWithNonDirectoryURL
81     LoadCanceledNoServerRedirectCallback
82     NewFirstVisuallyNonEmptyLayout
83     NewFirstVisuallyNonEmptyLayoutFails
84     NewFirstVisuallyNonEmptyLayoutForImages
85     PageLoadBasic
86     PageLoadDidChangeLocationWithinPageForFrame
87     ParentFrame
88     PreventEmptyUserAgent
89     PrivateBrowsingPushStateNoHistoryCallback
90     ResponsivenessTimerDoesntFireEarly
91     ShouldGoToBackForwardListItem
92     TerminateTwice
93     WKPreferences
94     WKString
95     WKStringJSString
96     WKURL
97     WillSendSubmitEvent
98     CoordinatedGraphics/WKViewRestoreZoomAndScrollBackForward
99     CoordinatedGraphics/WKViewUserViewportToContents
100     efl/WKViewClientWebProcessCallbacks
101 )
102
103 set(test_webkit2_api_fail_BINARIES
104     CanHandleRequest
105     DOMWindowExtensionBasic
106     DownloadDecideDestinationCrash
107     Geolocation
108     LoadPageOnCrash
109     MouseMoveAfterCrash
110     NewFirstVisuallyNonEmptyLayoutFrames
111     ReloadPageAfterCrash
112     ResizeReversePaginatedWebView
113     ResizeWindowAfterCrash
114     RestoreSessionStateContainingFormData
115     ScrollPinningBehaviors
116     UserMessage
117     WKPageGetScaleFactorNotZero
118     WillLoad
119 )
120
121 # Seccomp filters is an internal API and its symbols
122 # are not (and should not) be exposed by default. We
123 # can only test it when building shared core.
124 if (ENABLE_SECCOMP_FILTERS AND SHARED_CORE)
125     list(APPEND test_webkit2_api_fail_BINARIES
126         SeccompFilters
127     )
128 endif ()
129
130 # Tests disabled because of missing features on the test harness:
131 #
132 #   SpacebarScrolling
133 #   CoordinatedGraphics/WKViewIsActiveSetIsActive