2010-10-13 Sergio Villar Senin <svillar@igalia.com>
[WebKit-https.git] / WebKitTools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher \
4         Programs/ImageDiff
5
6 # GtkLauncher
7 Programs_GtkLauncher_CPPFLAGS = \
8         -I$(srcdir)/WebKit/gtk \
9         -I$(srcdir)/WebCore/platform/network/soup/cache/ \
10         -I$(top_builddir)/WebKit/gtk \
11         -I$(top_builddir)/DerivedSources \
12         $(global_cppflags) \
13         $(javascriptcore_cppflags)
14
15 Programs_GtkLauncher_SOURCES = \
16         WebKitTools/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         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
27         $(GTK_LIBS) \
28         $(GLIB_LIBS) \
29         $(WINMM_LIBS)
30
31 Programs_GtkLauncher_LDFLAGS = \
32         -no-fast-install \
33         -no-install
34
35 # DumpRenderTree
36 dumprendertree_cppflags := \
37         -I$(srcdir)/WebKitTools/DumpRenderTree \
38         -I$(srcdir)/WebKitTools/DumpRenderTree/cairo \
39         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk \
40         -I$(srcdir)/WebKit/gtk \
41         -I$(srcdir)/WebCore/platform/gtk \
42         -I$(srcdir)/WebCore/platform/network/soup/cache/ \
43         -I$(top_builddir)/WebKit/gtk \
44         -I$(top_builddir)/DerivedSources \
45         $(global_cppflags) \
46         $(javascriptcore_cppflags)
47
48 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
49
50 Programs_DumpRenderTree_SOURCES = \
51         WebKitTools/DumpRenderTree/DumpRenderTree.h \
52         WebKitTools/DumpRenderTree/DumpRenderTreePrefix.h \
53         WebKitTools/DumpRenderTree/AccessibilityController.cpp \
54         WebKitTools/DumpRenderTree/AccessibilityController.h \
55         WebKitTools/DumpRenderTree/AccessibilityTextMarker.cpp \
56         WebKitTools/DumpRenderTree/AccessibilityTextMarker.h \
57         WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp \
58         WebKitTools/DumpRenderTree/AccessibilityUIElement.h \
59         WebKitTools/DumpRenderTree/GCController.cpp \
60         WebKitTools/DumpRenderTree/GCController.h \
61         WebKitTools/DumpRenderTree/JavaScriptThreading.h \
62         WebKitTools/DumpRenderTree/LayoutTestController.cpp \
63         WebKitTools/DumpRenderTree/LayoutTestController.h \
64         WebKitTools/DumpRenderTree/PixelDumpSupport.cpp \
65         WebKitTools/DumpRenderTree/PixelDumpSupport.h \
66         WebKitTools/DumpRenderTree/WorkQueue.cpp \
67         WebKitTools/DumpRenderTree/WorkQueue.h \
68         WebKitTools/DumpRenderTree/WorkQueueItem.h \
69         WebKitTools/DumpRenderTree/config.h \
70         WebKitTools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
71         WebKitTools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
72         WebKitTools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
73         WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
74         WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp \
75         WebKitTools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
76         WebKitTools/DumpRenderTree/gtk/EventSender.h \
77         WebKitTools/DumpRenderTree/gtk/EventSender.cpp \
78         WebKitTools/DumpRenderTree/gtk/GCControllerGtk.cpp \
79         WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
80         WebKitTools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
81         WebKitTools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
82         WebCore/platform/gtk/GtkVersioning.c
83
84 Programs_DumpRenderTree_CXXFLAGS = \
85         $(global_cxxflags) \
86         $(dumprendertree_cppflags) \
87         $(Programs_DumpRenderTree_CFLAGS)
88
89 Programs_DumpRenderTree_CFLAGS = \
90         -fno-strict-aliasing \
91         $(dumprendertree_cppflags) \
92         $(global_cflags) \
93         $(GLOBALDEPS_CFLAGS) \
94         $(CAIRO_CFLAGS) \
95         $(GTK_CFLAGS) \
96         $(LIBSOUP_CFLAGS)
97
98 Programs_DumpRenderTree_LDADD = \
99         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
100         libJavaScriptCore.la \
101         $(GLOBALDEPS_LIBS) \
102         $(CAIRO_LIBS) \
103         $(GTK_LIBS) \
104         $(GLIB_LIBS) \
105         $(LIBSOUP_LIBS) \
106         $(FREETYPE_LIBS) \
107         $(WINMM_LIBS)
108
109 Programs_DumpRenderTree_LDFLAGS = \
110         -no-fast-install \
111         -no-install
112
113 # ImageDiff
114 Programs_ImageDiff_CPPFLAGS = $(global_cppflags)
115
116 Programs_ImageDiff_SOURCES = \
117    WebKitTools/DumpRenderTree/gtk/ImageDiff.cpp
118
119 Programs_ImageDiff_CXXFLAGS = \
120    $(global_cxxflags) \
121    $(global_cppflags) \
122    $(Programs_ImageDiff_CFLAGS)
123
124 Programs_ImageDiff_CFLAGS = \
125    -fno-strict-aliasing \
126    $(global_cflags) \
127    $(GLOBALDEPS_CFLAGS) \
128    $(GTK_CFLAGS)
129
130 Programs_ImageDiff_LDADD = \
131    $(GTK_LIBS)
132
133 Programs_ImageDiff_LDFLAGS = \
134    -no-fast-install \
135    -no-install
136
137 # clean target
138 CLEANFILES += \
139         Programs/DumpRenderTree \
140         Programs/GtkLauncher \
141         Programs/ImageDiff
142
143 if TARGET_X11
144
145 # Build TestNetscapePlugin only for X11
146 # since we don't support plugins for non-X11 builds at the moment.
147 noinst_LTLIBRARIES += \
148         TestNetscapePlugin/libtestnetscapeplugin.la
149
150 dumprendertree_cppflags += \
151         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
152         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/WebKitTools/DumpRenderTree/gtk/fonts\"
153
154 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
155         -I$(srcdir)/WebKitTools/DumpRenderTree \
156         -I$(srcdir)/WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
157         -I$(srcdir)/WebCore \
158         -I$(srcdir)/WebCore/bridge \
159         -I$(srcdir)/WebCore/plugins \
160         -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn \
161         $(global_cppflags) \
162         $(javascriptcore_cppflags)
163
164 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
165         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
166         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
167         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
168         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
169         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
170         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
171         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
172         WebKitTools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
173         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
174         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
175         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
176         WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
177         WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
178         WebKitTools/DumpRenderTree/TestNetscapePlugIn/TestObject.h
179
180 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
181         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
182         $(no_undefined) \
183         -avoid-version \
184         -module
185
186 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
187 endif