On Monday 20 November 2006 20:25, David Abrahams wrote:
> Vladimir Prus <ghost cs.msu.su> writes:
> >> That splits current
"<build>yes" into what we actually have of
implicit
> >> vs. explicit building. This way we can do the
more convenient of setting
> >> "<build>explicit" at the
project level, and then be able to select
> >> specific targets to <build>implicit.
> >
> > I'm afraid this won't place nice with target
alternatives:
>
> ^^^^^
> "play"
>
> > obj foo : foo_msvc.c : <toolset>msvc ;
> > obj foo : foo_gcc.c : <toolset>gcc ;
> > explicit foo ;
> >
> > To make 'explicit' a value of a 'build' property,
you'd have to duplicate
> > it.
>
> Surely when declaring target alternatives, the
likelihood that
> something must be duplicated (e.g. "obj foo"
) is
quite high? I
> don't see why "explicit" deserves special
treatment to avoid
> duplication and I like Rene's suggestion.
>
> Actually, I would prefer to see something like:
>
> obj foo
>
> : [ alternative foo_msvc.c : <toolset>msvc ]
>
> [ alternative foo_gcc.c : <toolset>gcc ]
>
> : explicit # common requirements here
>
> ;
>
> which further improve declarativeness as well as
removing more
> duplication.
I think that such syntax has some advantages. In fact, I
plan to
implement "named parameters" for main rules really
soon now,
and this syntax might be fused with it.
But let's do one thing at a time -- good or bad,
"explicit foo" works now.
Rene, will you make install targets explicit, or should I?
After that, can either Dave or Rene enter a new ticket about
better syntax?
Thanks,
Volodya
But let's
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|