[Scons-users] changing the build directory

Evan Driscoll driscoll at cs.wisc.edu
Mon Mar 11 10:08:12 EDT 2013


On 03/11/2013 03:13 AM, Dirk Bächle wrote:

> 2.) use Glob within your SConscript to find all source files like this

>

> |Program(target = 'main.bin', source = Glob('*.cpp'))|

>

> This will, in contrast to your approach, also find files that don't

> exist yet (because they get created during the build itself).


However, it won't find files in subdirectories. Again, SCons's Glob's
lack of a recursive option rears its head.

(I could be wrong, but my guess is that's why os.walk was being used in
the first place instead of just os.listdir or something.)

Evan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20130311/ffd5e4d8/attachment.pgp>


More information about the Scons-users mailing list