[Omake] Re: Out-of-tree builds

David Kågedal davidk at lysator.liu.se
Wed Jan 24 02:50:38 PST 2007


"Phil Endecott" <spam_from_omake at chezphil.org> writes:

> Hi,
>
> Has any thought been given to using omake for out-of-tree builds of C
> / C++ programs?  My motivation is supporting cross-compilation to
> multiple architectures from the same source tree, e.g.

With OMake's design, it is not possible to do real out-of-tree builds,
if you mean outside-the-project-dir. However, it is possible to to
in-tree builds with separate build directories for different build
hosts.

>    |
>    +-- src
>    |
>    +-- build_x86
>    |
>    +-- build_arm

This seems to be inside the tree, so it should work fine.  As said in
another answer, you need to look at the vmount feature.

> src contains all the .c and .h files.  I want to be able to cd into
> one of the build directories and omake there to generate
> architecture-specific object files and executables.  The build
> directories would contain minimal OMakefiles defining the tool prefix.
>
> The same sort of arangement is useful for debug builds in one place
> and production builds in another, and so on.
>
> It would be great if someone had already found the simplest way to do
> this, or else could suggest where I should start.
>
> Thanks,
>
> Phil.

-- 
David Kågedal



More information about the Omake mailing list