...
Make _setup.bat (for Windows) and _setup (for other OSes) a separate target. Eliminate _setup.vbs. Mostly affects the tool generateScripts.py.
Wiki Markup |
---|
{highlight:cyanyellow}{*}June 9* {highlight} |
Wiki Markup |
---|
{highlight:green}{*}June 15* {highlight} |
Externals handling
Reorganize externals.scons. Separate from code; keep common parts in SConsFiles (used by all containers). Individual containers should only need to specify which externals (and which versions) are wanted. Will probably take the form of
...
Invocation in SConstruct will look like this:
Code Block |
---|
allExternals = SConscript('allExternals.scons') |
...
usedExternals = SConscript('externals.scons', exports = 'allExternals') |
...
SConscript('processExternals.scons', exports = 'allExternals usedExternals') |
The per-container externals.scons looks like this:unmigrated-wiki-markup
Import('allExternals')
\\
usedExternals
=
\ [
\] \\
<span style="color: red"> # several lines like the following, one for each external used by the container</span> \\
]
# several lines like the following, one for each external used by the container
usedExternals.append(
\{'name'
:
'cfitsio',
'iversion'
:
'v3060'
\})
\\
<span style="color: red"> # # ..
and
finally </span> \\
finally
Return('usedExternals')
Target names
Separate out target names, probably into master file, to be kept somewhere in SConsFiles, and optional per-container file. These files would be accessible both to SCons itself and to GoGui. Format will be two lists (one or both of which may be empty). First is list of global targets (e.g. includes); second is list of generic per-package target names to which package name should be prepended (e.g. -includes, resulting in a target for each package in the container like facilities-includes)