2011-03-30 Steve Falkenburg <sfalken@apple.com>
[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         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)/Source/WebKit/gtk \
41         -I$(srcdir)/Source/WebCore/platform/gtk \
42         -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
43         -I$(top_builddir)/Source/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/AccessibilityCallbacks.h \
73         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
74         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
75         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
76         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
77         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
78         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
79         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
80         Tools/DumpRenderTree/gtk/EventSender.h \
81         Tools/DumpRenderTree/gtk/EventSender.cpp \
82         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
83         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
84         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
85         Tools/DumpRenderTree/gtk/TextInputController.h \
86         Tools/DumpRenderTree/gtk/TextInputController.cpp \
87         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
88         Source/WebCore/platform/gtk/GtkVersioning.c
89
90 Programs_DumpRenderTree_CXXFLAGS = \
91         $(global_cxxflags) \
92         $(dumprendertree_cppflags) \
93         $(Programs_DumpRenderTree_CFLAGS)
94
95 Programs_DumpRenderTree_CFLAGS = \
96         -fno-strict-aliasing \
97         $(dumprendertree_cppflags) \
98         $(global_cflags) \
99         $(GLOBALDEPS_CFLAGS) \
100         $(CAIRO_CFLAGS) \
101         $(GTK_CFLAGS) \
102         $(LIBSOUP_CFLAGS)
103
104 Programs_DumpRenderTree_LDADD = \
105         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
106         $(GLOBALDEPS_LIBS) \
107         $(CAIRO_LIBS) \
108         $(GTK_LIBS) \
109         $(GLIB_LIBS) \
110         $(LIBSOUP_LIBS) \
111         $(FREETYPE_LIBS) \
112         $(WINMM_LIBS)
113
114 Programs_DumpRenderTree_LDFLAGS = \
115         -no-fast-install \
116         -no-install
117
118 # ImageDiff
119 Programs_ImageDiff_CPPFLAGS = $(global_cppflags)
120
121 Programs_ImageDiff_SOURCES = \
122    Tools/DumpRenderTree/gtk/ImageDiff.cpp
123
124 Programs_ImageDiff_CXXFLAGS = \
125    $(global_cxxflags) \
126    $(global_cppflags) \
127    $(Programs_ImageDiff_CFLAGS)
128
129 Programs_ImageDiff_CFLAGS = \
130    -fno-strict-aliasing \
131    $(global_cflags) \
132    $(GLOBALDEPS_CFLAGS) \
133    $(GTK_CFLAGS)
134
135 Programs_ImageDiff_LDADD = \
136    $(GTK_LIBS)
137
138 Programs_ImageDiff_LDFLAGS = \
139    -no-fast-install \
140    -no-install
141
142 # clean target
143 CLEANFILES += \
144         Programs/DumpRenderTree \
145         Programs/GtkLauncher \
146         Programs/ImageDiff
147
148 if TARGET_X11
149
150 # Build TestNetscapePlugin only for X11
151 # since we don't support plugins for non-X11 builds at the moment.
152 noinst_LTLIBRARIES += \
153         TestNetscapePlugin/libtestnetscapeplugin.la
154
155 dumprendertree_cppflags += \
156         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
157         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
158
159 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
160         -I$(srcdir)/Tools/DumpRenderTree \
161         -I$(srcdir)/Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
162         -I$(srcdir)/Source/WebCore \
163         -I$(srcdir)/Source/WebCore/bridge \
164         -I$(srcdir)/Source/WebCore/plugins \
165         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
166         $(global_cppflags) \
167         $(javascriptcore_cppflags)
168
169 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
170 if !TARGET_WIN32
171 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
172 endif
173
174 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
175         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
176         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
177         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
178         Tools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
179         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
180         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
181         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
182         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
183         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
184         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
185         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
186         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
187         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
188         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
189         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
190         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
191         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
192         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
193         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
194         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h
195
196 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
197         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
198         $(no_undefined) \
199         -avoid-version \
200         -module
201
202 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
203 endif