bd04f4d425997b31bdb074070578020d2718ce15
[WebKit-https.git] / Tools / WebKitTestRunner / GNUmakefile.am
1
2 stamp-webkittestrunner-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(Programs_WebKitTestRunner_SOURCES) $(Libraries_libTestRunnerInjectedBundle_la_SOURCES)
3         $(AM_V_GEN)$(PERL) $< $(srcdir)/Tools/WebKitTestRunner $(GENSOURCES_WEBKIT2)/include gtk \
4         && echo timestamp > $(@F)
5
6 BUILT_SOURCES += $(top_builddir)/stamp-webkittestrunner-forwarding-headers
7
8 if ENABLE_WEBKIT2
9 noinst_PROGRAMS += \
10         Programs/WebKitTestRunner
11 endif
12
13 Programs_WebKitTestRunner_SOURCES = \
14         Tools/WebKitTestRunner/EventSenderProxy.h \
15         Tools/WebKitTestRunner/gtk/main.cpp \
16         Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp \
17         Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp \
18         Tools/WebKitTestRunner/gtk/TestControllerGtk.cpp \
19         Tools/WebKitTestRunner/cairo/TestInvocationCairo.cpp \
20         Tools/WebKitTestRunner/CyclicRedundancyCheck.cpp \
21         Tools/WebKitTestRunner/CyclicRedundancyCheck.h \
22         Tools/WebKitTestRunner/GeolocationProviderMock.cpp \
23         Tools/WebKitTestRunner/GeolocationProviderMock.h \
24         Tools/WebKitTestRunner/PixelDumpSupport.cpp \
25         Tools/WebKitTestRunner/PixelDumpSupport.h \
26         Tools/WebKitTestRunner/PlatformWebView.h \
27         Tools/WebKitTestRunner/StringFunctions.h \
28         Tools/WebKitTestRunner/TestController.cpp \
29         Tools/WebKitTestRunner/TestController.h \
30         Tools/WebKitTestRunner/TestInvocation.cpp \
31         Tools/WebKitTestRunner/TestInvocation.h \
32         Tools/WebKitTestRunner/WebNotificationProvider.cpp \
33         Tools/WebKitTestRunner/WebNotificationProvider.h \
34         Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
35         Tools/WebKitTestRunner/WorkQueueManager.cpp \
36         Tools/WebKitTestRunner/WorkQueueManager.h
37
38 Programs_WebKitTestRunner_CPPFLAGS = \
39         -include Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
40         -I$(srcdir)/Tools/WebKitTestRunner \
41         -I$(srcdir)/Source/WebCore/platform/gtk \
42         -I$(top_builddir)/DerivedSources/WebKit2/include \
43         $(global_cppflags) \
44         $(javascriptcore_cppflags) \
45         $(webcore_cppflags) \
46         $(CAIRO_CFLAGS) \
47         $(GTK_CFLAGS) \
48         $(LIBSOUP_CFLAGS)
49 Programs_WebKitTestRunner_CXXFLAGS = $(global_cxxflags)
50 Programs_WebKitTestRunner_CFLAGS = $(global_cflags)
51
52 Programs_WebKitTestRunner_LDADD = \
53         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
54         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
55         $(CAIRO_LIBS) \
56         $(GTK_LIBS) \
57         $(GLIB_LIBS) \
58         $(LIBSOUP_LIBS) \
59         $(FREETYPE_LIBS) \
60         $(WINMM_LIBS) \
61         $(XRENDER_LIBS) \
62         $(XT_LIBS)
63
64 Programs_WebKitTestRunner_LDFLAGS = \
65         -no-fast-install \
66         -no-install
67
68 # The InjectedBundle library allows the render process to load harness code.
69 if ENABLE_WEBKIT2
70 noinst_LTLIBRARIES += Libraries/libTestRunnerInjectedBundle.la
71 endif
72
73 webkittestrunner_built_sources += \
74         DerivedSources/InjectedBundle/JSAccessibilityController.cpp \
75         DerivedSources/InjectedBundle/JSAccessibilityTextMarker.cpp \
76         DerivedSources/InjectedBundle/JSAccessibilityTextMarkerRange.cpp \
77         DerivedSources/InjectedBundle/JSAccessibilityUIElement.cpp \
78         DerivedSources/InjectedBundle/JSEventSendingController.cpp \
79         DerivedSources/InjectedBundle/JSGCController.cpp \
80         DerivedSources/InjectedBundle/JSTestRunner.cpp \
81         DerivedSources/InjectedBundle/JSTextInputController.cpp
82 nodist_Libraries_libTestRunnerInjectedBundle_la_SOURCES = $(webkittestrunner_built_sources)
83 BUILT_SOURCES += $(webkittestrunner_built_sources)
84
85 Libraries_libTestRunnerInjectedBundle_la_SOURCES = \
86         Tools/WebKitTestRunner/InjectedBundle/AccessibilityController.cpp \
87         Tools/WebKitTestRunner/InjectedBundle/AccessibilityController.h \
88         Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.cpp \
89         Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarker.h \
90         Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.cpp \
91         Tools/WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h \
92         Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp \
93         Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h \
94         Tools/WebKitTestRunner/InjectedBundle/ActivateFonts.h \
95         Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp \
96         Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp \
97         Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrappable.h \
98         Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp \
99         Tools/WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h \
100         Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp \
101         Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h \
102         Tools/WebKitTestRunner/InjectedBundle/GCController.cpp \
103         Tools/WebKitTestRunner/InjectedBundle/GCController.h \
104         Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp \
105         Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp \
106         Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.cpp \
107         Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.h \
108         Tools/WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp \
109         Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp \
110         Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h \
111         Tools/WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp \
112         Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp \
113         Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h \
114         Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp \
115         Tools/WebKitTestRunner/InjectedBundle/TestRunner.h \
116         Tools/WebKitTestRunner/InjectedBundle/TextInputController.cpp \
117         Tools/WebKitTestRunner/InjectedBundle/TextInputController.h
118
119 Libraries_libTestRunnerInjectedBundle_la_LIBADD = \
120         libWebCoreInternals.la
121
122 Libraries_libTestRunnerInjectedBundle_la_LDFLAGS = \
123         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
124         $(no_undefined) \
125         -avoid-version \
126         -module
127
128 Libraries_libTestRunnerInjectedBundle_la_CPPFLAGS = \
129         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\" \
130         -DTOP_LEVEL_DIR=\"${shell pwd}/${srcdir}\" \
131         -include Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h \
132         -I$(srcdir)/Tools/WebKitTestRunner \
133         -I$(srcdir)/Tools/WebKitTestRunner/InjectedBundle \
134         -I$(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings \
135         -I$(srcdir)/Source/WebCore/testing/js \
136         -I$(top_builddir)/DerivedSources/InjectedBundle \
137         -I$(top_builddir)/DerivedSources/WebKit2/include \
138         $(global_cppflags) \
139         $(javascriptcore_cppflags) \
140         $(webcore_cppflags) \
141         $(CAIRO_CFLAGS) \
142         $(GLIB_CFLAGS) \
143         $(GTK_CFLAGS) \
144         $(LIBSOUP_CFLAGS)
145 Libraries_libTestRunnerInjectedBundle_la_CXXFLAGS = $(global_cxxflags)
146 Libraries_libTestRunnerInjectedBundle_la_CFLAGS = $(global_cflags)
147
148 code_generation_dependencies = \
149         Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm \
150         Source/WebCore/bindings/scripts/CodeGenerator.pm \
151         Source/WebCore/bindings/scripts/IDLParser.pm \
152         Source/WebCore/bindings/scripts/InFilesParser.pm \
153         Source/WebCore/bindings/scripts/generate-bindings.pl
154
155 DerivedSources/InjectedBundle/JS%.cpp: Tools/WebKitTestRunner/InjectedBundle/Bindings/%.idl $(code_generation_dependencies)
156         $(AM_V_GEN)$(PERL) \
157                 -I $(srcdir)/Source/WebCore/bindings/scripts \
158                 -I $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings \
159                 $(srcdir)/Source/WebCore/bindings/scripts/generate-bindings.pl \
160                 --defines \"\" --generator TestRunner \
161                 --include $(srcdir)/Tools/InjectedBundle/Bindings \
162                 --outputDir $(top_builddir)/DerivedSources/InjectedBundle \
163                 $<
164
165 EXTRA_DIST += \
166         $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm \
167         $(srcdir)/Source/WebCore/bindings/scripts/CodeGenerator.pm \
168         $(srcdir)/Source/WebCore/bindings/scripts/IDLParser.pm \
169         $(srcdir)/Source/WebCore/bindings/scripts/InFilesParser.pm \
170         $(srcdir)/Source/WebCore/bindings/scripts/generate-bindings.pl \
171         $(shell ls $(srcdir)/Tools/WebKitTestRunner/InjectedBundle/Bindings/*.idl)