Git init
[framework/web/webkit-efl.git] / Tools / GNUmakefile.am
1 noinst_PROGRAMS += \
2         Programs/DumpRenderTree \
3         Programs/GtkLauncher
4
5 if ENABLE_WEBKIT2
6 noinst_PROGRAMS += \
7         Programs/GtkLauncher2
8
9 # FIXME: should this dependency be automatically identified by
10 # automake somehow?
11 Tools/GtkLauncher/main.c: $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.cpp
12 endif
13
14 # GtkLauncher
15 gtklauncher_sources = \
16         Tools/GtkLauncher/main.c
17
18 gtklauncher_cflags = \
19         -fno-strict-aliasing \
20         $(global_cflags) \
21         $(GTK_CFLAGS) \
22         $(LIBSOUP_CFLAGS)
23
24 gtklauncher_ldadd = \
25         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
26         $(GTK_LIBS) \
27         $(GLIB_LIBS) \
28         $(LIBSOUP_LIBS) \
29         $(WINMM_LIBS)
30
31 gtklauncher_ldflags = \
32         -no-fast-install \
33         -no-install
34
35 Programs_GtkLauncher_CPPFLAGS = \
36         -I$(srcdir)/Source/WebKit/gtk \
37         -I$(srcdir)/Source/WebCore/platform/network/soup/cache/ \
38         -I$(top_builddir)/Source/WebKit/gtk \
39         -I$(top_builddir)/DerivedSources \
40         $(global_cppflags) \
41         $(javascriptcore_cppflags)
42
43 Programs_GtkLauncher_SOURCES = \
44         $(gtklauncher_sources)
45
46 Programs_GtkLauncher_CFLAGS = \
47         -ansi \
48         $(gtklauncher_cflags)
49
50 Programs_GtkLauncher_LDADD = \
51         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
52         $(gtklauncher_ldadd)
53
54 Programs_GtkLauncher_LDFLAGS = \
55         $(gtklauncher_ldflags)
56
57 if ENABLE_WEBKIT2
58 Programs_GtkLauncher2_CPPFLAGS = \
59         -I$(srcdir)/Source \
60         -I$(top_builddir)/DerivedSources/WebKit2/include \
61         -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \
62         -I$(top_builddir)/Source/WebKit2/UIProcess/API/gtk \
63         -I$(srcdir)/Source/WebKit/gtk \
64         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk \
65         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/include \
66         -I$(top_builddir)/Source/WebKit/gtk \
67         -I$(top_builddir)/DerivedSources \
68         $(global_cppflags) \
69         $(javascriptcore_cppflags)
70
71 Programs_GtkLauncher2_SOURCES = \
72         $(gtklauncher_sources)
73
74 Programs_GtkLauncher2_CFLAGS = \
75         -DWEBKIT2=\"1\" \
76         $(gtklauncher_cflags)
77
78 Programs_GtkLauncher2_LDADD = \
79         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
80         $(gtklauncher_ldadd)
81
82 Programs_GtkLauncher2_LDFLAGS = \
83         $(gtklauncher_ldflags)
84
85 endif
86
87 # libWebCoreInternals
88 # We must split off the window.internals implementation into a separate
89 # convenience library because it requires a different include path order
90 # to prefer the WebCore config.h over the DumpRenderTree config.h
91 noinst_LTLIBRARIES += libWebCoreInternals.la
92 libWebCoreInternals_la_SOURCES = \
93         Source/WebCore/bindings/js/JSDOMWrapper.cpp \
94         Source/WebCore/bindings/js/JSDOMWrapper.h \
95         Source/WebCore/testing/Internals.cpp \
96         Source/WebCore/testing/Internals.h \
97         Source/WebCore/testing/js/WebCoreTestSupport.cpp \
98         Source/WebCore/testing/js/WebCoreTestSupport.h
99
100 libwebcoreinternals_built_sources += \
101         DerivedSources/WebCore/JSInternals.cpp \
102         DerivedSources/WebCore/JSInternals.h
103 nodist_libWebCoreInternals_la_SOURCES = $(libwebcoreinternals_built_sources)
104 BUILT_SOURCES += $(libwebcoreinternals_built_sources)
105
106 libWebCoreInternals_la_CPPFLAGS = \
107         $(global_cppflags) \
108         $(webcore_cppflags) \
109         $(webcoregtk_cppflags) \
110         $(javascriptcore_cppflags) \
111         $(CAIRO_CFLAGS) \
112         $(LIBSOUP_CFLAGS) \
113         -I$(top_builddir)/DerivedSources \
114         -I$(top_builddir)/DerivedSources/WebCore
115
116 libWebCoreInternals_la_CXXFLAGS = \
117         $(global_cxxflags) \
118         $(libWebCoreInternals_la_CFLAGS)
119
120 libWebCoreInternals_la_CFLAGS = \
121         -fno-strict-aliasing \
122         $(javascriptcore_cflags)
123
124 # DumpRenderTree
125 Programs_DumpRenderTree_CPPFLAGS = \
126         $(global_cppflags) \
127         -I$(srcdir)/Tools/DumpRenderTree \
128         -I$(srcdir)/Tools/DumpRenderTree/cairo \
129         -I$(srcdir)/Tools/DumpRenderTree/gtk \
130         -I$(srcdir)/Source/WebKit/gtk \
131         -I$(srcdir)/Source/WebCore/platform/gtk \
132         -I$(srcdir)/Source/WebCore/testing/js \
133         -I$(top_builddir)/DerivedSources \
134         -I$(top_builddir)/Source/WebKit/gtk \
135         $(javascriptcore_cppflags)
136
137 if TARGET_X11
138 Programs_DumpRenderTree_CPPFLAGS += \
139         -DTEST_PLUGIN_DIR=\"${shell pwd}/${top_builddir}/TestNetscapePlugin/.libs\" \
140         -DFONTS_CONF_DIR=\"${shell pwd}/${srcdir}/Tools/DumpRenderTree/gtk/fonts\"
141 endif
142
143 Programs_DumpRenderTree_SOURCES = \
144         Tools/DumpRenderTree/DumpRenderTree.h \
145         Tools/DumpRenderTree/DumpRenderTreePrefix.h \
146         Tools/DumpRenderTree/AccessibilityController.cpp \
147         Tools/DumpRenderTree/AccessibilityController.h \
148         Tools/DumpRenderTree/AccessibilityTextMarker.cpp \
149         Tools/DumpRenderTree/AccessibilityTextMarker.h \
150         Tools/DumpRenderTree/AccessibilityUIElement.cpp \
151         Tools/DumpRenderTree/AccessibilityUIElement.h \
152         Tools/DumpRenderTree/CyclicRedundancyCheck.cpp \
153         Tools/DumpRenderTree/CyclicRedundancyCheck.h \
154         Tools/DumpRenderTree/GCController.cpp \
155         Tools/DumpRenderTree/GCController.h \
156         Tools/DumpRenderTree/JavaScriptThreading.h \
157         Tools/DumpRenderTree/LayoutTestController.cpp \
158         Tools/DumpRenderTree/LayoutTestController.h \
159         Tools/DumpRenderTree/PixelDumpSupport.cpp \
160         Tools/DumpRenderTree/PixelDumpSupport.h \
161         Tools/DumpRenderTree/WorkQueue.cpp \
162         Tools/DumpRenderTree/WorkQueue.h \
163         Tools/DumpRenderTree/WorkQueueItem.h \
164         Tools/DumpRenderTree/config.h \
165         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp \
166         Tools/DumpRenderTree/cairo/PixelDumpSupportCairo.h \
167         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.h \
168         Tools/DumpRenderTree/gtk/AccessibilityCallbacks.cpp \
169         Tools/DumpRenderTree/gtk/AccessibilityControllerGtk.cpp \
170         Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp \
171         Tools/DumpRenderTree/gtk/DumpRenderTree.cpp \
172         Tools/DumpRenderTree/gtk/DumpRenderTreeGtk.h \
173         Tools/DumpRenderTree/gtk/EditingCallbacks.h \
174         Tools/DumpRenderTree/gtk/EditingCallbacks.cpp \
175         Tools/DumpRenderTree/gtk/EventSender.h \
176         Tools/DumpRenderTree/gtk/EventSender.cpp \
177         Tools/DumpRenderTree/gtk/GCControllerGtk.cpp \
178         Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp \
179         Tools/DumpRenderTree/gtk/PixelDumpSupportGtk.cpp \
180         Tools/DumpRenderTree/gtk/PlainTextController.cpp \
181         Tools/DumpRenderTree/gtk/PlainTextController.h \
182         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp \
183         Tools/DumpRenderTree/gtk/SelfScrollingWebKitWebView.h \
184         Tools/DumpRenderTree/gtk/TextInputController.h \
185         Tools/DumpRenderTree/gtk/TextInputController.cpp \
186         Tools/DumpRenderTree/gtk/WorkQueueItemGtk.cpp \
187         Source/WebCore/platform/gtk/GtkVersioning.c
188
189 Programs_DumpRenderTree_CXXFLAGS = \
190         $(global_cxxflags) \
191         $(Programs_DumpRenderTree_CFLAGS)
192
193 Programs_DumpRenderTree_CFLAGS = \
194         -fno-strict-aliasing \
195         $(global_cflags) \
196         $(GLOBALDEPS_CFLAGS) \
197         $(CAIRO_CFLAGS) \
198         $(GTK_CFLAGS) \
199         $(LIBSOUP_CFLAGS)
200
201 Programs_DumpRenderTree_LDADD = \
202         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
203         libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
204         libWebCoreInternals.la \
205         $(GLOBALDEPS_LIBS) \
206         $(CAIRO_LIBS) \
207         $(GTK_LIBS) \
208         $(GLIB_LIBS) \
209         $(LIBSOUP_LIBS) \
210         $(FREETYPE_LIBS) \
211         $(WINMM_LIBS)
212
213 Programs_DumpRenderTree_LDFLAGS = \
214         -no-fast-install \
215         -no-install
216
217 # clean target
218 CLEANFILES += \
219         Programs/DumpRenderTree \
220         Programs/GtkLauncher
221
222 if ENABLE_WEBKIT2
223 CLEANFILES += \
224         Programs/GtkLauncher2
225 endif
226
227 if TARGET_X11
228
229 # Build TestNetscapePlugin only for X11
230 # since we don't support plugins for non-X11 builds at the moment.
231 noinst_LTLIBRARIES += \
232         TestNetscapePlugin/libtestnetscapeplugin.la
233
234 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS = \
235         -I$(srcdir)/Tools/DumpRenderTree \
236         -I$(srcdir)/Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders \
237         -I$(srcdir)/Source/WebCore \
238         -I$(srcdir)/Source/WebCore/bridge \
239         -I$(srcdir)/Source/WebCore/plugins \
240         -I$(srcdir)/Tools/DumpRenderTree/TestNetscapePlugIn \
241         $(global_cppflags) \
242         $(javascriptcore_cppflags)
243
244 # For the Gtk port we want to use XP_UNIX both on X11 and Mac
245 if !TARGET_WIN32
246 TestNetscapePlugin_libtestnetscapeplugin_la_CPPFLAGS += -DXP_UNIX
247 endif
248
249 TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
250         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
251         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npfunctions.h \
252         Tools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npruntime.h \
253         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp \
254         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp \
255         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/FormValue.cpp \
256         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \
257         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp \
258         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \
259         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \
260         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp \
261         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp \
262         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \
263         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp \
264         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp \
265         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp \
266         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp \
267         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/PrivateBrowsing.cpp \
268         Tools/DumpRenderTree/TestNetscapePlugIn/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp \
269         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp \
270         Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h \
271         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp \
272         Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h \
273         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.cpp \
274         Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h \
275         Tools/DumpRenderTree/TestNetscapePlugIn/main.cpp
276
277 TestNetscapePlugin_libtestnetscapeplugin_la_LDFLAGS = \
278         -rpath ${shell pwd}/$(top_builddir)/../unix/TestNetscapePlugin/.libs \
279         $(no_undefined) \
280         -avoid-version \
281         -module
282
283 CLEANFILES += TestNetscapePlugin/libtestnetscapeplugin.la
284 endif