[Scons-dev] How to traverse the graph after files are read
Gary Oberbrunner
garyo at oberbrunner.com
Wed May 20 11:43:55 EDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20150520/6e425e70/attachment.html>
More information about the Scons-dev
mailing list