[Omake] Building in subdirectories and variant builds revisited

Jesper Eskilson jesper at eskilson.se
Fri Jun 8 01:54:53 PDT 2007


Hi all,

I'm really having trouble in getting variant builds to work nicely
with subdirectory builds. The setup is as follows:

- At the toplevel there are a bunch of project, each one builds a
shared or static library.
- Each project is located in a subdirectory.
- The source code for each project is spread out over several
subdirectories under the project's directory.

I want to be able to do "variant builds" (i.e. Debug, Release, etc.).
Ideally I would like to be able to parametrize the build directory
(i.e. where all compiled stuff is placed).

What is the "canonical" way of doing this? My main problems at the moment are:

- vmount is not transparent; I need to explicitly use $(file ...) in
order for files to be translated properly, and even that causes
problems.
- vmount requires that the target directory exists, this means that I
must manually create the entire build directory.

I could probably code around these issues, but I get the feeling that
I'm doing things the wrong way.

I really like OMake (especially the performance-wise), but I'm quickly
getting to the point where vmount's behavior is becoming a too large
obstacle for OMake to be an option for me.

-- 
/Jesper


More information about the Omake mailing list