[Omake] Re: Building in subdirectories and variant builds revisited

Jesper Eskilson jesper at eskilson.se
Mon Jun 18 12:07:09 PDT 2007


2007/6/18, Aleksey Nogin <nogin at metaprl.org>:
> 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

Yes, I suppose.

>   - if the subdirs does not have a body, it will attempt to read the
> first of build_dir/OMakefile src_dir/OMakefile that exists.

Well, no. There shouldn't be any OMakefiles under build_dir.

-- 
/Jesper


More information about the Omake mailing list