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