1include $(srcdir)/Source/WebKit2/GNUmakefile.list.am 2 3if ENABLE_WEBKIT2 4# Shared libraries 5lib_LTLIBRARIES += \ 6 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 7 8# Static libraries 9noinst_LTLIBRARIES += \ 10 libWebKit2Platform.la 11 12# We need to make sure plugin process is always built with gtk2, because plugins like flash 13# still use gtk2. Since webcore was built with gtk3, we need to build webcoregtk sources again with gtk2 14noinst_LTLIBRARIES += \ 15 libPlatformGtk2.la \ 16 libWebCoreGtk2.la 17 18libexec_PROGRAMS += \ 19 Programs/WebKitPluginProcess 20endif 21 22# Platform 23libWebKit2Platform_la_SOURCES = \ 24 $(webkit2platform_sources) 25 26libWebKit2Platform_la_CXXFLAGS = \ 27 -fvisibility-inlines-hidden \ 28 $(global_cxxflags) 29 30libWebKit2Platform_la_CFLAGS = \ 31 -fvisibility=hidden \ 32 $(global_cflags) 33 34libWebKit2Platform_la_CPPFLAGS = \ 35 -DBUILDING_WEBKIT \ 36 $(global_cppflags) \ 37 -fno-strict-aliasing \ 38 -I$(srcdir)/Source \ 39 -I$(srcdir)/Source/WTF \ 40 -I$(srcdir)/Source/WebKit2/Platform \ 41 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC \ 42 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/gtk \ 43 -I$(srcdir)/Source/WebKit2/Platform/gtk \ 44 -I$(top_builddir)/DerivedSources/WebKit2/include \ 45 $(COVERAGE_CFLAGS) \ 46 $(GLIB_CFLAGS) 47 48 49libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = \ 50 $(webkit2_h_api) 51 52libwebkit2gtkincludedir = $(libwebkitgtkincludedir)/webkit2 53nodist_libwebkit2gtkinclude_HEADERS = \ 54 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitEnumTypes.h \ 55 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h 56 57libwebkit2gtkinclude_HEADERS = \ 58 $(webkit2gtk_h_api) \ 59 $(webkit2_web_extension_h_api) 60 61nodist_libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \ 62 $(webkit2_built_sources) \ 63 $(webkit2gtk_built_sources) 64 65libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \ 66 $(webkit2_sources) 67 68libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \ 69 -fno-strict-aliasing \ 70 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ 71 $(global_cppflags) \ 72 -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \ 73 -I$(srcdir)/Source/WebKit/gtk \ 74 -I$(srcdir)/Source/WebKit2 \ 75 -I$(srcdir)/Source/WebKit2/gtk \ 76 -I$(srcdir)/Source/WebKit2/Platform \ 77 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC \ 78 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/gtk \ 79 -I$(srcdir)/Source/WebKit2/Platform/gtk \ 80 -I$(srcdir)/Source/WebKit2/PluginProcess \ 81 -I$(srcdir)/Source/WebKit2/Shared \ 82 -I$(srcdir)/Source/WebKit2/Shared/API \ 83 -I$(srcdir)/Source/WebKit2/Shared/API/c \ 84 -I$(srcdir)/Source/WebKit2/Shared/API/c/gtk \ 85 -I$(srcdir)/Source/WebKit2/Shared/API/c/soup \ 86 -I$(srcdir)/Source/WebKit2/Shared/Authentication \ 87 -I$(srcdir)/Source/WebKit2/Shared/CoreIPCSupport \ 88 -I$(srcdir)/Source/WebKit2/Shared/Downloads \ 89 -I$(srcdir)/Source/WebKit2/Shared/Downloads/soup \ 90 -I$(srcdir)/Source/WebKit2/Shared/gtk \ 91 -I$(srcdir)/Source/WebKit2/Shared/Network \ 92 -I$(srcdir)/Source/WebKit2/Shared/Plugins \ 93 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape \ 94 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/x11 \ 95 -I$(srcdir)/Source/WebKit2/Shared/soup \ 96 -I$(srcdir)/Source/WebKit2/UIProcess \ 97 -I$(srcdir)/Source/WebKit2/UIProcess/API \ 98 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \ 99 -I$(srcdir)/Source/WebKit2/UIProcess/API/C/gtk \ 100 -I$(srcdir)/Source/WebKit2/UIProcess/API/C/soup \ 101 -I$(srcdir)/Source/WebKit2/UIProcess/API/cpp \ 102 -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \ 103 -I$(srcdir)/Source/WebKit2/UIProcess/Authentication \ 104 -I$(srcdir)/Source/WebKit2/UIProcess/Downloads \ 105 -I$(srcdir)/Source/WebKit2/UIProcess/gtk \ 106 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \ 107 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher/gtk \ 108 -I$(srcdir)/Source/WebKit2/UIProcess/Notifications \ 109 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins \ 110 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/unix \ 111 -I$(srcdir)/Source/WebKit2/UIProcess/Storage \ 112 -I$(srcdir)/Source/WebKit2/UIProcess/soup \ 113 -I$(srcdir)/Source/WebKit2/UIProcess/InspectorServer \ 114 -I$(srcdir)/Source/WebKit2/WebProcess \ 115 -I$(srcdir)/Source/WebKit2/WebProcess/ApplicationCache \ 116 -I$(srcdir)/Source/WebKit2/WebProcess/Battery \ 117 -I$(srcdir)/Source/WebKit2/WebProcess/Cookies \ 118 -I$(srcdir)/Source/WebKit2/WebProcess/FullScreen \ 119 -I$(srcdir)/Source/WebKit2/WebProcess/Geolocation \ 120 -I$(srcdir)/Source/WebKit2/WebProcess/gtk \ 121 -I$(srcdir)/Source/WebKit2/WebProcess/IconDatabase \ 122 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle \ 123 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API \ 124 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/c \ 125 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/gtk \ 126 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/DOM \ 127 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/gtk \ 128 -I$(srcdir)/Source/WebKit2/WebProcess/KeyValueStorage \ 129 -I$(srcdir)/Source/WebKit2/WebProcess/Launching \ 130 -I$(srcdir)/Source/WebKit2/WebProcess/MediaCache \ 131 -I$(srcdir)/Source/WebKit2/WebProcess/NetworkInfo \ 132 -I$(srcdir)/Source/WebKit2/WebProcess/Notifications \ 133 -I$(srcdir)/Source/WebKit2/WebProcess/ResourceCache \ 134 -I$(srcdir)/Source/WebKit2/WebProcess/Storage \ 135 -I$(srcdir)/Source/WebKit2/WebProcess/soup \ 136 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins \ 137 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape \ 138 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/unix \ 139 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport \ 140 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/gtk \ 141 -I$(srcdir)/Source/WebKit2/WebProcess/WebCoreSupport/soup \ 142 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage \ 143 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage/atk \ 144 -I$(srcdir)/Source/WebKit2/WebProcess/WebPage/gtk \ 145 -I$(top_builddir)/DerivedSources/WebKit2 \ 146 -I$(top_builddir)/DerivedSources/WebKit2/include \ 147 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk \ 148 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/include \ 149 -I$(top_builddir)/DerivedSources/WebKit2/webkit2gtk/webkit2 \ 150 -I$(top_builddir)/DerivedSources/WebKit2/webkit2extension/include \ 151 -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \ 152 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \ 153 -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \ 154 -I$(top_builddir)/DerivedSources/webkitdom \ 155 -DLIBEXECDIR=\""$(libexecdir)"\" \ 156 -DLIBDIR=\""$(libdir)"\" \ 157 -DBUILDING_WEBKIT \ 158 -DWEBKIT2_COMPILATION \ 159 -DENABLE_PLUGIN_PROCESS=1 \ 160 $(platform_cppflags) \ 161 $(platformgtk_cppflags) \ 162 $(webcore_cppflags) \ 163 $(webcoregtk_cppflags) \ 164 $(javascriptcore_cppflags) \ 165 $(CLUTTER_CFLAGS) \ 166 $(COVERAGE_CFLAGS) \ 167 $(ENCHANT_CFLAGS) \ 168 $(FREETYPE_CFLAGS) \ 169 $(GEOCLUE_CFLAGS) \ 170 $(GLIB_CFLAGS) \ 171 $(GTK_CFLAGS) \ 172 $(GTK_UNIX_PRINTING_CFLAGS) \ 173 $(LIBSOUP_CFLAGS) \ 174 $(UNICODE_CFLAGS) \ 175 $(XCOMPOSITE_CFLAGS) \ 176 $(XDAMAGE_CFLAGS) \ 177 $(XT_CFLAGS) 178 179libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \ 180 $(global_cxxflags) 181 182libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \ 183 $(global_cflags) 184 185# Artificial dependency to make sure libwebkit2gtk and libwebkitgtk are not linked at the same time 186# The variable creation is to avoid having automake override the entire rule instead of adding the 187# dependency. 188if ENABLE_WEBKIT1 189webkit2gtk_lib_for_dep = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 190$(webkit2gtk_lib_for_dep): libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 191endif 192 193libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = \ 194 $(libwebkit2gtkincludedir)/WebKit2 195 196libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \ 197 -version-info @LIBWEBKIT2GTK_VERSION@ \ 198 $(version_script) \ 199 $(no_undefined) 200 201libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD := \ 202 -lpthread \ 203 libWebCore.la \ 204 libWebCorePlatform.la \ 205 libWebCoreModules.la 206 207if ENABLE_INDEXED_DATABASE 208libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \ 209 libLevelDB.la 210endif 211 212if USE_OPENGL 213libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \ 214 libANGLE.la 215endif 216 217if ENABLE_SVG 218libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \ 219 libWebCoreSVG.la 220endif 221 222libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD += \ 223 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 224 libPlatform.la \ 225 libPlatformGtk.la \ 226 libWebCoreDOM.la \ 227 libWebCoreGtk.la \ 228 libWebKit2Platform.la \ 229 $(CAIRO_LIBS) \ 230 $(CLUTTER_LIBS) \ 231 $(COVERAGE_LDFLAGS) \ 232 $(ENCHANT_LIBS) \ 233 $(FREETYPE_LIBS) \ 234 $(GAIL_LIBS) \ 235 $(GAMEPAD_LIBS) \ 236 $(GEOCLUE_LIBS) \ 237 $(GLIB_LIBS) \ 238 $(GSTREAMER_LIBS) \ 239 $(GTK_LIBS) \ 240 $(GTK_UNIX_PRINTING_LIBS) \ 241 $(JPEG_LIBS) \ 242 $(LIBSECRET_LIBS) \ 243 $(LIBSOUP_LIBS) \ 244 $(LIBXML_LIBS) \ 245 $(LIBXSLT_LIBS) \ 246 $(OPENGL_LIBS) \ 247 $(PANGO_LIBS) \ 248 $(PNG_LIBS) \ 249 $(SQLITE3_LIBS) \ 250 $(UNICODE_LIBS) \ 251 $(WEBP_LIBS) \ 252 $(XRENDER_LIBS) \ 253 $(XCOMPOSITE_LIBS) \ 254 $(XDAMAGE_LIBS) \ 255 $(XT_LIBS) \ 256 $(ZLIB_LIBS) 257 258if ENABLE_WEBKIT2 259pkgconfig_DATA += Source/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc 260 261if ENABLE_INTROSPECTION 262 263WebKit2-@WEBKITGTK_API_VERSION@.gir: $(G_IR_SCANNER) libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 264 $(AM_V_GEN) \ 265 CFLAGS="$(CFLAGS) -Wno-deprecated-declarations" \ 266 $(G_IR_SCANNER) \ 267 --quiet \ 268 --warn-all \ 269 --symbol-prefix=webkit \ 270 --identifier-prefix=WebKit \ 271 --namespace=WebKit2 \ 272 --nsversion=@WEBKITGTK_API_VERSION@ \ 273 --include=GObject-2.0 \ 274 --include=Gtk-3.0 \ 275 --include=JavaScriptCore-@WEBKITGTK_API_VERSION@ \ 276 --include=Soup-2.4 \ 277 --library=webkit2gtk-@WEBKITGTK_API_VERSION@ \ 278 --library=javascriptcoregtk-@WEBKITGTK_API_VERSION@ \ 279 --libtool="$(LIBTOOL)" \ 280 --pkg=gobject-2.0 \ 281 --pkg=gtk+-@GTK_API_VERSION@ \ 282 --pkg=libsoup-2.4 \ 283 --pkg-export=webkit2gtk-@WEBKITGTK_API_VERSION@ \ 284 --output=$@ \ 285 --add-include-path=$(WebKit2) \ 286 --add-include-path=$(top_builddir) \ 287 --c-include="webkit2/webkit2.h" \ 288 -I$(srcdir)/Source \ 289 -I$(WebKit2) \ 290 -I$(GENSOURCES) \ 291 -I$(GENSOURCES_WEBKITDOM) \ 292 -I$(GENSOURCES_WEBKIT2) \ 293 -I$(top_builddir)/Source/WebKit2/UIProcess/API/gtk \ 294 -I$(top_srcdir)/Source/JavaScriptCore/ForwardingHeaders \ 295 -I$(top_srcdir) \ 296 -I$(GENSOURCES_WEBKIT2)/webkit2gtk/include \ 297 -I$(GENSOURCES_WEBKIT2)/webkit2gtk \ 298 -DBUILDING_WEBKIT \ 299 -DWEBKIT2_COMPILATION \ 300 $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h \ 301 $(webkit2gtk_h_api) \ 302 $(webkitgtk_gdom_built_h_api) \ 303 $(WebKit2)/UIProcess/API/gtk/*.cpp 304 305WebKit2-@WEBKITGTK_API_VERSION@.typelib: WebKit2-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER) 306 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit2) --includedir $(top_builddir) $< -o $@ 307 308gir_DATA += WebKit2-@WEBKITGTK_API_VERSION@.gir 309typelibs_DATA += WebKit2-@WEBKITGTK_API_VERSION@.typelib 310 311CLEANFILES += WebKit2-@WEBKITGTK_API_VERSION@.gir WebKit2-@WEBKITGTK_API_VERSION@.typelib 312 313endif 314endif 315 316stamp-webkit2-forwarding-headers: $(WebKit2)/Scripts/generate-forwarding-headers.pl $(webkit2_sources) 317 $(AM_V_GEN)$(PERL) $< $(WebKit2) $(GENSOURCES_WEBKIT2)/include gtk \ 318 && $(PERL) $< $(WebKit2) $(GENSOURCES_WEBKIT2)/include soup \ 319 && echo timestamp > $(@F) 320 321BUILT_SOURCES += $(top_builddir)/stamp-webkit2-forwarding-headers 322 323$(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2: $(libwebkit2gtkinclude_HEADERS) 324 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/include \ 325 && ln -n -s -f ${shell pwd}/$(WebKit2)/UIProcess/API/gtk $@ 326 327$(GENSOURCES_WEBKIT2)/webkit2extension/include/webkit2: $(libwebkit2gtkinclude_HEADERS) 328 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2extension/include \ 329 && ln -n -s -f ${shell pwd}/$(WebKit2)/WebProcess/InjectedBundle/API/gtk $@ 330 331BUILT_SOURCES += \ 332 $(GENSOURCES_WEBKIT2)/webkit2extension/include/webkit2 \ 333 $(GENSOURCES_WEBKIT2)/webkit2gtk/include/webkit2 334 335vpath %.messages.in = \ 336 $(WebKit2)/PluginProcess \ 337 $(WebKit2)/Shared \ 338 $(WebKit2)/Shared/Authentication \ 339 $(WebKit2)/Shared/Plugins \ 340 $(WebKit2)/UIProcess \ 341 $(WebKit2)/UIProcess/ApplicationCache \ 342 $(WebKit2)/UIProcess/Downloads \ 343 $(WebKit2)/UIProcess/Geolocation \ 344 $(WebKit2)/UIProcess/Plugins \ 345 $(WebKit2)/UIProcess/ResourceCache \ 346 $(WebKit2)/UIProcess/Storage \ 347 $(WebKit2)/UIProcess/soup \ 348 $(WebKit2)/WebProcess \ 349 $(WebKit2)/WebProcess/ApplicationCache \ 350 $(WebKit2)/WebProcess/Battery \ 351 $(WebKit2)/WebProcess/Cookies \ 352 $(WebKit2)/WebProcess/FullScreen \ 353 $(WebKit2)/WebProcess/Geolocation \ 354 $(WebKit2)/WebProcess/IconDatabase \ 355 $(WebKit2)/WebProcess/MediaCache \ 356 $(WebKit2)/WebProcess/NetworkInfo \ 357 $(WebKit2)/WebProcess/Notifications \ 358 $(WebKit2)/WebProcess/Plugins \ 359 $(WebKit2)/WebProcess/ResourceCache \ 360 $(WebKit2)/WebProcess/Storage \ 361 $(WebKit2)/WebProcess/WebCoreSupport \ 362 $(WebKit2)/WebProcess/WebPage \ 363 $(WebKit2)/WebProcess/soup 364 365message_gen_scripts = \ 366 $(WebKit2)/Scripts/generate-message-receiver.py \ 367 $(WebKit2)/Scripts/generate-messages-header.py \ 368 $(WebKit2)/Scripts/webkit2/__init__.py \ 369 $(WebKit2)/Scripts/webkit2/messages.py \ 370 $(WebKit2)/Scripts/webkit2/model.py \ 371 $(WebKit2)/Scripts/webkit2/parser.py 372 373# Message header generation 374DerivedSources/WebKit2/%MessageReceiver.cpp: %.messages.in $(message_gen_scripts) 375 $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-message-receiver.py $< > $@ 376 377DerivedSources/WebKit2/%Messages.h: %.messages.in $(message_gen_scripts) 378 $(AM_V_GEN)$(PYTHON) $(WebKit2)/Scripts/generate-messages-header.py $< > $@ 379 380webkit2gtk_built_headers_dir := $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 381$(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h: stamp-webkit2enumtypes 382 @true 383 384stamp-webkit2enumtypes: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am 385 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \ 386 && glib-mkenums --template $(WebKit2)/UIProcess/API/gtk/WebKitEnumTypes.h.template $(libwebkit2gtkinclude_HEADERS) | \ 387 sed 's,web_kit,webkit,' | \ 388 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \ 389 > wk2-xgen-gth \ 390 && (cmp -s wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h || cp wk2-xgen-gth $(webkit2gtk_built_headers_dir)/WebKitEnumTypes.h) \ 391 && rm -f wk2-xgen-gth \ 392 && echo timestamp > $(@F) 393 394$(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.cpp: $(libwebkit2gtkinclude_HEADERS) $(WebKit2)/GNUmakefile.am 395 $(AM_V_GEN)mkdir -p $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2 \ 396 && glib-mkenums --template $(WebKit2)/UIProcess/API/gtk/WebKitEnumTypes.cpp.template $(libwebkit2gtkinclude_HEADERS) | \ 397 sed 's,web_kit,webkit,' \ 398 > wk2-xgen-gtc \ 399 && cp wk2-xgen-gtc $@ \ 400 && rm -f wk2-xgen-gtc 401 402WEBKIT2_MARSHAL_LIST = $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list 403 404$(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.cpp: stamp-webkit2marshal.cpp 405 @true 406$(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitMarshal.h: stamp-webkit2marshal.h 407 @true 408 409stamp-webkit2marshal.cpp: $(WEBKIT2_MARSHAL_LIST) 410 $(AM_V_GEN) echo "extern \"C\" {" > $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \ 411 $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --body >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \ 412 echo '}' >> $(webkit2gtk_built_headers_dir)/WebKitMarshal.cpp && \ 413 echo timestamp > $(@F) 414 415stamp-webkit2marshal.h: $(WEBKIT2_MARSHAL_LIST) 416 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT2_MARSHAL_LIST) --header > $(webkit2gtk_built_headers_dir)/WebKitMarshal.h && \ 417 echo timestamp > $(@F) 418 419CLEANFILES += \ 420 $(BUILT_SOURCES) \ 421 $(top_builddir)/stamp-webkit2enumtypes \ 422 $(top_builddir)/stamp-webkit2marshal.cpp \ 423 $(top_builddir)/stamp-webkit2marshal.h \ 424 $(top_builddir)/Programs/WebKitWebProcess 425 426DISTCLEANFILES += \ 427 $(top_builddir)/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc 428 429if ENABLE_WEBKIT2 430libexec_PROGRAMS += \ 431 Programs/WebKitWebProcess 432endif 433 434Programs_WebKitWebProcess_CPPFLAGS = \ 435 -I$(srcdir)/Source/WebKit2 \ 436 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \ 437 -I$(srcdir)/Source/WebKit2/WebProcess/gtk \ 438 -I$(top_builddir)/DerivedSources/WebKit2 \ 439 -I$(top_builddir)/DerivedSources/WebKit2/include \ 440 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \ 441 $(global_cppflags) \ 442 $(javascriptcore_cppflags) 443 444Programs_WebKitWebProcess_CFLAGS = \ 445 $(global_cflags) \ 446 $(CAIRO_CFLAGS) \ 447 $(FREETYPE_CFLAGS) \ 448 $(GLIB_CFLAGS) \ 449 $(GTK_CFLAGS) \ 450 $(GTK_UNIX_PRINTING_CFLAGS) \ 451 $(LIBSOUP_CFLAGS) \ 452 $(ZLIB_CFLAGS) 453 454Programs_WebKitWebProcess_SOURCES = \ 455 Source/WebKit2/gtk/MainGtk.cpp 456 457Programs_WebKitWebProcess_LDADD = \ 458 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 459 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 460 $(FREETYPE_LIBS) \ 461 $(GLIB_LIBS) \ 462 $(GTK_LIBS) \ 463 $(GTK_UNIX_PRINTING_LIBS) \ 464 $(LIBSOUP_LIBS) 465 466libWebCoreGtk2_la_SOURCES = \ 467 $(webcoregtk_sources) 468 469libWebCoreGtk2_la_CXXFLAGS = \ 470 -fvisibility-inlines-hidden \ 471 $(global_cxxflags) 472 473libWebCoreGtk2_la_CFLAGS = \ 474 -fvisibility=hidden \ 475 $(global_cflags) 476 477libWebCoreGtk2_la_CPPFLAGS = \ 478 -DBUILDING_WEBKIT \ 479 -DGTK_API_VERSION_2=1 \ 480 $(global_cppflags) \ 481 $(platform_cppflags) \ 482 $(platformgtk_cppflags) \ 483 $(webcore_cppflags) \ 484 $(webcoregtk_cppflags) \ 485 $(javascriptcore_cppflags) \ 486 -fno-strict-aliasing \ 487 $(COVERAGE_CFLAGS) \ 488 $(ENCHANT_CFLAGS) \ 489 $(GEOCLUE_CFLAGS) \ 490 $(FREETYPE_CFLAGS) \ 491 $(GLIB_CFLAGS) \ 492 $(GSTREAMER_CFLAGS) \ 493 $(GTK2_CFLAGS) \ 494 $(LIBSECRET_CFLAGS) \ 495 $(LIBSOUP_CFLAGS) \ 496 $(LIBXML_CFLAGS) \ 497 $(LIBXSLT_CFLAGS) \ 498 $(SQLITE3_CFLAGS) \ 499 $(UNICODE_CFLAGS) \ 500 $(XRENDER_CFLAGS) \ 501 $(XT_CFLAGS) 502 503libPlatformGtk2_la_SOURCES = \ 504 $(platformgtk_sources) 505 506libPlatformGtk2_la_CXXFLAGS = \ 507 -fvisibility-inlines-hidden \ 508 $(global_cxxflags) 509 510libPlatformGtk2_la_CFLAGS = \ 511 -fvisibility=hidden \ 512 $(global_cflags) 513 514libPlatformGtk2_la_CPPFLAGS = \ 515 -DBUILDING_WEBKIT \ 516 -DGTK_API_VERSION_2=1 \ 517 $(global_cppflags) \ 518 $(platform_cppflags) \ 519 $(platformgtk_cppflags) \ 520 $(platform_webcore_cppflags) \ 521 $(javascriptcore_cppflags) \ 522 -fno-strict-aliasing \ 523 $(FREETYPE_CFLAGS) \ 524 $(GSTREAMER_CFLAGS) \ 525 $(GTK2_CFLAGS) \ 526 $(LIBSECRET_CFLAGS) \ 527 $(LIBSOUP_CFLAGS) 528 529# Injected Bundle 530injectedbundledir = $(libdir)/webkit2gtk-3.0/injected-bundle 531if ENABLE_WEBKIT2 532injectedbundle_LTLIBRARIES = libwebkit2gtkinjectedbundle.la 533endif 534 535libwebkit2gtkinjectedbundle_la_SOURCES = \ 536 Source/WebKit2/WebProcess/gtk/WebGtkInjectedBundleMain.cpp 537 538libwebkit2gtkinjectedbundle_la_LDFLAGS = \ 539 $(no_undefined) \ 540 -module \ 541 -avoid-version 542 543libwebkit2gtkinjectedbundle_la_CPPFLAGS = \ 544 -fno-strict-aliasing \ 545 -I$(srcdir)/Source/WebKit2/Platform \ 546 -I$(srcdir)/Source/WebKit2/Shared \ 547 -I$(srcdir)/Source/WebKit2/Shared/API/c \ 548 -I$(srcdir)/Source/WebKit2/UIProcess/API/C \ 549 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle \ 550 -I$(srcdir)/Source/WebKit2/WebProcess/InjectedBundle/API/c \ 551 -I$(top_builddir)/DerivedSources/InjectedBundle \ 552 -I$(top_builddir)/DerivedSources/WebKit2/include \ 553 $(global_cppflags) \ 554 $(javascriptcore_cppflags) \ 555 $(GLIB_CFLAGS) 556 557# Serialize linking of the plugin process with both webkit libraries. 558plugin_process_for_dep = Programs/WebKitPluginProcess 559plugin_process_for_dep_list = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 560if ENABLE_WEBKIT1 561plugin_process_for_dep_list += \ 562 libwebkitgtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la 563endif 564$(plugin_process_for_dep): $(plugin_process_for_dep_list) 565 566webcore_layer_gtk2_deps = \ 567 libPlatform.la \ 568 libPlatformGtk2.la \ 569 libWebCorePlatform.la \ 570 libWebCoreGtk2.la \ 571 libWebCore.la \ 572 libWebCoreModules.la 573if ENABLE_SVG 574webcore_layer_gtk2_deps += \ 575 libWebCoreSVG.la 576endif 577if ENABLE_INDEXED_DATABASE 578webcore_layer_gtk2_deps += \ 579 libLevelDB.la 580endif 581if USE_OPENGL 582webcore_layer_gtk2_deps += \ 583 libANGLE.la 584endif 585 586webcore_layer_gtk2_archives = $(foreach lib, $(webcore_layer_gtk2_deps), $(shell echo $(lib) | sed "s/\(.*\)\.la/.libs\/\1.a/")) 587 588WebCoreLayerGtk2.a: $(webcore_layer_gtk2_deps) 589 $(AM_V_GEN) 590 $(AM_V_at)$(shell rm -f $@) 591 $(AM_V_at)$(foreach archive, $(webcore_layer_gtk2_archives), $(shell ar t $(archive) | xargs -n50 ar cruT $@)) 592 593DISTCLEANFILES += \ 594 $(top_builddir)/WebCoreLayerGtk2.a 595 596Programs_WebKitPluginProcess_CPPFLAGS = \ 597 -include $(srcdir)/Source/WebKit2/WebKit2Prefix.h \ 598 -I$(srcdir)/Source/WebKit2 \ 599 -I$(srcdir)/Source/WebKit2/Platform \ 600 -I$(srcdir)/Source/WebKit2/Platform/CoreIPC/ \ 601 -I$(srcdir)/Source/WebKit2/PluginProcess/ \ 602 -I$(srcdir)/Source/WebKit2/PluginProcess/unix \ 603 -I$(srcdir)/Source/WebKit2/Shared \ 604 -I$(srcdir)/Source/WebKit2/Shared/Plugins \ 605 -I$(srcdir)/Source/WebKit2/Shared/Plugins/Netscape/ \ 606 -I$(srcdir)/Source/WebKit2/UIProcess/Plugins/ \ 607 -I$(srcdir)/Source/WebKit2/UIProcess/Launcher \ 608 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/ \ 609 -I$(srcdir)/Source/WebKit2/WebProcess/Plugins/Netscape/ \ 610 -I$(srcdir)/Source/WebKit2/Shared/soup \ 611 -I$(top_builddir)/DerivedSources/WebKit2 \ 612 -I$(top_builddir)/DerivedSources/WebKit2/include \ 613 -I$(top_builddir)/DerivedSources/WebKit2/include/JavaScriptCore \ 614 -I$(top_builddir)/DerivedSources/WebKit2/include/WebCore \ 615 -I$(top_builddir)/DerivedSources/WebKit2/include/WebKit2 \ 616 -DBUILDING_WEBKIT \ 617 -DGTK_API_VERSION_2=1 \ 618 -DENABLE_PLUGIN_PROCESS=1 \ 619 -DLIBEXECDIR=\""$(libexecdir)"\" \ 620 $(global_cppflags) \ 621 $(platform_cppflags) \ 622 $(platformgtk_cppflags) \ 623 $(webcore_cppflags) \ 624 $(webcoregtk_cppflags) \ 625 $(javascriptcore_cppflags) \ 626 -fno-strict-aliasing \ 627 $(CAIRO_CFLAGS) \ 628 $(FREETYPE_CFLAGS) \ 629 $(GLIB_CFLAGS) \ 630 $(GSTREAMER_CFLAGS) \ 631 $(GTK2_CFLAGS) \ 632 $(LIBSOUP_CFLAGS) \ 633 $(UNICODE_CFLAGS) 634 635Programs_WebKitPluginProcess_CFLAGS = \ 636 -fvisibility-inlines-hidden \ 637 $(global_cflags) \ 638 $(CAIRO_CFLAGS) \ 639 $(GLIB_CFLAGS) \ 640 $(GSTREAMER_CFLAGS) \ 641 $(GTK2_CFLAGS) \ 642 $(LIBSOUP_CFLAGS) \ 643 $(UNICODE_CFLAGS) 644 645nodist_Programs_WebKitPluginProcess_SOURCES = \ 646 $(webkit2_plugin_process_built_sources) 647 648Programs_WebKitPluginProcess_SOURCES = \ 649 $(webkit2_plugin_process_sources) 650 651Programs_WebKitPluginProcess_LDADD = \ 652 -lpthread \ 653 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 654 WebCoreLayerGtk2.a \ 655 libWebKit2Platform.la \ 656 $(CAIRO_LIBS) \ 657 $(COVERAGE_LDFLAGS) \ 658 $(FREETYPE_LIBS) \ 659 $(GAMEPAD_LIBS) \ 660 $(GEOCLUE_LIBS) \ 661 $(GLIB_LIBS) \ 662 $(GSTREAMER_LIBS) \ 663 $(GTK2_LIBS) \ 664 $(JPEG_LIBS) \ 665 $(LIBSECRET_LIBS) \ 666 $(LIBSOUP_LIBS) \ 667 $(LIBXML_LIBS) \ 668 $(LIBXSLT_LIBS) \ 669 $(OLE32_LIBS) \ 670 $(OPENGL_LIBS) \ 671 $(PANGO_LIBS) \ 672 $(PNG_LIBS) \ 673 $(SHLWAPI_LIBS) \ 674 $(SHM_LIBS) \ 675 $(SQLITE3_LIBS) \ 676 $(UNICODE_LIBS) \ 677 $(WEBP_LIBS) \ 678 $(XRENDER_LIBS) \ 679 $(XT_LIBS) \ 680 $(WINMM_LIBS) \ 681 $(ZLIB_LIBS) 682 683Programs_WebKitPluginProcess_CXXFLAGS = \ 684 -fvisibility-inlines-hidden \ 685 $(global_cxxflags) 686 687EXTRA_DIST += \ 688 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml \ 689 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk-sections.txt \ 690 $(WebKit2)/UIProcess/API/gtk/docs/webkit2gtk.types \ 691 $(WebKit2)/Scripts/generate-message-receiver.py \ 692 $(WebKit2)/Scripts/generate-messages-header.py \ 693 $(WebKit2)/Scripts/webkit2/__init__.py \ 694 $(WebKit2)/Scripts/webkit2/messages.py \ 695 $(WebKit2)/Scripts/webkit2/model.py \ 696 $(WebKit2)/Scripts/webkit2/parser.py \ 697 $(WebKit2)/UIProcess/API/gtk/webkit2marshal.list \ 698 $(WebKit2)/UIProcess/API/gtk/WebKitEnumTypes.h.template \ 699 $(WebKit2)/UIProcess/API/gtk/WebKitEnumTypes.cpp.template \ 700 $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html \ 701 $(WebKit2)/Scripts/generate-forwarding-headers.pl \ 702 $(shell ls $(WebKit2)/PluginProcess/*.in) \ 703 $(shell ls $(WebKit2)/Shared/*.in) \ 704 $(shell ls $(WebKit2)/Shared/Authentication/*.in) \ 705 $(shell ls $(WebKit2)/Shared/Plugins/*.in) \ 706 $(shell ls $(WebKit2)/UIProcess/*.in) \ 707 $(shell ls $(WebKit2)/UIProcess/Downloads/*.in) \ 708 $(shell ls $(WebKit2)/UIProcess/Plugins/*.in) \ 709 $(shell ls $(WebKit2)/UIProcess/Storage/*.in) \ 710 $(shell ls $(WebKit2)/UIProcess/soup/*.in) \ 711 $(shell ls $(WebKit2)/WebProcess/*.in) \ 712 $(shell ls $(WebKit2)/WebProcess/ApplicationCache/*.in) \ 713 $(shell ls $(WebKit2)/WebProcess/Battery/*.in) \ 714 $(shell ls $(WebKit2)/WebProcess/Cookies/*.in) \ 715 $(shell ls $(WebKit2)/WebProcess/FullScreen/*.in) \ 716 $(shell ls $(WebKit2)/WebProcess/Geolocation/*.in) \ 717 $(shell ls $(WebKit2)/WebProcess/IconDatabase/*.in) \ 718 $(shell ls $(WebKit2)/WebProcess/MediaCache/*.in) \ 719 $(shell ls $(WebKit2)/WebProcess/NetworkInfo/*.in) \ 720 $(shell ls $(WebKit2)/WebProcess/Notifications/*.in) \ 721 $(shell ls $(WebKit2)/WebProcess/Plugins/*.in) \ 722 $(shell ls $(WebKit2)/WebProcess/ResourceCache/*.in) \ 723 $(shell ls $(WebKit2)/WebProcess/Storage/*.in) \ 724 $(shell ls $(WebKit2)/WebProcess/WebCoreSupport/*.in) \ 725 $(shell ls $(WebKit2)/WebProcess/WebPage/*.in) \ 726 $(shell ls $(WebKit2)/WebProcess/soup/*.in) 727 728# Installing remote inspector files 729remoteinspectordir = ${datadir}/webkitgtk-@WEBKITGTK_API_VERSION@/webinspector 730remoteinspector_DATA = \ 731 $(WebKit2)/UIProcess/InspectorServer/front-end/inspectorPageIndex.html 732 733