[Omake] Re: Building in subdirectories and variant builds
revisited
Aleksey Nogin
nogin at metaprl.org
Mon Jun 18 11:54:26 PDT 2007
On 08.06.2007 05:55, David Kågedal wrote:
>> (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.
>
That's kind of true. I believe that this is an unfortunate limitation
and we ought to figure out a "right" way of fixing this.
I have to admit - I have not used the vmount myself, so I do not know
all the limitations of it (I should probably try creating a vmount'ed
version of OMake self-build specs to see what they are).
Perhaps a solution would be to introcude a 3-place form of .SUBDIRS -
e.g. something like
.SUBDIRS: build_dir: src_dir
that would then "do the right thing" (whatever that is - I have not
idea). I guess, it would be something like vmount, but smarter?). May be
the differences with vmount should be that:
- the build dir does not have to exist, but creating it becomes an
implicit dependency of each of the targets inside it
- if the subdirs does not have a body, it will attempt to read the
first of build_dir/OMakefile src_dir/OMakefile that exists.
I'll have to think a bit about this...
Jason, you obviously know a lot more about this - do you have any
thoughts on how to make variant builds a bit more natural in OMake?
Aleksey
More information about the Omake
mailing list