SCons User Guide 1.1.0 | ||
---|---|---|
<<< Previous | Less Simple Things to Do With Builds | Next >>> |
You can also use the Glob function to find all files matching a certain template, using the standard shell pattern matching characters *, ? and [abc] to match any of a, b or c. [!abc] is also supported, to match any character except a, b or c. This makes many multi-source-file builds quite easy:
Program('program', Glob('*.c')) |
The SCons man page has more details on using Glob with Variant directories and Repositories, and returning strings rather than Nodes.
<<< Previous | Home | Next >>> |
Compiling Multiple Source Files | Up | Specifying Single Files Vs. Lists of Files |