2011-05-31 Mikhail Naganov <mnaganov@chromium.org>
[WebKit-https.git] / Tools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher \
4         Programs/ImageDiff
5
6 # GtkLauncher
7 Programs_GtkLauncher_CPPFLAGS = \
8         -I$(srcdir)/Source/WebKit/gtk \
9         -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
10         -I$(top_builddir)/Source/WebKit/gtk \
11         -I$(top_builddir)/DerivedSources \
12         $(global_cppflags) \
13         $(javascriptcore_cppflags)
14
15 Programs_GtkLauncher_SOURCES = \
16         Tools/GtkLauncher/main.c
17
18 Programs_GtkLauncher_CFLAGS = \
19         -ansi \
20         -fno-strict-aliasing \
21         $(global_cflags) \
22         $(GTK_CFLAGS) \
23         $(LIBSOUP_CFLAGS)
24
25 Programs_GtkLauncher_LDADD = \
26         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
27         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
28         $(GTK_LIBS) \
29         $(GLIB_LIBS) \
30         $(LIBSOUP_LIBS) \
31         $(WINMM_LIBS)
32
33 Programs_GtkLauncher_LDFLAGS = \
34         -no-fast-install \
35         -no-install
36
37 # DumpRenderTree
38 dumprendertree_cppflags := \
39         -I$(srcdir)/Tools/DumpRenderTree \
40         -I$(srcdir)/Tools/DumpRenderTree/cairo \
41         -I$(srcdir)/Tools/DumpRenderTree/gtk \
42         -I$(srcdir)/Source/WebKit/gtk \
43         -I$(srcdir)/Source/WebCore/platform/gtk \
44         -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
45         -I$(top_builddir)/Source/WebKit/gtk \
46         -I$(top_builddir)/DerivedSources \
47         $(global_cppflags) \
48         $(javascriptcore_cppflags)
49
50 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
51
52 Programs_DumpRenderTree_SOURCES = \
53         Tools/DumpRenderTree/DumpRenderTree.h \
54         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
55         Tools/DumpRenderTree/AccessibilityController.cpp \
56         Tools/DumpRenderTree/AccessibilityController.h \
57         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
58         Tools/DumpRenderTree/AccessibilityTextMarker.h \
59         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
60         Tools/DumpRenderTree/AccessibilityUIElement.h \
61         Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
62         Tools/DumpRenderTree/CyclicRedundancyCheck.h \
63         Tools/DumpRenderTree/GCController.cpp \
64         Tools/DumpRenderTree/GCController.h \
65         Tools/DumpRenderTree/JavaScriptThreading.h \
66         Tools/DumpRenderTree/LayoutTestController.cpp \
67         Tools/DumpRenderTree/LayoutTestController.h \
68         Tools/DumpRenderTree/PixelDumpSupport.cpp \
69         Tools/DumpRenderTree/PixelDumpSupport.h \
70         Tools/DumpRenderTree/WorkQueue.cpp \
71         Tools/DumpRenderTree/WorkQueue.h \
72         Tools/DumpRenderTree/WorkQueueItem.h \
73         Tools/DumpRenderTree/config.h \
74         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
75         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
76         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
77         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
78         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
79         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
80         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
81         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
82         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
83         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
84         Tools/DumpRenderTree/gtk/EventSender.h \
85         Tools/DumpRenderTree/gtk/EventSender.cpp \
86         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
87         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
88         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
89         Tools/DumpRenderTree/gtk/PlainTextController.cpp \
90         Tools/DumpRenderTree/gtk/PlainTextController.h \
91         Tools/DumpRenderTree/gtk/TextInputController.h \
92         Tools/DumpRenderTree/gtk/TextInputController.cpp \
93         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
94         Source/WebCore/platform/gtk/GtkVersioning.c
95
96 Programs_DumpRenderTree_CXXFLAGS = \
97         $(global_cxxflags) \
98         $(dumprendertree_cppflags) \
99         $(Programs_DumpRenderTree_CFLAGS)
100
101 Programs_DumpRenderTree_CFLAGS = \
102         -fno-strict-aliasing \
103         $(dumprendertree_cppflags) \
104         $(global_cflags) \
105         $(GLOBALDEPS_CFLAGS) \
106         $(CAIRO_CFLAGS) \
107         $(GTK_CFLAGS) \
108         $(LIBSOUP_CFLAGS)
109
110 Programs_DumpRenderTree_LDADD = \
111         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
112         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
113         $(GLOBALDEPS_LIBS) \
114         $(CAIRO_LIBS) \
115         $(GTK_LIBS) \
116         $(GLIB_LIBS) \
117         $(LIBSOUP_LIBS) \
118         $(FREETYPE_LIBS) \
119         $(WINMM_LIBS)
120
121 Programs_DumpRenderTree_LDFLAGS = \
122         -no-fast-install \
123         -no-install
124
125 # ImageDiff
126 Programs_ImageDiff_CPPFLAGS = $(global_cppflags)
127
128 Programs_ImageDiff_SOURCES = \
129    Tools/DumpRenderTree/gtk/ImageDiff.cpp
130
131 Programs_ImageDiff_CXXFLAGS = \
132    $(global_cxxflags) \
133    $(global_cppflags) \
134    $(Programs_ImageDiff_CFLAGS)
135
136 Programs_ImageDiff_CFLAGS = \
137    -fno-strict-aliasing \
138    $(global_cflags) \
139    $(GLOBALDEPS_CFLAGS) \
140    $(GTK_CFLAGS)
141
142 Programs_ImageDiff_LDADD = \
143    $(GTK_LIBS)
144
145 Programs_ImageDiff_LDFLAGS = \
146    -no-fast-install \
147    -no-install
148
149 # clean target
150 CLEANFILES += \
151         Programs/DumpRenderTree \
152         Programs/GtkLauncher \
153         Programs/ImageDiff
154
155 if TARGET_X11
156
157 # Build TestNetscapePlugin only for X11
158 # since we don't support plugins for non-X11 builds at the moment.
159 noinst_LTLIBRARIES += \
160         TestNetscapePlugin/libtestnetscapeplugin.la
161
162 dumprendertree_cppflags += \
163         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
164         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
165
166 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
167         -I$(srcdir)/Tools/DumpRenderTree \
168         -I$(srcdir)/Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
169         -I$(srcdir)/Source/WebCore \
170         -I$(srcdir)/Source/WebCore/bridge \
171         -I$(srcdir)/Source/WebCore/plugins \
172         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
173         $(global_cppflags) \
174         $(javascriptcore_cppflags)
175
176 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
177 if !TARGET_WIN32
178 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
179 endif
180
181 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
182         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
183         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
184         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
185         Tools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
186         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
187         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
188         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
189         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
190         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
191         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
192         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
193         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
194         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
195         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
196         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
197         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
198         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
199         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
200         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
201         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
202         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
203         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
204         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h
205
206 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
207         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
208         $(no_undefined) \
209         -avoid-version \
210         -module
211
212 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
213 endif