[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Shiping headers with a ruby extension

Detlef Reichl

4/28/2007 1:33:00 PM

Hi,

i have written a ruby extension, that should be the base for other
extensions. So i have to ship some of its header files.

I use setup.rb in the main directory and extconf.rb (mkmf) in the
extensions directory.

I came about something like:

$INSTALLFILES ||= []
$INSTALLFILES << ["types.h", "$(RUBYARCHDIR)/$(target_prefix)", "lib"]

included in the extconf.rb but it doesn't work.

I know, that i can do it with a post-install.rb script, but i hope that
there is a better solution.

cheers
detlef