Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

facilitiesLib = env.StaticLibrary('facilities', glob.glob(os.path.join('src','*.cxx')))

Wiki MarkupThis line creates a variable called facilitiesList.&nbsp;   It says to create a static library called facilities and these are the source files <span style="color: #3300ff">registerObjectsfiles

Wiki Markup
registerObjects('facilities',
</span>
 \{ '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.

...