Re: manipulating COMMAND_LINE_TARGETS

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-51114171-8e8f-48e9-a488-096dd2277666-1594907643025@3c-app-mailcom-bs07>
Thanks Mats,

I'll look into it.

> Sent: Thursday, July 16, 2020 at 4:49 PM
> From: "Mats Wichmann" <[email protected]>
> To: [email protected]
> Subject: Re: [Scons-users] manipulating COMMAND_LINE_TARGETS
>
> On 7/16/20 12:40 AM, daggs wrote:
> > Greetings,
> >
> > I know I can manipulate DEFAULT_TARGETS by using the Default cmd (Default(target) adds target to DEFAULT_TARGETS and Default(None) clears DEFAULT_TARGETS)
> > but if COMMAND_LINE_TARGETS is set, than scons ignore DEFAULT_TARGETS and uses COMMAND_LINE_TARGETS.
> > my question is, is there an Default equivalent for COMMAND_LINE_TARGETS manipulation?
> >
> > the reason I'm asking is that I want to implement a "target translator", e.g.
> > if I have three targets:
> > a/b/c/d, a/b/c1/d1, a/b/c2/d2
> > I want to be able to map a name to target, e.g.
> > target0 => a/b/c/d
> > target1 => a/b/c1/d1
> > target2 => a/b/c2/d2
> >
> > so running scons a/b/c/d and scons target0 will have the same affect.
>
> Try Alias.
>
> https://scons.org/doc/4.0.0/HTML/scons-man.html#f-Alias
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.