Subject:
Re: [ruby-ffi] [ANN] ffi-compiler 0.0.1
From:
Jeremy Voorhis
Date:
1/15/13 5:07 PM
To:
ruby-ffi@googlegroups.com

Agreed. And if this existed about a year ago, I might not have made my misguided attempt to implement autotools in the ext/ directory!


On Tue, Jan 15, 2013 at 2:58 PM, Wayne Meissner <wmeissner@gmail.com> wrote:

Yep - its aimed at that type of scenario.  Implementing it yourself isn't rocket science, but its another speed bump for people who just want to write some C or C++ code and call it from ruby.  The very last thing we want is them using the legacy cext interface because its easier - especially since it is unsupported in JRuby.


On Wednesday, 16 January 2013 08:34:52 UTC+11, Jeremy wrote:
This looks promising. The ruby-llvm project already does something similar, but with a custom Rakefile[1].



On Tue, Jan 15, 2013 at 1:04 PM, Wayne Meissner <wmei...@gmail.com> wrote:

I have released a new gem - ffi-compiler (https://github.com/ffi/ffi-compiler) - to help people who need to need to write custom C code (e.g. for C++ shims), but don't want to get bogged down with figuring out how to compile that into a shared library and have everything install & load correctly when their gem is installed.