Subject:
Re: [ruby-ffi] Re: Other compilers?
From:
Jesús García Sáez <blaxter@gmail.com>
Date:
2/1/10 8:57 AM
To:
ruby-ffi@googlegroups.com



On Mon, Feb 1, 2010 at 15:34, Jon <jon.forums@gmail.com> wrote:
> On Sat, Jan 30, 2010 at 3:27 PM, Daniel Berger <djberg96@gmail.com> wrote:
> >
> > Someone pointed me to this:
> >
> > http://industriousone.com/premake
> >
> > Anyone tried it?
> >
>
> Yes, is nice but abstract and can end being complex.
>
> It doesn't support mingw32 cross compiling functionality either from
> fedora, macports or ubuntu packages, so it requires some tricks to
> make it generate proper GNU makefiles for those cases.
>
> If your library/dependency chain depends on autoconf, expect
> reinventing the wheel to create the premake files.
>

FWIW, I also keep meaning to check out

http://www.cmake.org/

and the LLVM project has an quickstart page that links to page that tells how to cross compile with cmake

http://www.llvm.org/docs/CMake.html

Anyone tried cmake?


I'm using cmake for my c++ projects, it's really great. You can generate makefiles for a unix environment (just cmake <dir with CMakeList.txt>) or for another environments out-of-the-box (like mingw with -G "MSYS Makefiles"). Really easy to use (put your cpp files, your flags, include directories, libraries) and quite powerful (for example you have conditions, like IF(WIN32) .... ELSE ... ENDIF(WIN32)).

The last versions of boost (since 1.40) have a package for bulding it with cmake, and I think they want to make cmake their default build software.


Jon