[Scons-users] Default() and Ignore() - seem a little awkward

Mats Wichmann mats at wichmann.us
Fri Jan 4 18:12:38 EST 2019


On 1/4/19 3:55 PM, Bill Deegan wrote:
> Could what you want to do be better achieved by not adding the examples in
> your relevant SConscript if such target(s) aren't asked for?

In theory. That's kind of what the use of Default implies - don't add
them if they're not asked for, no?

In practice there are some issues for this setup - e.g. the helpful
dividing up of each area into multiple areas (src, test, sample), each
with its own sconscript, makes that harder, since apparently a
sconscript with no targets at all isn't benign. Also that there are so
many examples to be excluded-but-not-removed that describing what to
include/exclude would bloat something - command-line options, internal
flags, etc. Could turn off lots easily, then how to turn one back on?
That stuff is our problem, of course.



More information about the Scons-users mailing list