[Omake] Re: Building in subdirectories and variant builds revisited
David Kågedal
davidk at lysator.liu.se
Fri Jun 8 05:55:10 PDT 2007
"Jesper Eskilson" <jesper at eskilson.se> writes:
>> > - vmount requires that the target directory exists, this means that I
>> > must manually create the entire build directory.
>>
>> Yeah. This is hard to get around since omake needs to scan everything
>> before it even starts to consider what to actually build. This means
>> that you cannot have e.g. build directories created depending on which
>> targets you give on the command line.
>
>
> But the build directory itself is not part of the build; its just a
> convenient way of separating different build types.
>
> 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.
I suppose it does setup some kind of vmount for you.
> (I get the feeling that variant builds wasn't considered when OMake was
> designed, and has been glued on afterwards in the form of vmount.)
I'll go one step further and say that even separate source and build
directories wasn't part of the original design spec.
--
David Kågedal
More information about the Omake
mailing list