OSDN Git Service

Merge commit 'goog/master' into merge
[android-x86/external-webkit.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         $(global_cflags) \
19         $(GTK_CFLAGS) \
20         $(LIBSOUP_CFLAGS)
21
22 Programs_GtkLauncher_LDADD = \
23         libwebkit-1.0.la \
24         $(GTK_LIBS) \
25         $(GLIB_LIBS)
26
27 Programs_GtkLauncher_LDFLAGS = \
28         -no-fast-install \
29         -no-install
30
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)
39
40 Programs_DumpRenderTree_CPPFLAGS = $(dumprendertree_cppflags)
41
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/GCControllerGtk.cpp \
64         WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
65         WebKitTools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp
66
67 Programs_DumpRenderTree_CXXFLAGS = \
68         $(global_cxxflags) \
69         $(dumprendertree_cppflags) \
70         $(Programs_DumpRenderTree_CFLAGS)
71
72 Programs_DumpRenderTree_CFLAGS = \
73         -fno-strict-aliasing \
74         $(dumprendertree_cppflags) \
75         $(global_cflags) \
76         $(GLOBALDEPS_CFLAGS) \
77         $(CAIRO_CFLAGS) \
78         $(GTK_CFLAGS) \
79         $(LIBSOUP_CFLAGS)
80
81 Programs_DumpRenderTree_LDADD = \
82         libwebkit-1.0.la \
83         libJavaScriptCore.la \
84         $(GLOBALDEPS_LIBS) \
85         $(CAIRO_LIBS) \
86         $(GTK_LIBS) \
87         $(GLIB_LIBS) \
88         $(LIBSOUP_LIBS)
89
90 Programs_DumpRenderTree_LDFLAGS = \
91         -no-fast-install \
92         -no-install
93
94 # clean target
95 CLEANFILES += \
96         Programs/GtkLauncher \
97         Programs/DumpRenderTree
98
99
100 if TARGET_X11
101
102 # Build TestNetscapePlugin only for X11
103 # since we don't support plugins for non-X11 builds at the moment.
104 noinst_LTLIBRARIES += \
105         TestNetscapePlugin/libtestnetscapeplugin.la
106
107 dumprendertree_cppflags += \
108         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\"
109
110 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
111         -I$(srcdir)/WebKitTools/DumpRenderTree \
112         -I$(srcdir)/WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders \
113         -I$(srcdir)/WebCore \
114         -I$(srcdir)/WebCore/bridge \
115         -I$(srcdir)/WebCore/plugins \
116         -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj \
117         $(global_cppflags) \
118         $(javascriptcore_cppflags)
119
120 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
121         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
122         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
123         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
124         WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp \
125         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp \
126         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h \
127         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.cpp \
128         WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/TestObject.h
129
130 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
131         -rpath ${shell pwd}/$(top_builddir)/TestNetscapePlugin/.libs \
132         $(no_undefined) \
133         -avoid-version \
134         -module
135
136 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
137 endif