Post date: Feb 14, 2017 6:33:13 AM
Written in python, the Software Construction tool provides a very flexible framework in which to build software projects.
A tree of interrelated build commands is constructed on the first pass, and then executed.
sContruct
sConscript
Builder: Provides a simple mechanism to implement a set of actions on SOURCES and create TARGETS
Action:
Command: A simple type of Builder
SOURCES: input files to monitor for changes
TARGETS: output files changed or created by Builder or Command
Depends: Associates
Best practice
It's very tempting to put all code inside sConstruct and Sconscript files. But this makes the code difficult to test.
Better to create Builder python modules that are in the scons dir.
This allows unit tests to be run against the modules and makes the flow of the scons files easier to understand.