BUILT_SOURCES += \ generate-testwebkitapi-forwarding-headers wk2_tests_sources = $(shell ls $(srcdir)/Tools/TestWebKitAPI/Tests/WebKit2/*.cpp) generate-testwebkitapi-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(wk2_tests_sources) $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/TestWebKitAPI $(GENSOURCES_WEBKIT2)/include gtk $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/TestWebKitAPI $(GENSOURCES_WEBKIT2)/include soup noinst_LTLIBRARIES += \ Libraries/libTestWebKitAPIMain.la Libraries_libTestWebKitAPIMain_la_SOURCES = \ Tools/TestWebKitAPI/Test.h \ Tools/TestWebKitAPI/TestsController.cpp \ Tools/TestWebKitAPI/TestsController.h \ Tools/TestWebKitAPI/gtk/main.cpp # Use -isystem gcc flag so that gcc considers gtest headers as system headers. # We need this to avoid a lot of compile warnings due to -Wundef. # See http://code.google.com/p/googletest/issues/detail?id=258 Libraries_libTestWebKitAPIMain_la_CPPFLAGS = \ -isystem $(srcdir)/Source/ThirdParty/gtest/include \ -I$(srcdir)/Tools/TestWebKitAPI \ -I$(srcdir)/Source/ThirdParty/gtest/include \ -I$(top_builddir)/DerivedSources/WebKit2/include \ $(global_cppflags) \ $(javascriptcore_cppflags) \ $(GLIB_CFLAGS) \ $(GTK_CFLAGS) noinst_PROGRAMS += \ Programs/TestWebKitAPI/TestWTF Programs_TestWebKitAPI_TestWTF_CPPFLAGS = \ $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \ $(GLIB_LIBS) \ $(CAIRO_CFLAGS) \ $(LIBSOUP_CFLAGS) Programs_TestWebKitAPI_TestWTF_LDADD = \ Libraries/libTestWebKitAPIMain.la \ Libraries/libgtest.la \ libWTF.la \ $(CAIRO_LIBS) \ $(GLIB_LIBS) \ $(GTK_LIBS) \ $(LIBSOUP_LIBS) Programs_TestWebKitAPI_TestWTF_LDFLAGS = \ -no-install \ -no-fast-install Programs_TestWebKitAPI_TestWTF_SOURCES = \ Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp \ Tools/TestWebKitAPI/Tests/WTF/Functional.cpp \ Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp \ Tools/TestWebKitAPI/Tests/WTF/RedBlackTree.cpp \ Tools/TestWebKitAPI/Tests/WTF/StringBuilder.cpp \ Tools/TestWebKitAPI/Tests/WTF/StringOperators.cpp \ Tools/TestWebKitAPI/Tests/WTF/TemporaryChange.cpp \ Tools/TestWebKitAPI/Tests/WTF/VectorBasic.cpp \ Tools/TestWebKitAPI/Tests/WTF/Vector.cpp \ Tools/TestWebKitAPI/Tests/WTF/VectorReverse.cpp \ Tools/TestWebKitAPI/WTFStringUtilities.h noinst_PROGRAMS += \ Programs/TestWebKitAPI/TestGtk Programs_TestWebKitAPI_TestGtk_CPPFLAGS = \ $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \ $(webcore_cppflags) \ $(webcoregtk_cppflags) \ $(CAIRO_CFLAGS) \ $(LIBSOUP_CFLAGS) Programs_TestWebKitAPI_TestGtk_LDADD = \ $(Programs_TestWebKitAPI_TestWTF_LDADD) \ libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la Programs_TestWebKitAPI_TestGtk_LDFLAGS = \ $(Programs_TestWebKitAPI_TestWTF_LDFLAGS) Programs_TestWebKitAPI_TestGtk_SOURCES = \ Source/WebCore/platform/graphics/IntRect.cpp \ Source/WebCore/platform/graphics/cairo/IntRectCairo.cpp \ Source/WebCore/platform/graphics/gtk/IntRectGtk.cpp \ Source/WebCore/platform/gtk/GtkInputMethodFilter.cpp \ Tools/TestWebKitAPI/config.h \ Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp if ENABLE_WEBKIT2 noinst_PROGRAMS += \ Programs/TestWebKitAPI/TestWebKit2 Programs_TestWebKitAPI_TestWebKit2_CPPFLAGS = \ $(Programs_TestWebKitAPI_TestWTF_CPPFLAGS) \ -I$(top_builddir)/DerivedSources/WebKit2/include Programs_TestWebKitAPI_TestWebKit2_LDADD = \ $(Programs_TestWebKitAPI_TestWTF_LDADD) \ libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la Programs_TestWebKitAPI_TestWebKit2_LDFLAGS = \ $(Programs_TestWebKitAPI_TestWTF_LDFLAGS) Programs_TestWebKitAPI_TestWebKit2_SOURCES = \ Tools/TestWebKitAPI/config.h \ Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp \ Tools/TestWebKitAPI/gtk/PlatformWebViewGtk.cpp \ Tools/TestWebKitAPI/JavaScriptTest.cpp \ Tools/TestWebKitAPI/JavaScriptTest.h \ Tools/TestWebKitAPI/PlatformUtilities.cpp \ Tools/TestWebKitAPI/PlatformUtilities.h \ Tools/TestWebKitAPI/PlatformWebView.h \ Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/Find.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKConnection.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKString.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp noinst_LTLIBRARIES += \ Libraries/libTestWebKitAPIInjectedBundle.la Libraries_libTestWebKitAPIInjectedBundle_la_SOURCES = \ Tools/TestWebKitAPI/InjectedBundleController.cpp \ Tools/TestWebKitAPI/InjectedBundleController.h \ Tools/TestWebKitAPI/InjectedBundleMain.cpp \ Tools/TestWebKitAPI/InjectedBundleTest.h \ Tools/TestWebKitAPI/PlatformUtilities.cpp \ Tools/TestWebKitAPI/PlatformUtilities.h \ Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp \ Tools/TestWebKitAPI/Tests/WebKit2/WKConnection_Bundle.cpp \ Tools/TestWebKitAPI/gtk/InjectedBundleControllerGtk.cpp \ Tools/TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp Libraries_libTestWebKitAPIInjectedBundle_la_LDFLAGS = \ -rpath ${shell pwd}/$(top_builddir)/Libraries/.libs \ $(no_undefined) \ -avoid-version \ -module Libraries_libTestWebKitAPIInjectedBundle_la_CPPFLAGS = \ $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \ -I$(top_builddir)/DerivedSources/InjectedBundle \ $(GTK_CFLAGS) Libraries_libTestWebKitAPIInjectedBundle_la_CXXFLAGS = \ $(global_cxxflags) Libraries_libTestWebKitAPIInjectedBundle_la_CFLAGS = \ $(global_cflags) endif # ENABLE_WEBKIT2 EXTRA_DIST += \ Tools/TestWebKitAPI/Tests/WebKit2/18-characters.html \ Tools/TestWebKitAPI/Tests/WebKit2/file-with-anchor.html \ Tools/TestWebKitAPI/Tests/WebKit2/find.html \ Tools/TestWebKitAPI/Tests/WebKit2/icon.png \ Tools/TestWebKitAPI/Tests/WebKit2/lots-of-iframes.html \ Tools/TestWebKitAPI/Tests/WebKit2/lots-of-images.html \ Tools/TestWebKitAPI/Tests/WebKit2/lots-of-text.html \ Tools/TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html \ Tools/TestWebKitAPI/Tests/WebKit2/push-state.html \ Tools/TestWebKitAPI/Tests/WebKit2/simple-accelerated-compositing.html \ Tools/TestWebKitAPI/Tests/WebKit2/simple-form.html \ Tools/TestWebKitAPI/Tests/WebKit2/simple.html \ Tools/TestWebKitAPI/Tests/WebKit2/simple-iframe.html \ Tools/TestWebKitAPI/Tests/WebKit2/simple-tall.html \ Tools/TestWebKitAPI/Tests/WebKit2/spacebar-scrolling.html