[Omake] Re: Building in subdirectories and variant
builds revisited
Aleksey Nogin
anogin at hrl.com
Mon Jun 18 11:57:32 PDT 2007
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.
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list