GNUmakefile.am 25 KB

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