...
facilitiesLib = env.StaticLibrary('facilities', glob.glob(os.path.join('src','*.cxx')))
This line creates a variable called facilitiesList. It says to create a static library called facilities and these are the source files
<span style="color: #3300ff">registerObjectsfiles Wiki Markup
</span> Wiki Markup registerObjects('facilities',
\{ 'libraries': \[facilitiesLib\], 'includes': glob.glob(os.path.join('facilities','*.h'))}
)
We set up the compiler options, macros, etc in a SCons "environment". In this case, the environment is imported from "baseEnv" which is set up in the SConstruct and the external.scons files at the top-level of ScienceTools. It is imperative that the SConscript files COPY the baseEnv, and update the copy, rather than updating baseEnv directly. The reason is that any changes to baseEnv will propagate to all packages, even retroactively.
...