Commit graph

8 commits

Author SHA1 Message Date
Michael James Gratton
f51f55cd78 Depend on javascriptcore, generate webkit2 VAPI that uses it.
This gives us a means of using JS objects returned by UserContentManager
script messages directly from Vala.

* bindings/metadata/WebKit2-4.0.metadata: Tweak standard webkit2 VAPI to
  re-include methods that return javascriptcore objects.

* bindings/vapi/javascriptcore-4.0.vapi: Copy generated VAPI file into
  the tree, customise it so that it actually works.

* src/CMakeLists.txt: Generate the custom webkit2 VAPI, depend on
  javascriptcore and include in-tree javascriptcore VAPI in the client
  build.

* bindings/metadata/JSCore-3.0.metadata: Remove obsolete file.
2017-02-01 00:41:43 +11:00
Michael James Gratton
48b91b56d0 Replace WebKitGtk and custom VAPI in build with WebKit2GTK.
Start of changes for Bug 728002.
2017-02-01 00:41:43 +11:00
Michael James Gratton
13657a2237 Bump minimum WebKitGTK version to 2.4, remove bindings for older versions.
This is both the latest getting security updates, and the version in
Debian Jessie.
2016-05-20 16:29:28 +10:00
Jim Nelson
26982f9bc4 Compile with WebKitGTK 2.3.x: Closes bgno#720315
WebKitGTK 2.4 will introduce using GClosure to register
DOM.EventTarget listeners, but old API still available, so using
that for now.

This also introduces compiling WebKit-3.0.gir to a VAPI and using
that during compilation.  This means that .gir warnings won't
cause compilation errors (--fatal-warnings) and that we have a bit
more control over binding generation.  Closes bgno#720442.
2013-12-17 19:00:11 -08:00
Jim Nelson
258c84d335 Build against WebKitGTK 2.0.4: Closes #720290 2013-12-12 14:48:53 -08:00
Jim Nelson
eed221bf3a Can't bld w/ Vala 0.22.1 WebKitGTK 2.2.2: Closes #7694, Closes #7695
Two problems:

(a) Vala 0.22.1 fixes a binding change in libnotify
that has to be fixed but causes Geary to be unable to build on prior
versions of Vala.  libnotify.vapi added to solve this problem.

(b) New version of Vala appears to be more sensitive to detecting
problems in .gir files.  Using our .metadata file to paper over these
issues in WebKit-3.0.gir.
2013-11-15 16:53:18 -08:00
Jim Nelson
cfc472cfc8 Build with WebKitGTK 2.2.0: Closes #7023
Geary will autodetect which version of the library is installed
and select the appropriate .metadata file to use for bindings.
Still backwards-compatible with Geary 1.10 to 2.0.
2013-10-28 16:18:10 -07:00
Eric Gregory
3467c72035 Closes #6209 Precise support for GIR WebKitGTK binding. Rolls back to deprecated context menu in composer for compatibility with WebKitGTK 1.8
Squashed commit of the following:

commit 6e066374da45dd602ee1ca3c9bc5f77b9411b6f4
Author: Eric Gregory <eric@yorba.org>
Date:   Tue Jan 15 11:36:32 2013 -0800

    Closes #6209 Precise support for GIR WebKitGTK binding. Rolls back to deprecated context menu in composer for compatibility with WebKitGTK 1.8
2013-01-15 13:04:30 -08:00