Rubber-stamped by Brady Eidson.
[webbrowser.git] / WebKitTools / GNUmakefile.am
blob4425196652e3668d3af4dbe1b5e7a8265d953aa1
1 noinst_PROGRAMS += \
2         Programs/GtkLauncher \
3         Programs/DumpRenderTree
5 # GtkLauncher
6 Programs_GtkLauncher_CPPFLAGS = \
7         -I$(srcdir)/WebKit/gtk \
8         -I$(top_builddir)/WebKit/gtk \
9         $(global_cppflags) \
10         $(javascriptcore_cppflags)
12 Programs_GtkLauncher_SOURCES = \
13         WebKitTools/GtkLauncher/main.c
15 Programs_GtkLauncher_CFLAGS = \
16         -ansi \
17         -fno-strict-aliasing \
18         $(global_cflags) \
19         $(GTK_CFLAGS) \
20         $(LIBSOUP_CFLAGS)
22 Programs_GtkLauncher_LDADD = \
23         libwebkit-1.0.la \
24         $(GTK_LIBS) \
25         $(GLIB_LIBS)
27 Programs_GtkLauncher_LDFLAGS = \
28         -no-fast-install \
29         -no-install
31 # DumpRenderTree
32 dumprendertree_cppflags := \
33         -I$(srcdir)/WebKitTools/DumpRenderTree \
34         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk \
35         -I$(srcdir)/WebKit/gtk \
36         -I$(top_builddir)/WebKit/gtk \
37         $(global_cppflags) \
38         $(javascriptcore_cppflags)
40 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
42 Programs_DumpRenderTree_SOURCES = \
43         WebKitTools/DumpRenderTree/DumpRenderTree.h \
44         WebKitTools/DumpRenderTree/DumpRenderTreePrefix.h \
45         WebKitTools/DumpRenderTree/AccessibilityController.cpp \
46         WebKitTools/DumpRenderTree/AccessibilityController.h \
47         WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp \
48         WebKitTools/DumpRenderTree/AccessibilityUIElement.h \
49         WebKitTools/DumpRenderTree/GCController.cpp \
50         WebKitTools/DumpRenderTree/GCController.h \
51         WebKitTools/DumpRenderTree/JavaScriptThreading.h \
52         WebKitTools/DumpRenderTree/LayoutTestController.cpp \
53         WebKitTools/DumpRenderTree/LayoutTestController.h \
54         WebKitTools/DumpRenderTree/PixelDumpSupport.h \
55         WebKitTools/DumpRenderTree/WorkQueue.cpp \
56         WebKitTools/DumpRenderTree/WorkQueue.h \
57         WebKitTools/DumpRenderTree/WorkQueueItem.h \
58         WebKitTools/DumpRenderTree/config.h \
59         WebKitTools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
60         WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
61         WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp \
62         WebKitTools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
63         WebKitTools/DumpRenderTree/gtk/EventSender.h \
64         WebKitTools/DumpRenderTree/gtk/EventSender.cpp \
65         WebKitTools/DumpRenderTree/gtk/GCControllerGtk.cpp \
66         WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
67         WebKitTools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp
69 Programs_DumpRenderTree_CXXFLAGS = \
70         $(global_cxxflags) \
71         $(dumprendertree_cppflags) \
72         $(Programs_DumpRenderTree_CFLAGS)
74 Programs_DumpRenderTree_CFLAGS = \
75         -fno-strict-aliasing \
76         $(dumprendertree_cppflags) \
77         $(global_cflags) \
78         $(GLOBALDEPS_CFLAGS) \
79         $(CAIRO_CFLAGS) \
80         $(GTK_CFLAGS) \
81         $(LIBSOUP_CFLAGS)
83 Programs_DumpRenderTree_LDADD = \
84         libwebkit-1.0.la \
85         libJavaScriptCore.la \
86         $(GLOBALDEPS_LIBS) \
87         $(CAIRO_LIBS) \
88         $(GTK_LIBS) \
89         $(GLIB_LIBS) \
90         $(LIBSOUP_LIBS) \
91         $(FREETYPE_LIBS)
93 Programs_DumpRenderTree_LDFLAGS = \
94         -no-fast-install \
95         -no-install
97 # clean target
98 CLEANFILES += \
99         Programs/GtkLauncher \
100         Programs/DumpRenderTree
103 if TARGET_X11
105 # Build TestNetscapePlugin only for X11
106 # since we don't support plugins for non-X11 builds at the moment.
107 noinst_LTLIBRARIES += \
108         TestNetscapePlugin/libtestnetscapeplugin.la
110 dumprendertree_cppflags += \
111         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
112         -DFONTS_CONF_FILE=\"${shell pwd}/${srcdir}/WebKitTools/DumpRenderTree/gtk/fonts.conf\"
114 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
115         -I$(srcdir)/WebKitTools/DumpRenderTree \
116         -I$(srcdir)/WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
117         -I$(srcdir)/WebCore \
118         -I$(srcdir)/WebCore/bridge \
119         -I$(srcdir)/WebCore/plugins \
120         -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj \
121         $(global_cppflags) \
122         $(javascriptcore_cppflags)
124 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
125         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
126         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
127         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
128         WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp \
129         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp \
130         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h \
131         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp \
132         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h
134 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
135         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
136         $(no_undefined) \
137         -avoid-version \
138         -module
140 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
141 endif