[Scons-dev] How to traverse the graph after files are read

Alexandre Feblot alexandre at feblot.fr
Wed May 20 11:50:57 EDT 2015


I did such kind of traversal once: http://pastebin.com/KyEg5ngS
Maybe that was even based on something found in the wiki.

2015-05-20 17:43 GMT+02:00 Gary Oberbrunner <garyo at oberbrunner.com>:

>
> On Wed, May 20, 2015 at 11:25 AM, anatoly techtonik <techtonik at gmail.com>
> wrote:
>
>> I want to get target Node based on name passed from command line.
>> How to do that?
>>
>
> node = File(name)
>
> How to get list of all targets to be built?  User guide:
> http://www.scons.org/doc/HTML/scons-user/ch10s03.html#idp3074280
>
> the BUILD_TARGETS variable contains a list of the command-line targets,
> if any were specified, and if no command-line targets were specified, it
> contains a list of the targets specified via the Default method or
> function
>
>
> Note that it contains a list of Nodes, so you don't need to do anything,
> just iterate over it.
>
> --
> Gary
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20150520/3e5a2d5c/attachment.html>


More information about the Scons-dev mailing list