Hi Hamish,

I'm not quite sure where these IDL files come from, but I guess it's  
reasonable to package them with the cabal file and get something  
working.

Assuming that these file are representing the content of the cabal  
packages, you just have to make sure that the version of Gtk+ you're  
using is at least the one that the files were generated for.

Cheers,
Axel

On 23.09.2012, at 05:11, Hamish Mackenzie wrote:

> The latest GHCJS Hello World (http://ghcjs.github.com/bin/ghcjs-hello.jsexe 
> ) can be built with regular GHC and Gtk2Hs.  With something like....
>
> sudo apt-get install libwebkitgtk-dev
> darcs get http://patch-tag.com/r/hamish/webkit
> cd webkit
> cabal install
> cd ..
> git clone https://github.com/ghcjs/ghcjs-dom.git
> cd ghcjs-dom
> cabal install
> cd ..
> git clone https://github.com/ghcjs/ghcjs-examples.git
> cd ghcjs-examples/webkit-sodium
> cabal install
> cd ../ghcjs-hello
> cabal install
> ghcjs-hello
>
> I would like to be able to make it so that people can just type...
>
> sudo apt-get install libwebkitgtk-dev
> cabal install ghcjs-hello
> ghcjs-hello
>
> Can we add the bindings as they are to Hackage?  They are actually  
> mostly generated from the WebKit IDL files using 
> https://github.com/ghcjs/domconv-webkit 
>  so we have a few options...
> 1) Add the generated files as they are
> 2) Include the generator and IDL files and build them during the  
> install
> 3) Include the generator and look for the IDL files
>
> I think 3) is out as even the libwebkitgtk-dev does not include the  
> IDL files, they are only in the source.  They could easily change in  
> the future and break the build.
>
> I think option 2) is a lot of work for little benefit at this  
> point.  Also it adds a whole bunch of things to go wrong during the  
> build.
>
> My preference is for option 1) and we can look at option 2) in the  
> future if we need to (I know it kind of sucks to have generated  
> files in the repo).
>
> Hamish
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> Gtk2hs-devel mailing list
> Gtk2hs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to