[Webkit-unassigned] [Bug 181695] Possible to build both libjavascriptcoregtk and libwebkit2gtk as static libs only?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 24 11:54:06 PST 2018


--- Comment #13 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Ah, more problems....

libsoup handles HTTP, glib-networking handles TLS (notably the S in HTTPS) and proxy settings. libsoup just uses GLib sockets and the GTlsConnection interface; glib-networking provides a GIO extension point that implements GTlsConnection.

You have lucky timing, because glib-networking just grew support for being used as a static library a couple weeks ago. I don't know how exactly it works, but I'll try to point you in the right direction. You'll need to use glib 2.55.1. You'll also need glib-networking 2.55.90, which has not been released yet, so just use git master. (The first stable releases with this feature will be 2.56.0, in March.) And you'll need to build glib-networking with -Dstatic_modules=true (pass that to meson, the new build system). Then that should (hopefully) spit out giognomeproxy.a, giolibproxy.a, and giognutls.a. The last one is what you need to make HTTPS work.

I'm not completely sure how you're supposed to use it from there, but *maybe* it will just work automatically if you link giognutls.a into your app? If you have trouble, you'll want to investigate https://bugzilla.gnome.org/show_bug.cgi?id=791100 and https://bugzilla.gnome.org/show_bug.cgi?id=684282.

Keep in mind that most of these dependencies are security-critical, so if you care about that, you'll want to stay on top of libsoup, glib-networking, and GnuTLS updates, in addition to WebKitGTK+ updates. Be careful with GnuTLS because its version numbers are confusing: the highest version number is usually an unstable development release, and the recommended stable version will be somewhat lower. Then GnuTLS itself has more security-critical dependencies with fun copyleft licenses; if those are problematic, then I'd recommend looking into the glib-openssl project as an alternative to glib-networking.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180124/ce17183f/attachment.html>

More information about the webkit-unassigned mailing list