Helper script for uploading layout test results for display on build.webkit.org.
[WebKit-https.git] / WebKitTools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/GtkLauncher \
3         Programs/DumpRenderTree
4
5 # GtkLauncher
6 Programs_GtkLauncher_CPPFLAGS = \
7         -I$(srcdir)/WebKit/gtk \
8         -I$(top_builddir)/WebKit/gtk \
9         $(global_cppflags) \
10         $(javascriptcore_cppflags)
11
12 Programs_GtkLauncher_SOURCES = \
13         WebKitTools/GtkLauncher/main.c
14
15 Programs_GtkLauncher_CFLAGS = \
16         -ansi \
17         -fno-strict-aliasing \
18         -O2 \
19         $(global_cflags) \
20         $(GTK_CFLAGS) \
21         $(LIBSOUP_CFLAGS)
22
23 Programs_GtkLauncher_LDADD = \
24         libwebkit-1.0.la \
25         $(GTK_LIBS)
26
27 # DumpRenderTree
28 dumprendertree_cppflags := \
29         -I$(srcdir)/WebKitTools/DumpRenderTree \
30         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk \
31         -I$(srcdir)/WebKit/gtk \
32         -I$(top_builddir)/WebKit/gtk \
33         $(global_cppflags) \
34         $(javascriptcore_cppflags)
35
36 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
37
38 Programs_DumpRenderTree_SOURCES = \
39         WebKitTools/DumpRenderTree/AccessibilityController.h \
40         WebKitTools/DumpRenderTree/AccessibilityUIElement.h \
41         WebKitTools/DumpRenderTree/DumpRenderTree.h \
42         WebKitTools/DumpRenderTree/DumpRenderTreePrefix.h \
43         WebKitTools/DumpRenderTree/GCController.cpp \
44         WebKitTools/DumpRenderTree/GCController.h \
45         WebKitTools/DumpRenderTree/JavaScriptThreading.h \
46         WebKitTools/DumpRenderTree/LayoutTestController.cpp \
47         WebKitTools/DumpRenderTree/LayoutTestController.h \
48         WebKitTools/DumpRenderTree/PixelDumpSupport.h \
49         WebKitTools/DumpRenderTree/WorkQueue.cpp \
50         WebKitTools/DumpRenderTree/WorkQueue.h \
51         WebKitTools/DumpRenderTree/WorkQueueItem.h \
52         WebKitTools/DumpRenderTree/config.h \
53         WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp \
54         WebKitTools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
55         WebKitTools/DumpRenderTree/gtk/GCControllerGtk.cpp \
56         WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
57         WebKitTools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp
58
59 Programs_DumpRenderTree_CXXFLAGS = \
60         $(global_cxxflags) \
61         $(Programs_DumpRenderTree_CFLAGS)
62
63 Programs_DumpRenderTree_CFLAGS = \
64         -fno-strict-aliasing \
65         -O2 \
66         $(global_cflags) \
67         $(GLOBALDEPS_CFLAGS) \
68         $(CAIRO_CFLAGS) \
69         $(GTK_CFLAGS) \
70         $(LIBSOUP_CFLAGS)
71
72 Programs_DumpRenderTree_LDADD = \
73         libwebkit-1.0.la \
74         $(GLOBALDEPS_LIBS) \
75         $(CAIRO_LIBS) \
76         $(GTK_LIBS)
77
78 # clean target
79 CLEANFILES += \
80         Programs/GtkLauncher \
81         Programs/DumpRenderTree
82
83
84 if TARGET_X11
85
86 # Build TestNetscapePlugin only for X11
87 # since we don't support plugins for non-X11 builds at the moment.
88 noinst_LTLIBRARIES += \
89         TestNetscapePlugin/libtestnetscapeplugin.la
90
91 dumprendertree_cppflags += \
92         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\"
93
94 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
95         -I$(srcdir)/WebKitTools/DumpRenderTree \
96         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders \
97         -I$(srcdir)/WebCore \
98         -I$(srcdir)/WebCore/bridge \
99         -I$(srcdir)/WebCore/plugins \
100         -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj \
101         $(global_cppflags) \
102         $(javascriptcore_cppflags)
103
104 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
105         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
106         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
107         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
108         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp \
109         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp \
110         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h \
111         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp \
112         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h
113
114 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
115         -rpath ${shell pwd}/$(top_builddir)/TestNetscapePlugin/.libs \
116         $(no_undefined) \
117         -avoid-version \
118         -module
119
120 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
121 endif