Rather then a one-off script, care to help me automate that
functionality in Reap?

Took a quick look, does it have any support for building c extensions?

The problem you'll run into is that you can't use extconf.rb on Windows with MinGW because all the CONFIG settings are based on VC++ and not on MingW. Ruby needs something like Python's DistUtils, which support for using various different compiles.

So, you have to roll your own solution (I don't know of any good one sadly). My approach with ruby-prof is to have a rakefile that I run from a msys prompt that invokes gcc. You could of course just use Make instead.

I've just reached an early beta status with
this project, and these two features are on the upcoming todo list:
binary platform packages and mingw Windows cross compile.

I wouldn't bother with the cross-compile (if you mean build Windows libraries on Linux or some other OS). First you'll need access to the VC++ ruby libraries. Second I can't see how that will work anymore in the latest version of Ruby Gems (which seems to require building on the same OS and what you deploy to, at least for Windows).

Long story short - you have to roll a custom solution for MinGw and create a separate GEM for win32. I'd love if there is a better way, but I've never found one.

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to