Rename WebKitTools to Tools
[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)/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         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         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)/Tools/DumpRenderTree \
38         -I$(srcdir)/Tools/DumpRenderTree/cairo \
39         -I$(srcdir)/Tools/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         Tools/DumpRenderTree/DumpRenderTree.h \
52         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
53         Tools/DumpRenderTree/AccessibilityController.cpp \
54         Tools/DumpRenderTree/AccessibilityController.h \
55         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
56         Tools/DumpRenderTree/AccessibilityTextMarker.h \
57         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
58         Tools/DumpRenderTree/AccessibilityUIElement.h \
59         Tools/DumpRenderTree/GCController.cpp \
60         Tools/DumpRenderTree/GCController.h \
61         Tools/DumpRenderTree/JavaScriptThreading.h \
62         Tools/DumpRenderTree/LayoutTestController.cpp \
63         Tools/DumpRenderTree/LayoutTestController.h \
64         Tools/DumpRenderTree/PixelDumpSupport.cpp \
65         Tools/DumpRenderTree/PixelDumpSupport.h \
66         Tools/DumpRenderTree/WorkQueue.cpp \
67         Tools/DumpRenderTree/WorkQueue.h \
68         Tools/DumpRenderTree/WorkQueueItem.h \
69         Tools/DumpRenderTree/config.h \
70         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
71         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
72         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
73         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
74         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
75         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
76         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
77         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
78         Tools/DumpRenderTree/gtk/EventSender.h \
79         Tools/DumpRenderTree/gtk/EventSender.cpp \
80         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
81         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
82         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
83         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
84         WebCore/platform/gtk/GtkVersioning.c
85
86 Programs_DumpRenderTree_CXXFLAGS = \
87         $(global_cxxflags) \
88         $(dumprendertree_cppflags) \
89         $(Programs_DumpRenderTree_CFLAGS)
90
91 Programs_DumpRenderTree_CFLAGS = \
92         -fno-strict-aliasing \
93         $(dumprendertree_cppflags) \
94         $(global_cflags) \
95         $(GLOBALDEPS_CFLAGS) \
96         $(CAIRO_CFLAGS) \
97         $(GTK_CFLAGS) \
98         $(LIBSOUP_CFLAGS)
99
100 Programs_DumpRenderTree_LDADD = \
101         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
102         $(GLOBALDEPS_LIBS) \
103         $(CAIRO_LIBS) \
104         $(GTK_LIBS) \
105         $(GLIB_LIBS) \
106         $(LIBSOUP_LIBS) \
107         $(FREETYPE_LIBS) \
108         $(WINMM_LIBS)
109
110 Programs_DumpRenderTree_LDFLAGS = \
111         -no-fast-install \
112         -no-install
113
114 # ImageDiff
115 Programs_ImageDiff_CPPFLAGS = $(global_cppflags)
116
117 Programs_ImageDiff_SOURCES = \
118    Tools/DumpRenderTree/gtk/ImageDiff.cpp
119
120 Programs_ImageDiff_CXXFLAGS = \
121    $(global_cxxflags) \
122    $(global_cppflags) \
123    $(Programs_ImageDiff_CFLAGS)
124
125 Programs_ImageDiff_CFLAGS = \
126    -fno-strict-aliasing \
127    $(global_cflags) \
128    $(GLOBALDEPS_CFLAGS) \
129    $(GTK_CFLAGS)
130
131 Programs_ImageDiff_LDADD = \
132    $(GTK_LIBS)
133
134 Programs_ImageDiff_LDFLAGS = \
135    -no-fast-install \
136    -no-install
137
138 # clean target
139 CLEANFILES += \
140         Programs/DumpRenderTree \
141         Programs/GtkLauncher \
142         Programs/ImageDiff
143
144 if TARGET_X11
145
146 # Build TestNetscapePlugin only for X11
147 # since we don't support plugins for non-X11 builds at the moment.
148 noinst_LTLIBRARIES += \
149         TestNetscapePlugin/libtestnetscapeplugin.la
150
151 dumprendertree_cppflags += \
152         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
153         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
154
155 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
156         -I$(srcdir)/Tools/DumpRenderTree \
157         -I$(srcdir)/Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
158         -I$(srcdir)/WebCore \
159         -I$(srcdir)/WebCore/bridge \
160         -I$(srcdir)/WebCore/plugins \
161         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
162         $(global_cppflags) \
163         $(javascriptcore_cppflags)
164
165 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
166         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
167         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
168         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
169         Tools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
170         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
171         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
172         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
173         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
174         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
175         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
176         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
177         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
178         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
179         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
180         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
181         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
182         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
183         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h
184
185 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
186         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
187         $(no_undefined) \
188         -avoid-version \
189         -module
190
191 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
192 endif