[Omake] Re: Building in subdirectories and variant builds
revisited
Jesper Eskilson
jesper at eskilson.se
Mon Jun 18 12:05:49 PDT 2007
2007/6/18, Aleksey Nogin <anogin at hrl.com>:
> On 08.06.2007 05:20, Jesper Eskilson wrote:
>
> > SCons has an excellent solution to this, where you specify the build
> > directory as a parameter to the SConscript function (corresponding to
> > the .SUBDIRS command in OMake).
> >
> > config = "Debug"
> > SConscript("my-project", build_dir = "build/my-project/%s" % config)
> >
> > Very simple and direct, no vmount needed. It would be great if something
> > similar was possible to do with OMake.
>
> Well, this is only simple if all the subsequent configuration stuff
> knows how to handle this. When you create the command lines for all the
> build steps, you need to know where all the source files live. If they
> are the true source files, they should be taken from the source
> directory; however if they are generated (e.g. by yacc), they need to be
> taken from the build directory. This lookup is exactly what vmount was
> meant to help with.
I meant "simple" from the user point-of-view, not from the
implementors point-of-view. I'm sure the actual implementation of it
isn't trivial.
--
/Jesper
More information about the Omake
mailing list