On Tue, May 22, 2012 at 9:26 AM, C Anthony Risinger <[email protected]> wrote: > On Fri, May 18, 2012 at 9:32 AM, Lex Berezhny <[email protected]> wrote: >> On Fri, May 18, 2012 at 10:14 AM, Rene Maurer <[email protected]> wrote: >>> On 05/18/2012 at 09:05 Jim Washington <[email protected]> wrote: >>> ... so hei Anthony when will the "GObject bindings" be ready? >>> (pyjs without pyjd is a real pain)? >> >> +1 >> >> I think a lot of people are really looking forward to the gobject >> bindings that Anthony is working on. (Anthony, are you reading this? >> *wink* *wink* *nudge* *nudge*) > > i will push a branch later today with the code for this. it's > remarkably small, and should be taken as highly experimental at this > point. IIRC it can run event-less/timer-less/AJAX-less examples fine > (ie. DOM-only) > > it will also require a patch to vanilla webkit; i will include a link > to the patch when i publish the branch.
see branch here: https://github.com/pyjs/pyjs/tree/develop-giwebkit ... single file added, `pyjd/giwebkit.py`: https://github.com/pyjs/pyjs/commit/23b49bf2609cf297e9b4208c7181d9f00f2be282 ... REQUIRES a patch to VANILLA WebKit: https://github.com/downloads/pyjs/pyjs/bug77835.patch ... MUST use development version, not release tarball (the patch makes changes to automake files)!!! http://builds.nightly.webkit.org/files/trunk/src/WebKit-r118336.tar.bz2 i'm way bast bedtime on a "school" night! i haven't tested for awhile, but IIRC it was working when i paused. instructions are crude ... will expand/verify soon ... mine is building again as we speak. Archlinux requirements below, other distros will need `-dev` versions for make deps (`apt-get build-dep libwebkit3`) ... RUN DEPS: libxt libxslt sqlite icu gstreamer0.10-base libsoup enchant libgl geoclue gtk3 MAKE DEPS: gperf gobject-introspection python2 gtk3 mesa INSTALL CCACHE. MAKE SURE IT'S USED (export path or similar ...). IT IS YOUR BESTEST FRIEND. 2ND BUILD WILL TAKE LESS THAN 5 MINUTES, IF THAT ;-) # wget http://builds.nightly.webkit.org/files/trunk/src/WebKit-r118336.tar.bz2 # wget http://cloud.github.com/downloads/pyjs/pyjs/bug77835.patch # cd WebKit-r118336 # patch -p1 < ../bug77835.patch # mkdir build # cd build # PYTHON=/usr/bin/python2 ../autogen.sh --enable-introspection --with-font-backend=freetype --with-unicode-backend=icu --enable-spellcheck --with-gtk=3.0 # make all stamp-po # make install ... finally make sure you have this file (to force the new engine): # cat ~/.pyjd/pyjdrc [gui] engine=giwebkit if all goes well you should be able to run the helloworld example at the very least. more than likely though, if installing to /usr/local, you will have to export some additional ENV vars to pickup the GI typelibs (the mechanism pygi uses to generate dynamic bindings to libwebkit3) ... not sure off-hand what they are (normally i build a package and replace the existing libwebkit3) but i'll look into that. thanks, -- C Anthony
