2 generate-testwebkitapi-forwarding-headers
3 wk2_tests_sources = $(shell ls $(srcdir)/Tools/TestWebKitAPI/Tests/WebKit2/*.cpp)
4 generate-testwebkitapi-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(wk2_tests_sources)
5 $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/TestWebKitAPI $(GENSOURCES_WEBKIT2)/include gtk
6 $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/TestWebKitAPI $(GENSOURCES_WEBKIT2)/include soup
8 noinst_LTLIBRARIES += \
9 Libraries/libTestWebKitAPIMain.la
11 Libraries_libTestWebKitAPIMain_la_SOURCES = \
12 Tools/TestWebKitAPI/Test.h \
13 Tools/TestWebKitAPI/TestsController.cpp \
14 Tools/TestWebKitAPI/TestsController.h \
15 Tools/TestWebKitAPI/gtk/main.cpp
17 # Use -isystem gcc flag so that gcc considers gtest headers as system headers.
18 # We need this to avoid a lot of compile warnings due to -Wundef.
19 # See http://code.google.com/p/googletest/issues/detail?id=258
20 Libraries_libTestWebKitAPIMain_la_CPPFLAGS = \
21 -isystem $(srcdir)/Source/ThirdParty/gtest/include \
22 -I$(srcdir)/Tools/TestWebKitAPI \
23 -I$(srcdir)/Source/ThirdParty/gtest/include \
24 -I$(top_builddir)/DerivedSources/WebKit2/include \
26 $(javascriptcore_cppflags) \
30 Programs/TestWebKitAPI/TestWTF
32 Programs_TestWebKitAPI_TestWTF_CPPFLAGS = \
33 $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \
37 Programs_TestWebKitAPI_TestWTF_LDADD = \
38 Libraries/libTestWebKitAPIMain.la \
39 Libraries/libgtest.la \
44 Programs_TestWebKitAPI_TestWTF_LDFLAGS = \
48 Programs_TestWebKitAPI_TestWTF_SOURCES = \
49 Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp \
50 Tools/TestWebKitAPI/Tests/WTF/CString.cpp \
51 Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp \
52 Tools/TestWebKitAPI/Tests/WTF/Functional.cpp \
53 Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp \
54 Tools/TestWebKitAPI/Tests/WTF/IntegerToStringConversion.cpp \
55 Tools/TestWebKitAPI/Tests/WTF/ListHashSet.cpp \
56 Tools/TestWebKitAPI/Tests/WTF/MathExtras.cpp \
57 Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp \
58 Tools/TestWebKitAPI/Tests/WTF/RedBlackTree.cpp \
59 Tools/TestWebKitAPI/Tests/WTF/SaturatedArithmeticOperations.cpp \
60 Tools/TestWebKitAPI/Tests/WTF/StringBuilder.cpp \
61 Tools/TestWebKitAPI/Tests/WTF/StringHasher.cpp \
62 Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp \
63 Tools/TestWebKitAPI/Tests/WTF/StringOperators.cpp \
64 Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp \
65 Tools/TestWebKitAPI/Tests/WTF/VectorBasic.cpp \
66 Tools/TestWebKitAPI/Tests/WTF/Vector.cpp \
67 Tools/TestWebKitAPI/Tests/WTF/VectorReverse.cpp \
68 Tools/TestWebKitAPI/WTFStringUtilities.h
71 Programs/TestWebKitAPI/TestGtk
73 Programs_TestWebKitAPI_TestGtk_CPPFLAGS = \
74 $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \
75 $(platformgtk_cppflags) \
77 $(webcoregtk_cppflags) \
83 Programs_TestWebKitAPI_TestGtk_LDADD = \
84 Libraries/libTestWebKitAPIMain.la \
85 Libraries/libgtest.la \
86 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
95 Programs_TestWebKitAPI_TestGtk_LDFLAGS = \
96 $(Programs_TestWebKitAPI_TestWTF_LDFLAGS)
98 Programs_TestWebKitAPI_TestGtk_SOURCES = \
99 Source/WebCore/platform/graphics/IntRect.cpp \
100 Source/WebCore/platform/graphics/cairo/IntRectCairo.cpp \
101 Source/WebCore/platform/graphics/gtk/IntRectGtk.cpp \
102 Source/WebCore/platform/gtk/GtkInputMethodFilter.cpp \
103 Tools/TestWebKitAPI/config.h \
104 Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp
108 Programs/TestWebKitAPI/TestWebKit2
110 Programs_TestWebKitAPI_TestWebKit2_CPPFLAGS = \
111 $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \
112 -I$(top_builddir)/DerivedSources/WebKit2/include \
118 Programs_TestWebKitAPI_TestWebKit2_LDADD = \
119 Libraries/libTestWebKitAPIMain.la \
120 Libraries/libgtest.la \
121 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
122 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
128 Programs_TestWebKitAPI_TestWebKit2_LDFLAGS = \
129 $(Programs_TestWebKitAPI_TestWTF_LDFLAGS)
131 Programs_TestWebKitAPI_TestWebKit2_SOURCES = \
132 Tools/TestWebKitAPI/config.h \
133 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp \
134 Tools/TestWebKitAPI/gtk/PlatformWebViewGtk.cpp \
135 Tools/TestWebKitAPI/JavaScriptTest.cpp \
136 Tools/TestWebKitAPI/JavaScriptTest.h \
137 Tools/TestWebKitAPI/PlatformUtilities.cpp \
138 Tools/TestWebKitAPI/PlatformUtilities.h \
139 Tools/TestWebKitAPI/PlatformWebView.h \
140 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp \
141 Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp \
142 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp \
143 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp \
144 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp \
145 Tools/TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp \
146 Tools/TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp \
147 Tools/TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp \
148 Tools/TestWebKitAPI/Tests/WebKit2/Find.cpp \
149 Tools/TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp \
150 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp \
151 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp \
152 Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp \
153 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp \
154 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp \
155 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp \
156 Tools/TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp \
157 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp \
158 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp \
159 Tools/TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp \
160 Tools/TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp \
161 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp \
162 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp \
163 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp \
164 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp \
165 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp \
166 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp \
167 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp \
168 Tools/TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp \
169 Tools/TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp \
170 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp \
171 Tools/TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp \
172 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp \
173 Tools/TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp \
174 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp \
175 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp \
176 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp \
177 Tools/TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp \
178 Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp \
179 Tools/TestWebKitAPI/Tests/WebKit2/WKString.cpp \
180 Tools/TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp
182 noinst_LTLIBRARIES += \
183 Libraries/libTestWebKitAPIInjectedBundle.la
185 Libraries_libTestWebKitAPIInjectedBundle_la_SOURCES = \
186 Tools/TestWebKitAPI/InjectedBundleController.cpp \
187 Tools/TestWebKitAPI/InjectedBundleController.h \
188 Tools/TestWebKitAPI/InjectedBundleMain.cpp \
189 Tools/TestWebKitAPI/InjectedBundleTest.h \
190 Tools/TestWebKitAPI/PlatformUtilities.cpp \
191 Tools/TestWebKitAPI/PlatformUtilities.h \
192 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp \
193 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp \
194 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp \
195 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp \
196 Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp \
197 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp \
198 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp \
199 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp \
200 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp \
201 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp \
202 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp \
203 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp \
204 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp \
205 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp \
206 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp \
207 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp \
208 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp \
209 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp \
210 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp \
211 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp \
212 Tools/TestWebKitAPI/gtk/InjectedBundleControllerGtk.cpp \
213 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp
215 Libraries_libTestWebKitAPIInjectedBundle_la_LDFLAGS = \
216 -rpath ${shell pwd}/$(top_builddir)/Libraries/.libs \
221 Libraries_libTestWebKitAPIInjectedBundle_la_CPPFLAGS = \
222 $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \
223 -I$(top_builddir)/DerivedSources/InjectedBundle \
226 Libraries_libTestWebKitAPIInjectedBundle_la_CXXFLAGS = \
229 Libraries_libTestWebKitAPIInjectedBundle_la_CFLAGS = \
231 endif # ENABLE_WEBKIT2
234 Tools/TestWebKitAPI/Tests/WebKit2/18-characters.html \
235 Tools/TestWebKitAPI/Tests/WebKit2/file-with-anchor.html \
236 Tools/TestWebKitAPI/Tests/WebKit2/find.html \
237 Tools/TestWebKitAPI/Tests/WebKit2/icon.png \
238 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html \
239 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-images.html \
240 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-text.html \
241 Tools/TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html \
242 Tools/TestWebKitAPI/Tests/WebKit2/push-state.html \
243 Tools/TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html \
244 Tools/TestWebKitAPI/Tests/WebKit2/simple-form.html \
245 Tools/TestWebKitAPI/Tests/WebKit2/simple.html \
246 Tools/TestWebKitAPI/Tests/WebKit2/simple-iframe.html \
247 Tools/TestWebKitAPI/Tests/WebKit2/simple-tall.html \
248 Tools/TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html