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