1 include $(srcdir)/Source/WebKit2/GNUmakefile.list.am
6 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
8 # We need to make sure plugin process is always built with gtk2, because plugins like flash
9 # still use gtk2. Since webcore was built with gtk3, we need to build webcoregtk sources again with gtk2
10 noinst_LTLIBRARIES += \
14 Programs/WebKitPluginProcess
17 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \
20 libwebkit2gtkincludedir = $(libwebkitgtkincludedir)/webkit2
21 nodist_libwebkit2gtkinclude_HEADERS = \
22 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitEnumTypes.h \
23 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h
25 libwebkit2gtkinclude_HEADERS = \
27 $(webkit2_web_extension_h_api)
29 nodist_libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
30 $(webkit2_built_sources) \
31 $(webkit2gtk_built_sources)
33 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
36 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
37 -fno-strict-aliasing \
38 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
40 -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
41 -I$(srcdir)/Source/WebKit/gtk \
42 -I$(srcdir)/Source/WebKit2 \
43 -I$(srcdir)/Source/WebKit2/gtk \
44 -I$(srcdir)/Source/WebKit2/Platform \
45 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC \
46 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/gtk \
47 -I$(srcdir)/Source/WebKit2/Platform/gtk \
48 -I$(srcdir)/Source/WebKit2/PluginProcess \
49 -I$(srcdir)/Source/WebKit2/Shared \
50 -I$(srcdir)/Source/WebKit2/Shared/API \
51 -I$(srcdir)/Source/WebKit2/Shared/API/c \
52 -I$(srcdir)/Source/WebKit2/Shared/API/c/gtk \
53 -I$(srcdir)/Source/WebKit2/Shared/API/c/soup \
54 -I$(srcdir)/Source/WebKit2/Shared/Authentication \
55 -I$(srcdir)/Source/WebKit2/Shared/CoreIPCSupport \
56 -I$(srcdir)/Source/WebKit2/Shared/Downloads \
57 -I$(srcdir)/Source/WebKit2/Shared/Downloads/soup \
58 -I$(srcdir)/Source/WebKit2/Shared/gtk \
59 -I$(srcdir)/Source/WebKit2/Shared/Network \
60 -I$(srcdir)/Source/WebKit2/Shared/Plugins \
61 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape \
62 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/x11 \
63 -I$(srcdir)/Source/WebKit2/Shared/soup \
64 -I$(srcdir)/Source/WebKit2/UIProcess \
65 -I$(srcdir)/Source/WebKit2/UIProcess/API \
66 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
67 -I$(srcdir)/Source/WebKit2/UIProcess/API/C/gtk \
68 -I$(srcdir)/Source/WebKit2/UIProcess/API/C/soup \
69 -I$(srcdir)/Source/WebKit2/UIProcess/API/cpp \
70 -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \
71 -I$(srcdir)/Source/WebKit2/UIProcess/Authentication \
72 -I$(srcdir)/Source/WebKit2/UIProcess/Downloads \
73 -I$(srcdir)/Source/WebKit2/UIProcess/gtk \
74 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \
75 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher/gtk \
76 -I$(srcdir)/Source/WebKit2/UIProcess/Notifications \
77 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins \
78 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/unix \
79 -I$(srcdir)/Source/WebKit2/UIProcess/Storage \
80 -I$(srcdir)/Source/WebKit2/UIProcess/soup \
81 -I$(srcdir)/Source/WebKit2/UIProcess/InspectorServer \
82 -I$(srcdir)/Source/WebKit2/WebProcess \
83 -I$(srcdir)/Source/WebKit2/WebProcess/ApplicationCache \
84 -I$(srcdir)/Source/WebKit2/WebProcess/Battery \
85 -I$(srcdir)/Source/WebKit2/WebProcess/Cookies \
86 -I$(srcdir)/Source/WebKit2/WebProcess/FullScreen \
87 -I$(srcdir)/Source/WebKit2/WebProcess/Geolocation \
88 -I$(srcdir)/Source/WebKit2/WebProcess/gtk \
89 -I$(srcdir)/Source/WebKit2/WebProcess/IconDatabase \
90 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle \
91 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API \
92 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/c \
93 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/gtk \
94 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/DOM \
95 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/gtk \
96 -I$(srcdir)/Source/WebKit2/WebProcess/KeyValueStorage \
97 -I$(srcdir)/Source/WebKit2/WebProcess/Launching \
98 -I$(srcdir)/Source/WebKit2/WebProcess/MediaCache \
99 -I$(srcdir)/Source/WebKit2/WebProcess/NetworkInfo \
100 -I$(srcdir)/Source/WebKit2/WebProcess/Notifications \
101 -I$(srcdir)/Source/WebKit2/WebProcess/ResourceCache \
102 -I$(srcdir)/Source/WebKit2/WebProcess/Storage \
103 -I$(srcdir)/Source/WebKit2/WebProcess/soup \
104 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins \
105 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape \
106 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/unix \
107 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport \
108 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/gtk \
109 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/soup \
110 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage \
111 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage/atk \
112 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage/gtk \
113 -I$(top_builddir)/DerivedSources/WebKit2 \
114 -I$(top_builddir)/DerivedSources/WebKit2/include \
115 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk \
116 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/include \
117 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/webkit2 \
118 -I$(top_builddir)/DerivedSources/WebKit2/webkit2extension/include \
119 -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \
120 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
121 -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \
122 -I$(top_builddir)/DerivedSources/webkitdom \
123 -DLIBEXECDIR=\""$(libexecdir)"\" \
124 -DLIBDIR=\""$(libdir)"\" \
126 -DWEBKIT2_COMPILATION \
127 -DENABLE_PLUGIN_PROCESS=1 \
128 $(webcore_cppflags) \
129 $(webcoregtk_cppflags) \
130 $(javascriptcore_cppflags) \
138 $(GTK_UNIX_PRINTING_CFLAGS) \
141 $(XCOMPOSITE_CFLAGS) \
145 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
148 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
151 # Artificial dependency to make sure libwebkit2gtk and libwebkitgtk are not linked at the same time
152 # The variable creation is to avoid having automake override the entire rule instead of adding the
155 webkit2gtk_lib_for_dep = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
156 $(webkit2gtk_lib_for_dep): libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
159 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = \
160 $(libwebkit2gtkincludedir)/WebKit2
162 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
163 -version-info @LIBWEBKIT2GTK_VERSION@ \
167 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD := \
170 libWebCorePlatform.la \
173 if ENABLE_INDEXED_DATABASE
174 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \
179 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \
183 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \
184 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
189 $(COVERAGE_LDFLAGS) \
198 $(GTK_UNIX_PRINTING_LIBS) \
217 pkgconfig_DATA += Source/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc
219 if ENABLE_INTROSPECTION
221 WebKit2-@WEBKITGTK_API_VERSION@.gir: $(G_IR_SCANNER) libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
222 $(AM_V_GEN)$(G_IR_SCANNER) -v --warn-all \
223 --symbol-prefix=webkit \
224 --identifier-prefix=WebKit \
225 --namespace=WebKit2 \
226 --nsversion=@WEBKITGTK_API_VERSION@ \
227 --include=GObject-2.0 \
230 --library=webkit2gtk-@WEBKITGTK_API_VERSION@ \
231 --library=javascriptcoregtk-@WEBKITGTK_API_VERSION@ \
232 --libtool="$(LIBTOOL)" \
234 --pkg=gtk+-@GTK_API_VERSION@ \
236 --pkg-export=webkit2gtk-@WEBKITGTK_API_VERSION@ \
238 --add-include-path=$(WebKit2) \
239 --add-include-path=$(top_builddir) \
240 --c-include="webkit2/webkit2.h" \
244 -I$(GENSOURCES_WEBKITDOM) \
245 -I$(GENSOURCES_WEBKIT2) \
246 -I$(top_builddir)/Source/WebKit2/UIProcess/API/gtk \
247 -I$(top_srcdir)/Source/JavaScriptCore/ForwardingHeaders \
249 -I$(GENSOURCES_WEBKIT2)/webkit2gtk/include \
250 -I$(GENSOURCES_WEBKIT2)/webkit2gtk \
252 -DWEBKIT2_COMPILATION \
253 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h \
254 $(webkit2gtk_h_api) \
255 $(webkitgtk_gdom_built_h_api) \
256 $(WebKit2)/UIProcess/API/gtk/*.cpp
258 gir2dir = $(datadir)/gir-1.0
259 gir2_DATA = WebKit2-@WEBKITGTK_API_VERSION@.gir
261 typelibs2dir = $(libdir)/girepository-1.0
262 typelibs2_DATA = WebKit2-@WEBKITGTK_API_VERSION@.typelib
264 WebKit2-@WEBKITGTK_API_VERSION@.typelib: WebKit2-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
265 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit2) --includedir $(top_builddir) $< -o $@
267 CLEANFILES += WebKit2-@WEBKITGTK_API_VERSION@.gir WebKit2-@WEBKITGTK_API_VERSION@.typelib
272 # WebKit2 specific variables
273 forwarding_headers := $(GENSOURCES_WEBKIT2)/include
274 generate-webkit2-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(libWebKit2_la_SOURCES)
275 $(AM_V_GEN)$(PERL) $< $(WebKit2) $(forwarding_headers) gtk
276 $(AM_V_GEN)$(PERL) $< $(WebKit2) $(forwarding_headers) soup
278 BUILT_SOURCES += generate-webkit2-forwarding-headers
280 $(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2: $(libwebkit2gtkinclude_HEADERS)
281 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/include \
282 && ln -n -s -f ${shell pwd}/$(WebKit2)/UIProcess/API/gtk $@
284 $(GENSOURCES_WEBKIT2)/webkit2extension/include/webkit2: $(libwebkit2gtkinclude_HEADERS)
285 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2extension/include \
286 && ln -n -s -f ${shell pwd}/$(WebKit2)/WebProcess/InjectedBundle/API/gtk $@
289 $(GENSOURCES_WEBKIT2)/webkit2extension/include/webkit2 \
290 $(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2
292 vpath %.messages.in = \
293 $(WebKit2)/PluginProcess \
295 $(WebKit2)/Shared/Authentication \
296 $(WebKit2)/Shared/Plugins \
297 $(WebKit2)/UIProcess \
298 $(WebKit2)/UIProcess/ApplicationCache \
299 $(WebKit2)/UIProcess/Downloads \
300 $(WebKit2)/UIProcess/Geolocation \
301 $(WebKit2)/UIProcess/Notifications \
302 $(WebKit2)/UIProcess/Plugins \
303 $(WebKit2)/UIProcess/ResourceCache \
304 $(WebKit2)/UIProcess/Storage \
305 $(WebKit2)/UIProcess/soup \
306 $(WebKit2)/WebProcess \
307 $(WebKit2)/WebProcess/ApplicationCache \
308 $(WebKit2)/WebProcess/Battery \
309 $(WebKit2)/WebProcess/Cookies \
310 $(WebKit2)/WebProcess/FullScreen \
311 $(WebKit2)/WebProcess/Geolocation \
312 $(WebKit2)/WebProcess/IconDatabase \
313 $(WebKit2)/WebProcess/MediaCache \
314 $(WebKit2)/WebProcess/NetworkInfo \
315 $(WebKit2)/WebProcess/Notifications \
316 $(WebKit2)/WebProcess/Plugins \
317 $(WebKit2)/WebProcess/ResourceCache \
318 $(WebKit2)/WebProcess/Storage \
319 $(WebKit2)/WebProcess/WebCoreSupport \
320 $(WebKit2)/WebProcess/WebPage \
321 $(WebKit2)/WebProcess/soup
323 message_gen_scripts = \
324 $(WebKit2)/Scripts/generate-message-receiver.py \
325 $(WebKit2)/Scripts/generate-messages-header.py \
326 $(WebKit2)/Scripts/webkit2/__init__.py \
327 $(WebKit2)/Scripts/webkit2/messages.py \
328 $(WebKit2)/Scripts/webkit2/model.py \
329 $(WebKit2)/Scripts/webkit2/parser.py
331 # Message header generation
332 DerivedSources/WebKit2/%MessageReceiver.cpp: %.messages.in $(message_gen_scripts)
333 $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
335 DerivedSources/WebKit2/%Messages.h: %.messages.in $(message_gen_scripts)
336 $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-messages-header.py $< > $@
338 webkit2gtk_built_headers_dir := $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2
339 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h: stamp-webkit2enumtypes
342 stamp-webkit2enumtypes: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am
343 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \
345 --fhead "#if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION)\n" \
346 --fhead "#error \"Only <webkit2/webkit2.h> can be included directly.\"\n" \
347 --fhead "#endif\n\n" \
348 --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
349 --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
350 --fhead "#include <glib-object.h>\n\n" \
351 --fhead "#include <webkit2/WebKitDefines.h>\n\n" \
352 --fhead "G_BEGIN_DECLS\n\n" \
353 --ftail "G_END_DECLS\n\n" \
355 --fprod "#include <webkit2/@basename@>\n\n" \
356 --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
357 --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
358 $(libwebkit2gtkinclude_HEADERS) | \
359 sed 's,web_kit,webkit,' | \
360 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
362 && (cmp -s wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h || cp wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h) \
363 && rm -f wk2-xgen-gth \
364 && echo timestamp > $(@F)
366 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.cpp: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am
367 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \
369 --fhead "#include <config.h>\n" \
370 --fhead "#include <glib-object.h>\n" \
371 --fhead "#include \"$(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h\"\n\n" \
372 --fhead "extern \"C\" {\n\n" \
373 --fprod "\n/* Enumerations from \"@filename@\". */" \
374 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
375 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
376 --vtail " { 0, NULL, NULL }\n};\n\n" \
377 --vtail "GType @enum_name@_get_type(void)\n{\n" \
378 --vtail " static GType type = 0;\n\n" \
379 --vtail " if (!type)\n" \
380 --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
381 --vtail " return type;\n}\n\n" \
383 $(libwebkit2gtkinclude_HEADERS) | \
384 sed 's,web_kit,webkit,' \
386 && cp wk2-xgen-gtc $@ \
387 && rm -f wk2-xgen-gtc
389 WEBKIT2_MARSHAL_LIST = $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list
391 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.cpp: stamp-webkit2marshal.cpp
393 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.h: stamp-webkit2marshal.h
396 stamp-webkit2marshal.cpp: $(WEBKIT2_MARSHAL_LIST)
397 $(AM_V_GEN) echo "extern \"C\" {" > $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
398 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --body >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
399 echo '}' >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \
400 echo timestamp > $(@F)
402 stamp-webkit2marshal.h: $(WEBKIT2_MARSHAL_LIST)
403 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --header > $(webkit2gtk_built_headers_dir)/WebKitMarshal.h && \
404 echo timestamp > $(@F)
408 $(top_builddir)/stamp-webkit2enumtypes \
409 $(top_builddir)/stamp-webkit2marshal.cpp \
410 $(top_builddir)/stamp-webkit2marshal.h \
411 $(top_builddir)/Programs/WebKitWebProcess
414 $(top_builddir)/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc
417 libexec_PROGRAMS += \
418 Programs/WebKitWebProcess
421 Programs_WebKitWebProcess_CPPFLAGS = \
422 -I$(srcdir)/Source/WebKit2 \
423 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
424 -I$(srcdir)/Source/WebKit2/WebProcess/gtk \
425 -I$(top_builddir)/DerivedSources/WebKit2 \
426 -I$(top_builddir)/DerivedSources/WebKit2/include \
427 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
429 $(javascriptcore_cppflags)
431 Programs_WebKitWebProcess_CFLAGS = \
437 $(GTK_UNIX_PRINTING_CFLAGS) \
441 Programs_WebKitWebProcess_SOURCES = \
442 Source/WebKit2/gtk/MainGtk.cpp
444 Programs_WebKitWebProcess_LDADD = \
445 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
446 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
450 $(GTK_UNIX_PRINTING_LIBS) \
453 libWebCoreGtk2_la_SOURCES = \
454 $(webcoregtk_sources)
456 libWebCoreGtk2_la_CXXFLAGS = \
457 -fvisibility-inlines-hidden \
460 libWebCoreGtk2_la_CFLAGS = \
461 -fvisibility=hidden \
464 libWebCoreGtk2_la_CPPFLAGS = \
466 -DGTK_API_VERSION_2=1 \
468 $(webcore_cppflags) \
469 $(webcoregtk_cppflags) \
470 $(javascriptcore_cppflags) \
471 -fno-strict-aliasing \
477 $(GSTREAMER_CFLAGS) \
479 $(LIBSECRET_CFLAGS) \
489 injectedbundledir = $(libdir)/webkit2gtk-3.0/injected-bundle
491 injectedbundle_LTLIBRARIES = libwebkit2gtkinjectedbundle.la
494 libwebkit2gtkinjectedbundle_la_SOURCES = \
495 Source/WebKit2/WebProcess/gtk/WebGtkInjectedBundleMain.cpp
497 libwebkit2gtkinjectedbundle_la_LDFLAGS = \
502 libwebkit2gtkinjectedbundle_la_CPPFLAGS = \
503 -fno-strict-aliasing \
504 -I$(srcdir)/Source/WebKit2/Platform \
505 -I$(srcdir)/Source/WebKit2/Shared \
506 -I$(srcdir)/Source/WebKit2/Shared/API/c \
507 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \
508 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle \
509 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/c \
510 -I$(top_builddir)/DerivedSources/InjectedBundle \
511 -I$(top_builddir)/DerivedSources/WebKit2/include \
513 $(javascriptcore_cppflags) \
516 # Serialize linking of the plugin process with both webkit libraries.
517 plugin_process_for_dep = Programs/WebKitPluginProcess
518 plugin_process_for_dep_list = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
520 plugin_process_for_dep_list += \
521 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
523 $(plugin_process_for_dep): $(plugin_process_for_dep_list)
525 Programs_WebKitPluginProcess_CPPFLAGS = \
526 -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \
527 -I$(srcdir)/Source/WebKit2 \
528 -I$(srcdir)/Source/WebKit2/Platform \
529 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/ \
530 -I$(srcdir)/Source/WebKit2/PluginProcess/ \
531 -I$(srcdir)/Source/WebKit2/PluginProcess/unix \
532 -I$(srcdir)/Source/WebKit2/Shared \
533 -I$(srcdir)/Source/WebKit2/Shared/Plugins \
534 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/ \
535 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/ \
536 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \
537 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/ \
538 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/ \
539 -I$(srcdir)/Source/WebKit2/Shared/soup \
540 -I$(top_builddir)/DerivedSources/WebKit2 \
541 -I$(top_builddir)/DerivedSources/WebKit2/include \
542 -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \
543 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \
544 -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \
546 -DGTK_API_VERSION_2=1 \
547 -DENABLE_PLUGIN_PROCESS=1 \
548 -DLIBEXECDIR=\""$(libexecdir)"\" \
550 $(webcore_cppflags) \
551 $(webcoregtk_cppflags) \
552 $(javascriptcore_cppflags) \
553 -fno-strict-aliasing \
557 $(GSTREAMER_CFLAGS) \
562 Programs_WebKitPluginProcess_CFLAGS = \
563 -fvisibility-inlines-hidden \
567 $(GSTREAMER_CFLAGS) \
572 nodist_Programs_WebKitPluginProcess_SOURCES = \
573 $(webkit2_plugin_process_built_sources)
575 Programs_WebKitPluginProcess_SOURCES = \
576 $(webkit2_plugin_process_sources)
578 Programs_WebKitPluginProcess_LDADD = \
580 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
584 Programs_WebKitPluginProcess_LDADD += \
588 Programs_WebKitPluginProcess_LDADD += \
589 libWebCoreModules.la \
590 libWebCorePlatform.la \
593 $(COVERAGE_LDFLAGS) \
617 # libWebCore and libWebCoreModules have circular dependencies that only seem to
618 # be a problem when linking the plugin process; we don't really care about
619 # modules for the plugin process, though, so to work around that we ignore
620 # internal unresolved symbols
621 Programs_WebKitPluginProcess_LDFLAGS = \
622 -Wl,--unresolved-symbols=ignore-in-object-files
624 Programs_WebKitPluginProcess_CXXFLAGS = \
625 -fvisibility-inlines-hidden \
629 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \
630 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-sections.txt \
631 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk.types \
632 $(WebKit2)/Scripts/generate-message-receiver.py \
633 $(WebKit2)/Scripts/generate-messages-header.py \
634 $(WebKit2)/Scripts/webkit2/__init__.py \
635 $(WebKit2)/Scripts/webkit2/messages.py \
636 $(WebKit2)/Scripts/webkit2/model.py \
637 $(WebKit2)/Scripts/webkit2/parser.py \
638 $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list \
639 $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html \
640 $(WebKit2)/Scripts/generate-forwarding-headers.pl \
641 $(shell ls $(WebKit2)/PluginProcess/*.in) \
642 $(shell ls $(WebKit2)/Shared/*.in) \
643 $(shell ls $(WebKit2)/Shared/Authentication/*.in) \
644 $(shell ls $(WebKit2)/Shared/Plugins/*.in) \
645 $(shell ls $(WebKit2)/UIProcess/*.in) \
646 $(shell ls $(WebKit2)/UIProcess/Downloads/*.in) \
647 $(shell ls $(WebKit2)/UIProcess/Notifications/*.in) \
648 $(shell ls $(WebKit2)/UIProcess/Plugins/*.in) \
649 $(shell ls $(WebKit2)/UIProcess/Storage/*.in) \
650 $(shell ls $(WebKit2)/UIProcess/soup/*.in) \
651 $(shell ls $(WebKit2)/WebProcess/*.in) \
652 $(shell ls $(WebKit2)/WebProcess/ApplicationCache/*.in) \
653 $(shell ls $(WebKit2)/WebProcess/Battery/*.in) \
654 $(shell ls $(WebKit2)/WebProcess/Cookies/*.in) \
655 $(shell ls $(WebKit2)/WebProcess/FullScreen/*.in) \
656 $(shell ls $(WebKit2)/WebProcess/Geolocation/*.in) \
657 $(shell ls $(WebKit2)/WebProcess/IconDatabase/*.in) \
658 $(shell ls $(WebKit2)/WebProcess/MediaCache/*.in) \
659 $(shell ls $(WebKit2)/WebProcess/NetworkInfo/*.in) \
660 $(shell ls $(WebKit2)/WebProcess/Notifications/*.in) \
661 $(shell ls $(WebKit2)/WebProcess/Plugins/*.in) \
662 $(shell ls $(WebKit2)/WebProcess/ResourceCache/*.in) \
663 $(shell ls $(WebKit2)/WebProcess/Storage/*.in) \
664 $(shell ls $(WebKit2)/WebProcess/WebCoreSupport/*.in) \
665 $(shell ls $(WebKit2)/WebProcess/WebPage/*.in) \
666 $(shell ls $(WebKit2)/WebProcess/soup/*.in)
668 # Installing remote inspector files
669 remoteinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector
670 remoteinspector_DATA = \
671 $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html