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) \
39 Programs_TestWebKitAPI_TestWTF_LDADD = \
40 Libraries/libTestWebKitAPIMain.la \
41 Libraries/libgtest.la \
48 Programs_TestWebKitAPI_TestWTF_LDFLAGS = \
52 Programs_TestWebKitAPI_TestWTF_SOURCES = \
53 Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp \
54 Tools/TestWebKitAPI/Tests/WTF/Functional.cpp \
55 Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp \
56 Tools/TestWebKitAPI/Tests/WTF/RedBlackTree.cpp \
57 Tools/TestWebKitAPI/Tests/WTF/StringBuilder.cpp \
58 Tools/TestWebKitAPI/Tests/WTF/StringOperators.cpp \
59 Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp \
60 Tools/TestWebKitAPI/Tests/WTF/VectorBasic.cpp \
61 Tools/TestWebKitAPI/Tests/WTF/Vector.cpp \
62 Tools/TestWebKitAPI/Tests/WTF/VectorReverse.cpp \
63 Tools/TestWebKitAPI/WTFStringUtilities.h
67 Programs/TestWebKitAPI/TestWebKit2
69 Programs_TestWebKitAPI_TestWebKit2_CPPFLAGS = \
70 $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \
71 -I$(top_builddir)/DerivedSources/WebKit2/include
73 Programs_TestWebKitAPI_TestWebKit2_LDADD = \
74 $(Programs_TestWebKitAPI_TestWTF_LDADD) \
75 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
76 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
78 Programs_TestWebKitAPI_TestWebKit2_LDFLAGS = \
79 $(Programs_TestWebKitAPI_TestWTF_LDFLAGS)
81 Programs_TestWebKitAPI_TestWebKit2_SOURCES = \
82 Tools/TestWebKitAPI/config.h \
83 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp \
84 Tools/TestWebKitAPI/gtk/PlatformWebViewGtk.cpp \
85 Tools/TestWebKitAPI/JavaScriptTest.cpp \
86 Tools/TestWebKitAPI/JavaScriptTest.h \
87 Tools/TestWebKitAPI/PlatformUtilities.cpp \
88 Tools/TestWebKitAPI/PlatformUtilities.h \
89 Tools/TestWebKitAPI/PlatformWebView.h \
90 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp \
91 Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp \
92 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp \
93 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp \
94 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp \
95 Tools/TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp \
96 Tools/TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp \
97 Tools/TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp \
98 Tools/TestWebKitAPI/Tests/WebKit2/Find.cpp \
99 Tools/TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp \
100 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp \
101 Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp \
102 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp \
103 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp \
104 Tools/TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp \
105 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp \
106 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp \
107 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp \
108 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp \
109 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp \
110 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp \
111 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp \
112 Tools/TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp \
113 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp \
114 Tools/TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp \
115 Tools/TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp \
116 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp \
117 Tools/TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp \
118 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp \
119 Tools/TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp \
120 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp \
121 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp \
122 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp \
123 Tools/TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp \
124 Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp \
125 Tools/TestWebKitAPI/Tests/WebKit2/WKString.cpp \
126 Tools/TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp
128 noinst_LTLIBRARIES += \
129 Libraries/libTestWebKitAPIInjectedBundle.la
131 Libraries_libTestWebKitAPIInjectedBundle_la_SOURCES = \
132 Tools/TestWebKitAPI/InjectedBundleController.cpp \
133 Tools/TestWebKitAPI/InjectedBundleController.h \
134 Tools/TestWebKitAPI/InjectedBundleMain.cpp \
135 Tools/TestWebKitAPI/InjectedBundleTest.h \
136 Tools/TestWebKitAPI/PlatformUtilities.cpp \
137 Tools/TestWebKitAPI/PlatformUtilities.h \
138 Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp \
139 Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp \
140 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp \
141 Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp \
142 Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp \
143 Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp \
144 Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp \
145 Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp \
146 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp \
147 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp \
148 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp \
149 Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp \
150 Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp \
151 Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp \
152 Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp \
153 Tools/TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp \
154 Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp \
155 Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp \
156 Tools/TestWebKitAPI/gtk/InjectedBundleControllerGtk.cpp \
157 Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp
159 Libraries_libTestWebKitAPIInjectedBundle_la_LDFLAGS = \
160 -rpath ${shell pwd}/$(top_builddir)/Libraries/.libs \
165 Libraries_libTestWebKitAPIInjectedBundle_la_CPPFLAGS = \
166 $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \
167 -I$(top_builddir)/DerivedSources/InjectedBundle \
170 Libraries_libTestWebKitAPIInjectedBundle_la_CXXFLAGS = \
173 Libraries_libTestWebKitAPIInjectedBundle_la_CFLAGS = \
175 endif # ENABLE_WEBKIT2
178 Tools/TestWebKitAPI/Tests/WebKit2/18-characters.html \
179 Tools/TestWebKitAPI/Tests/WebKit2/file-with-anchor.html \
180 Tools/TestWebKitAPI/Tests/WebKit2/find.html \
181 Tools/TestWebKitAPI/Tests/WebKit2/icon.png \
182 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html \
183 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-images.html \
184 Tools/TestWebKitAPI/Tests/WebKit2/lots-of-text.html \
185 Tools/TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html \
186 Tools/TestWebKitAPI/Tests/WebKit2/push-state.html \
187 Tools/TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html \
188 Tools/TestWebKitAPI/Tests/WebKit2/simple-form.html \
189 Tools/TestWebKitAPI/Tests/WebKit2/simple.html \
190 Tools/TestWebKitAPI/Tests/WebKit2/simple-iframe.html \
191 Tools/TestWebKitAPI/Tests/WebKit2/simple-tall.html \
192 Tools/TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html