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