Close CBHM window when tapping except editfield using USB Keyboard
[framework/web/webkit-efl.git] / Source / WebKit2 / GNUmakefile.am
1 include $(srcdir)/Source/WebKit2/GNUmakefile.list.am
2
3 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
4         $(webkit2_h_api)
5
6 libwebkit2gtkincludedir = $(libwebkitgtkincludedir)/webkit2
7 nodist_libwebkit2gtkinclude_HEADERS = \
8         DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitEnumTypes.h \
9         DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h
10
11 libwebkit2gtkinclude_HEADERS = \
12         $(webkit2gtk_h_api)
13
14 nodist_libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
15         $(webkit2_built_sources) \
16         $(webkit2gtk_built_sources)
17
18 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
19         $(webkit2_sources)
20
21 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
22         -fno-strict-aliasing \
23         $(global_cppflags) \
24         -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
25         -I$(srcdir)/Source/WebKit/gtk \
26         -I$(srcdir)/Source/WebKit2 \
27         -I$(srcdir)/Source/WebKit2/gtk \
28         -I$(srcdir)/Source/WebKit2/Platform \
29         -I$(srcdir)/Source/WebKit2/Platform/CoreIPC \
30         -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/gtk \
31         -I$(srcdir)/Source/WebKit2/Platform/gtk \
32         -I$(srcdir)/Source/WebKit2/PluginProcess \
33         -I$(srcdir)/Source/WebKit2/Shared \
34         -I$(srcdir)/Source/WebKit2/Shared/API \
35         -I$(srcdir)/Source/WebKit2/Shared/API/c \
36         -I$(srcdir)/Source/WebKit2/Shared/API/c/gtk \
37         -I$(srcdir)/Source/WebKit2/Shared/API/c/soup \
38         -I$(srcdir)/Source/WebKit2/Shared/CoreIPCSupport \
39         -I$(srcdir)/Source/WebKit2/Shared/gtk \
40         -I$(srcdir)/Source/WebKit2/Shared/Plugins \
41         -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape \
42         -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/x11 \
43         -I$(srcdir)/Source/WebKit2/Shared/soup \
44         -I$(srcdir)/Source/WebKit2/UIProcess \
45         -I$(srcdir)/Source/WebKit2/UIProcess/API \
46         -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
47         -I$(srcdir)/Source/WebKit2/UIProcess/API/C/gtk \
48         -I$(srcdir)/Source/WebKit2/UIProcess/API/C/soup \
49         -I$(srcdir)/Source/WebKit2/UIProcess/API/cpp \
50         -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \
51         -I$(srcdir)/Source/WebKit2/UIProcess/Authentication \
52         -I$(srcdir)/Source/WebKit2/UIProcess/Downloads \
53         -I$(srcdir)/Source/WebKit2/UIProcess/gtk \
54         -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \
55         -I$(srcdir)/Source/WebKit2/UIProcess/Launcher/gtk \
56         -I$(srcdir)/Source/WebKit2/UIProcess/Notifications \
57         -I$(srcdir)/Source/WebKit2/UIProcess/Plugins \
58         -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/gtk \
59         -I$(srcdir)/Source/WebKit2/UIProcess/soup \
60         -I$(srcdir)/Source/WebKit2/WebProcess \
61         -I$(srcdir)/Source/WebKit2/WebProcess/ApplicationCache \
62         -I$(srcdir)/Source/WebKit2/WebProcess/Authentication \
63         -I$(srcdir)/Source/WebKit2/WebProcess/Battery \
64         -I$(srcdir)/Source/WebKit2/WebProcess/Cookies \
65         -I$(srcdir)/Source/WebKit2/WebProcess/Downloads \
66         -I$(srcdir)/Source/WebKit2/WebProcess/Downloads/soup \
67         -I$(srcdir)/Source/WebKit2/WebProcess/FullScreen \
68         -I$(srcdir)/Source/WebKit2/WebProcess/Geolocation \
69         -I$(srcdir)/Source/WebKit2/WebProcess/gtk \
70         -I$(srcdir)/Source/WebKit2/WebProcess/IconDatabase \
71         -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle \
72         -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API \
73         -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/c \
74         -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/DOM \
75         -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/gtk \
76         -I$(srcdir)/Source/WebKit2/WebProcess/KeyValueStorage \
77         -I$(srcdir)/Source/WebKit2/WebProcess/Launching \
78         -I$(srcdir)/Source/WebKit2/WebProcess/MediaCache \
79         -I$(srcdir)/Source/WebKit2/WebProcess/NetworkInfo \
80         -I$(srcdir)/Source/WebKit2/WebProcess/Notifications \
81         -I$(srcdir)/Source/WebKit2/WebProcess/ResourceCache \
82         -I$(srcdir)/Source/WebKit2/WebProcess/soup \
83         -I$(srcdir)/Source/WebKit2/WebProcess/Plugins \
84         -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape \
85         -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/gtk \
86         -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport \
87         -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/gtk \
88         -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/soup \
89         -I$(srcdir)/Source/WebKit2/WebProcess/WebPage \
90         -I$(srcdir)/Source/WebKit2/WebProcess/WebPage/gtk \
91         -I$(top_builddir)/DerivedSources/WebKit2 \
92         -I$(top_builddir)/DerivedSources/WebKit2/include \
93         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk \
94         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/include \
95         -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/webkit2 \
96         -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \
97         -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
98         -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \
99         -DLIBEXECDIR=\""$(libexecdir)"\" \
100         -DWEBKIT2_COMPILATION \
101         $(webcore_cppflags) \
102         $(webcoregtk_cppflags) \
103         $(javascriptcore_cppflags) \
104         $(COVERAGE_CFLAGS) \
105         $(GEOCLUE_CFLAGS) \
106         $(GLIB_CFLAGS) \
107         $(GTK_CFLAGS) \
108         $(GTK_UNIX_PRINTING_CFLAGS) \
109         $(LIBSOUP_CFLAGS) \
110         $(UNICODE_CFLAGS) \
111         $(XT_CFLAGS)
112
113 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
114         $(global_cxxflags)
115
116 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
117         $(global_cflags)
118
119 if ENABLE_WEBKIT2
120 # Shared libraries
121 lib_LTLIBRARIES += \
122         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
123 endif
124
125 # Artificial dependency to make sure libwebkit2gtk and libwebkitgtk are not linked at the same time
126 # The variable creation is to avoid having automake override the entire rule instead of adding the
127 # dependency.
128 webkit2gtk_lib_for_dep = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
129 $(webkit2gtk_lib_for_dep): libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
130
131 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = \
132         $(libwebkit2gtkincludedir)/WebKit2
133
134 # For the Gtk port we want to use XP_UNIX both in X11 and Mac
135 if !TARGET_WIN32
136 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
137         -DXP_UNIX
138 endif
139
140 # Add MOZ_X11 for X11 targets only
141 if TARGET_X11
142 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
143         -DMOZ_X11
144 endif
145
146 # Plugin process
147 if ENABLE_PLUGIN_PROCESS
148 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
149         -DENABLE_PLUGIN_PROCESS=1
150 endif
151
152 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
153         -version-info @LIBWEBKIT2GTK_VERSION@ \
154         $(version_script) \
155         $(no_undefined)
156
157 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
158         -lpthread \
159         libWebCore.la \
160         libWebCoreModules.la \
161         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
162         libWebCoreGtk.la \
163         $(CAIRO_LIBS) \
164         $(COVERAGE_LDFLAGS) \
165         $(GAIL_LIBS) \
166         $(GAMEPAD_LIBS) \
167         $(GEOCLUE_LIBS) \
168         $(GLIB_LIBS) \
169         $(GSTREAMER_LIBS) \
170         $(GTK_LIBS) \
171         $(GTK_UNIX_PRINTING_LIBS) \
172         $(JPEG_LIBS) \
173         $(LIBSOUP_LIBS) \
174         $(LIBXML_LIBS) \
175         $(LIBXSLT_LIBS) \
176         $(OPENGL_LIBS) \
177         $(PANGO_LIBS) \
178         $(PNG_LIBS) \
179         $(SQLITE3_LIBS) \
180         $(UNICODE_LIBS) \
181         $(XRENDER_LIBS) \
182         $(XT_LIBS) \
183         $(ZLIB_LIBS)
184
185 if ENABLE_SPELLCHECK
186 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS += \
187         -DENABLE_SPELLCHECK=1 \
188         $(ENCHANT_CFLAGS)
189
190 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \
191         $(ENCHANT_LIBS)
192 endif
193
194
195 if ENABLE_WEBKIT2
196 pkgconfig_DATA += Source/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc
197 endif
198
199 # WebKit2 specific variables
200 forwarding_headers := $(GENSOURCES_WEBKIT2)/include
201 generate-webkit2-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(libWebKit2_la_SOURCES)
202         $(AM_V_GEN)$(PERL) $< $(WebKit2) $(forwarding_headers) gtk
203         $(AM_V_GEN)$(PERL) $< $(WebKit2) $(forwarding_headers) soup
204
205 BUILT_SOURCES += generate-webkit2-forwarding-headers
206
207 $(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2: $(libwebkit2gtkinclude_HEADERS)
208         $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/include \
209         && ln -n -s -f ${shell pwd}/$(WebKit2)/UIProcess/API/gtk $@
210
211 BUILT_SOURCES += $(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2
212
213 vpath %.messages.in = \
214         $(WebKit2)/PluginProcess \
215         $(WebKit2)/Shared/Plugins \
216         $(WebKit2)/UIProcess \
217         $(WebKit2)/UIProcess/ApplicationCache \
218         $(WebKit2)/UIProcess/Downloads \
219         $(WebKit2)/UIProcess/Geolocation \
220         $(WebKit2)/UIProcess/Notifications \
221         $(WebKit2)/UIProcess/Plugins \
222         $(WebKit2)/UIProcess/ResourceCache \
223         $(WebKit2)/UIProcess/soup \
224         $(WebKit2)/WebProcess \
225         $(WebKit2)/WebProcess/ApplicationCache \
226         $(WebKit2)/WebProcess/Authentication \
227         $(WebKit2)/WebProcess/Battery \
228         $(WebKit2)/WebProcess/Cookies \
229         $(WebKit2)/WebProcess/FullScreen \
230         $(WebKit2)/WebProcess/Geolocation \
231         $(WebKit2)/WebProcess/IconDatabase \
232         $(WebKit2)/WebProcess/KeyValueStorage \
233         $(WebKit2)/WebProcess/MediaCache \
234         $(WebKit2)/WebProcess/NetworkInfo \
235         $(WebKit2)/WebProcess/Notifications \
236         $(WebKit2)/WebProcess/Plugins \
237         $(WebKit2)/WebProcess/ResourceCache \
238         $(WebKit2)/WebProcess/WebCoreSupport \
239         $(WebKit2)/WebProcess/WebPage \
240         $(WebKit2)/WebProcess/soup
241
242 message_gen_scripts = \
243         $(WebKit2)/Scripts/generate-message-receiver.py \
244         $(WebKit2)/Scripts/generate-messages-header.py \
245         $(WebKit2)/Scripts/webkit2/__init__.py \
246         $(WebKit2)/Scripts/webkit2/messages.py \
247         $(WebKit2)/Scripts/webkit2/model.py \
248         $(WebKit2)/Scripts/webkit2/parser.py
249
250 # Message header generation
251 DerivedSources/WebKit2/%MessageReceiver.cpp: %.messages.in $(message_gen_scripts)
252         $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
253
254 DerivedSources/WebKit2/%Messages.h: %.messages.in $(message_gen_scripts)
255         $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-messages-header.py $< > $@
256
257 webkit2gtk_built_headers_dir := $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2
258 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h: stamp-webkit2enumtypes
259         @true
260
261 stamp-webkit2enumtypes: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am
262         $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \
263         && glib-mkenums \
264                         --fhead "#if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION)\n" \
265                         --fhead "#error \"Only <webkit2/webkit2.h> can be included directly.\"\n" \
266                         --fhead "#endif\n\n" \
267                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
268                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
269                         --fhead "#include <glib-object.h>\n\n" \
270                         --fhead "#include <webkit2/WebKitDefines.h>\n\n" \
271                         --fhead "G_BEGIN_DECLS\n\n" \
272                         --ftail "G_END_DECLS\n\n" \
273                         --ftail "#endif\n" \
274                         --fprod "#include <webkit2/@basename@>\n\n" \
275                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
276                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
277                 $(libwebkit2gtkinclude_HEADERS) | \
278                 sed 's,web_kit,webkit,' | \
279                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
280                 > wk2-xgen-gth \
281         && (cmp -s wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h || cp wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h) \
282         && rm -f wk2-xgen-gth \
283         && echo timestamp > $(@F)
284
285 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.cpp: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am
286         $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \
287         && glib-mkenums \
288                         --fhead "#include <config.h>\n" \
289                         --fhead "#include <glib-object.h>\n" \
290                         --fhead "#include \"$(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h\"\n\n" \
291                         --fhead "extern \"C\" {\n\n" \
292                         --fprod "\n/* Enumerations from \"@filename@\". */" \
293                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
294                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
295                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
296                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
297                         --vtail "    static GType type = 0;\n\n" \
298                         --vtail "    if (!type)\n" \
299                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
300                         --vtail "    return type;\n}\n\n" \
301                         --ftail "}\n" \
302                 $(libwebkit2gtkinclude_HEADERS) | \
303                 sed 's,web_kit,webkit,' \
304                 > wk2-xgen-gtc \
305         && cp wk2-xgen-gtc $@ \
306         && rm -f wk2-xgen-gtc
307
308 WEBKIT2_MARSHAL_LIST = $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list
309
310 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.cpp: stamp-webkit2marshal.cpp
311         @true
312 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.h: stamp-webkit2marshal.h
313         @true
314
315 stamp-webkit2marshal.cpp: $(WEBKIT2_MARSHAL_LIST)
316         $(AM_V_GEN) echo "extern \"C\" {" > $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
317         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --body >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
318         echo '}' >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
319         echo timestamp > $(@F)
320
321 stamp-webkit2marshal.h: $(WEBKIT2_MARSHAL_LIST)
322         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --header > $(webkit2gtk_built_headers_dir)/WebKitMarshal.h && \
323         echo timestamp > $(@F)
324
325 CLEANFILES += \
326         $(BUILT_SOURCES) \
327         $(top_builddir)/stamp-webkit2enumtypes \
328         $(top_builddir)/stamp-webkit2marshal.cpp \
329         $(top_builddir)/stamp-webkit2marshal.h \
330         $(top_builddir)/Programs/WebKitWebProcess
331
332 DISTCLEANFILES += \
333         $(top_builddir)/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc
334
335 if ENABLE_WEBKIT2
336 libexec_PROGRAMS += \
337         Programs/WebKitWebProcess
338 endif
339
340 Programs_WebKitWebProcess_CPPFLAGS = \
341         -I$(srcdir)/Source/WebKit2 \
342         -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
343         -I$(srcdir)/Source/WebKit2/WebProcess/gtk \
344         -I$(top_builddir)/DerivedSources/WebKit2 \
345         -I$(top_builddir)/DerivedSources/WebKit2/include \
346         -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
347         $(global_cppflags) \
348         $(javascriptcore_cppflags)
349
350 Programs_WebKitWebProcess_CFLAGS = \
351         $(global_cflags) \
352         $(CAIRO_CFLAGS) \
353         $(GLIB_CFLAGS) \
354         $(GTK_CFLAGS) \
355         $(GTK_UNIX_PRINTING_CFLAGS) \
356         $(LIBSOUP_CFLAGS) \
357         $(ZLIB_CFLAGS)
358
359 Programs_WebKitWebProcess_SOURCES = \
360         Source/WebKit2/gtk/MainGtk.cpp
361
362 Programs_WebKitWebProcess_LDADD = \
363         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
364         libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
365         $(GLIB_LIBS) \
366         $(GTK_LIBS) \
367         $(GTK_UNIX_PRINTING_LIBS) \
368         $(LIBSOUP_LIBS)
369
370 # PluginProcess
371 if ENABLE_PLUGIN_PROCESS
372
373 # We need to make sure plugin process is always built with gtk2, because plugins like flash
374 # still use gtk2. Since webcore was built with gtk3, we need to build webcoregtk sources again with gtk2
375 noinst_LTLIBRARIES += \
376         libWebCoreGtk2.la
377
378 libWebCoreGtk2_la_SOURCES = \
379         $(webcoregtk_sources)
380
381 libWebCoreGtk2_la_CXXFLAGS = \
382         $(SYMBOL_VISIBILITY_INLINES) \
383         $(global_cxxflags)
384
385 libWebCoreGtk2_la_CFLAGS = \
386         $(SYMBOL_VISIBILITY) \
387         $(global_cflags)
388
389 libWebCoreGtk2_la_CPPFLAGS = \
390         -DBUILDING_WEBKIT \
391         -DGTK_API_VERSION_2=1 \
392         $(global_cppflags) \
393         $(webcore_cppflags) \
394         $(webcoregtk_cppflags) \
395         $(javascriptcore_cppflags) \
396         -fno-strict-aliasing \
397         $(COVERAGE_CFLAGS) \
398         $(ENCHANT_CFLAGS) \
399         $(GEOCLUE_CFLAGS) \
400         $(GLIB_CFLAGS) \
401         $(GSTREAMER_CFLAGS) \
402         $(GTK2_CFLAGS) \
403         $(LIBSOUP_CFLAGS) \
404         $(LIBXML_CFLAGS) \
405         $(LIBXSLT_CFLAGS) \
406         $(SQLITE3_CFLAGS) \
407         $(UNICODE_CFLAGS) \
408         $(XRENDER_CFLAGS) \
409         $(XT_CFLAGS)
410
411 libexec_PROGRAMS += \
412         Programs/WebKitPluginProcess
413
414 # Serialize linking of the plugin process with both webkit libraries.
415 plugin_process_for_dep = Programs/WebKitPluginProcess
416 $(plugin_process_for_dep): libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
417
418 Programs_WebKitPluginProcess_CPPFLAGS = \
419         -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
420         -I$(srcdir)/Source/WebKit2 \
421         -I$(srcdir)/Source/WebKit2/Platform \
422         -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/ \
423         -I$(srcdir)/Source/WebKit2/PluginProcess/ \
424         -I$(srcdir)/Source/WebKit2/PluginProcess/gtk \
425         -I$(srcdir)/Source/WebKit2/Shared \
426         -I$(srcdir)/Source/WebKit2/Shared/Plugins \
427         -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/ \
428         -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/ \
429         -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \
430         -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/ \
431         -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/ \
432         -I$(srcdir)/Source/WebKit2/Shared/soup \
433         -I$(top_builddir)/DerivedSources/WebKit2 \
434         -I$(top_builddir)/DerivedSources/WebKit2/include \
435         -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \
436         -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
437         -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \
438         -DBUILDING_WEBKIT \
439         -DGTK_API_VERSION_2=1 \
440         -DENABLE_PLUGIN_PROCESS=1 \
441         -DLIBEXECDIR=\""$(libexecdir)"\" \
442         $(global_cppflags) \
443         $(webcore_cppflags) \
444         $(webcoregtk_cppflags) \
445         $(javascriptcore_cppflags) \
446         -fno-strict-aliasing \
447         $(CAIRO_CFLAGS) \
448         $(GLIB_CFLAGS) \
449         $(GSTREAMER_CFLAGS) \
450         $(GTK2_CFLAGS) \
451         $(LIBSOUP_CFLAGS) \
452         $(UNICODE_CFLAGS)
453
454 Programs_WebKitPluginProcess_CFLAGS = \
455         $(SYMBOL_VISIBILITY) \
456         $(global_cflags) \
457         $(CAIRO_CFLAGS) \
458         $(GLIB_CFLAGS) \
459         $(GSTREAMER_CFLAGS) \
460         $(GTK2_CFLAGS) \
461         $(LIBSOUP_CFLAGS) \
462         $(UNICODE_CFLAGS)
463
464 nodist_Programs_WebKitPluginProcess_SOURCES = \
465         $(webkit2_plugin_process_built_sources)
466
467 Programs_WebKitPluginProcess_SOURCES = \
468         $(webkit2_plugin_process_sources)
469
470 Programs_WebKitPluginProcess_LDADD = \
471         -lpthread \
472         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
473         libWebCore.la \
474         libWebCoreGtk2.la \
475         $(CAIRO_LIBS) \
476         $(COVERAGE_LDFLAGS) \
477         $(GEOCLUE_LIBS) \
478         $(GLIB_LIBS) \
479         $(GSTREAMER_LIBS) \
480         $(GTK2_LIBS) \
481         $(JPEG_LIBS) \
482         $(LIBSOUP_LIBS) \
483         $(LIBXML_LIBS) \
484         $(LIBXSLT_LIBS) \
485         $(OLE32_LIBS) \
486         $(OPENGL_LIBS) \
487         $(PANGO_LIBS) \
488         $(PNG_LIBS) \
489         $(SHLWAPI_LIBS) \
490         $(SQLITE3_LIBS) \
491         $(UNICODE_LIBS) \
492         $(XRENDER_LIBS) \
493         $(XT_LIBS) \
494         $(WINMM_LIBS) \
495         $(ZLIB_LIBS)
496
497 # libWebCore and libWebCoreModules have circular dependencies that only seem to
498 # be a problem when linking the plugin process; we don't really care about
499 # modules for the plugin process, though, so to work around that we ignore
500 # internal unresolved symbols
501 Programs_WebKitPluginProcess_LDFLAGS = \
502         -Wl,--unresolved-symbols=ignore-in-object-files
503
504 Programs_WebKitPluginProcess_CXXFLAGS = \
505         $(SYMBOL_VISIBILITY_INLINES) \
506         $(global_cxxflags)
507
508 endif # ENABLE_PLUGIN_PROCESS
509
510 EXTRA_DIST += \
511         $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
512         $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-sections.txt \
513         $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk.types \
514         $(WebKit2)/Scripts/generate-message-receiver.py \
515         $(WebKit2)/Scripts/generate-messages-header.py \
516         $(WebKit2)/Scripts/webkit2/__init__.py \
517         $(WebKit2)/Scripts/webkit2/messages.py \
518         $(WebKit2)/Scripts/webkit2/model.py \
519         $(WebKit2)/Scripts/webkit2/parser.py \
520         $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list \
521         $(WebKit2)/Scripts/generate-forwarding-headers.pl \
522         $(shell ls $(WebKit2)/PluginProcess/*.in) \
523         $(shell ls $(WebKit2)/Shared/Plugins/*.in) \
524         $(shell ls $(WebKit2)/UIProcess/*.in) \
525         $(shell ls $(WebKit2)/UIProcess/Downloads/*.in) \
526         $(shell ls $(WebKit2)/UIProcess/Notifications/*.in) \
527         $(shell ls $(WebKit2)/UIProcess/Plugins/*.in) \
528         $(shell ls $(WebKit2)/UIProcess/soup/*.in) \
529         $(shell ls $(WebKit2)/WebProcess/*.in) \
530         $(shell ls $(WebKit2)/WebProcess/ApplicationCache/*.in) \
531         $(shell ls $(WebKit2)/WebProcess/Authentication/*.in) \
532         $(shell ls $(WebKit2)/WebProcess/Battery/*.in) \
533         $(shell ls $(WebKit2)/WebProcess/Cookies/*.in) \
534         $(shell ls $(WebKit2)/WebProcess/FullScreen/*.in) \
535         $(shell ls $(WebKit2)/WebProcess/Geolocation/*.in) \
536         $(shell ls $(WebKit2)/WebProcess/IconDatabase/*.in) \
537         $(shell ls $(WebKit2)/WebProcess/KeyValueStorage/*.in) \
538         $(shell ls $(WebKit2)/WebProcess/MediaCache/*.in) \
539         $(shell ls $(WebKit2)/WebProcess/NetworkInfo/*.in) \
540         $(shell ls $(WebKit2)/WebProcess/Notifications/*.in) \
541         $(shell ls $(WebKit2)/WebProcess/Plugins/*.in) \
542         $(shell ls $(WebKit2)/WebProcess/ResourceCache/*.in) \
543         $(shell ls $(WebKit2)/WebProcess/WebCoreSupport/*.in) \
544         $(shell ls $(WebKit2)/WebProcess/WebPage/*.in) \
545         $(shell ls $(WebKit2)/WebProcess/soup/*.in)