[Scons-users] Print out messages only if target is building

Anna Cheremnykh anna at unigine.com
Thu Aug 2 02:09:12 EDT 2018


On 02.08.2018 7:26, scons-users-request at scons.org wrote:
> I understood the question this way, maybe got it wrong:
>
> a bunch of targets defined, each a sample app, including x and y
>
> if I ask for x, y on scons command line, and x cannot build due to
> external reason (missing tools), print a message and skip x
>
> if I ask for y then don't print the message about skipping x since it's
> irrelevant anyway

Exactly.

> I think you can look at COMMAND_LINE_TARGETS and BUILD_TARGETS to maybe
> figure something out?

I think it is suitable solution. Trying to add "if target in 
COMMAND_LINE_TARGETS" statement and it seems to work as expected. Thanks!

-- 
Anna Cheremnykh



More information about the Scons-users mailing list