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) \
76 $(webcoregtk_cppflags) \
82 Programs_TestWebKitAPI_TestGtk_LDADD = \
83 Libraries/libTestWebKitAPIMain.la \
84 Libraries/libgtest.la \
85 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
93 Programs_TestWebKitAPI_TestGtk_LDFLAGS = \
94 $(Programs_TestWebKitAPI_TestWTF_LDFLAGS)
96 Programs_TestWebKitAPI_TestGtk_SOURCES = \
97 Source/WebCore/platform/graphics/IntRect.cpp \
98 Source/WebCore/platform/graphics/cairo/IntRectCairo.cpp \
99 Source/WebCore/platform/graphics/gtk/IntRectGtk.cpp \
100 Source/WebCore/platform/gtk/GtkInputMethodFilter.cpp \
101 Tools/TestWebKitAPI/config.h \
102 Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp
106 Programs/TestWebKitAPI/TestWebKit2
108 Programs_TestWebKitAPI_TestWebKit2_CPPFLAGS = \
109 $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \
110 -I$(top_builddir)/DerivedSources/WebKit2/include \
116 Programs_TestWebKitAPI_TestWebKit2_LDADD = \
117 Libraries/libTestWebKitAPIMain.la \
118 Libraries/libgtest.la \
119 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
120 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
126 Programs_TestWebKitAPI_TestWebKit2_LDFLAGS = \
127 $(Programs_TestWebKitAPI_TestWTF_LDFLAGS)
129 Programs_TestWebKitAPI_TestWebKit2_SOURCES = \
130 Tools/TestWebKitAPI/config.h \
131 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp \
132 Tools/TestWebKitAPI/gtk/PlatformWebViewGtk.cpp \
133 Tools/TestWebKitAPI/JavaScriptTest.cpp \
134 Tools/TestWebKitAPI/JavaScriptTest.h \
135 Tools/TestWebKitAPI/PlatformUtilities.cpp \
136 Tools/TestWebKitAPI/PlatformUtilities.h \
137 Tools/TestWebKitAPI/PlatformWebView.h \
138 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp \
139 Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp \
140 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp \
141 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp \
142 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp \
143 Tools/TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp \
144 Tools/TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp \
145 Tools/TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp \
146 Tools/TestWebKitAPI/Tests/WebKit2/Find.cpp \
147 Tools/TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp \
148 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp \
149 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp \
150 Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp \
151 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp \
152 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp \
153 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp \
154 Tools/TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp \
155 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp \
156 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp \
157 Tools/TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp \
158 Tools/TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp \
159 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp \
160 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp \
161 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp \
162 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp \
163 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp \
164 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp \
165 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp \
166 Tools/TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp \
167 Tools/TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp \
168 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp \
169 Tools/TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp \
170 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp \
171 Tools/TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp \
172 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp \
173 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp \
174 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp \
175 Tools/TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp \
176 Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp \
177 Tools/TestWebKitAPI/Tests/WebKit2/WKString.cpp \
178 Tools/TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp
180 noinst_LTLIBRARIES += \
181 Libraries/libTestWebKitAPIInjectedBundle.la
183 Libraries_libTestWebKitAPIInjectedBundle_la_SOURCES = \
184 Tools/TestWebKitAPI/InjectedBundleController.cpp \
185 Tools/TestWebKitAPI/InjectedBundleController.h \
186 Tools/TestWebKitAPI/InjectedBundleMain.cpp \
187 Tools/TestWebKitAPI/InjectedBundleTest.h \
188 Tools/TestWebKitAPI/PlatformUtilities.cpp \
189 Tools/TestWebKitAPI/PlatformUtilities.h \
190 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp \
191 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp \
192 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp \
193 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp \
194 Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp \
195 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp \
196 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp \
197 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp \
198 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp \
199 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp \
200 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp \
201 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp \
202 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp \
203 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp \
204 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp \
205 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp \
206 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp \
207 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp \
208 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp \
209 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp \
210 Tools/TestWebKitAPI/gtk/InjectedBundleControllerGtk.cpp \
211 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp
213 Libraries_libTestWebKitAPIInjectedBundle_la_LDFLAGS = \
214 -rpath ${shell pwd}/$(top_builddir)/Libraries/.libs \
219 Libraries_libTestWebKitAPIInjectedBundle_la_CPPFLAGS = \
220 $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \
221 -I$(top_builddir)/DerivedSources/InjectedBundle \
224 Libraries_libTestWebKitAPIInjectedBundle_la_CXXFLAGS = \
227 Libraries_libTestWebKitAPIInjectedBundle_la_CFLAGS = \
229 endif # ENABLE_WEBKIT2
232 Tools/TestWebKitAPI/Tests/WebKit2/18-characters.html \
233 Tools/TestWebKitAPI/Tests/WebKit2/file-with-anchor.html \
234 Tools/TestWebKitAPI/Tests/WebKit2/find.html \
235 Tools/TestWebKitAPI/Tests/WebKit2/icon.png \
236 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html \
237 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-images.html \
238 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-text.html \
239 Tools/TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html \
240 Tools/TestWebKitAPI/Tests/WebKit2/push-state.html \
241 Tools/TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html \
242 Tools/TestWebKitAPI/Tests/WebKit2/simple-form.html \
243 Tools/TestWebKitAPI/Tests/WebKit2/simple.html \
244 Tools/TestWebKitAPI/Tests/WebKit2/simple-iframe.html \
245 Tools/TestWebKitAPI/Tests/WebKit2/simple-tall.html \
246 Tools/TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html