Package Platform
source code
SCons.Platform
SCons platform selection.
This looks for modules that define a callable object that can modify a
construction environment as appropriate for a given platform.
Note that we take a more simplistic view of "platform" than Python does.
We're looking for a single string that determines a set of
tool-independent variables with which to initialize a construction
environment. Consequently, we'll examine both sys.platform and os.name
(and anything else that might come in to play) in order to return some
specification which is unique enough for our purposes.
Note that because this subsystem just selects a callable that can
modify a construction environment, it's possible for people to define
their own "platform specification" in an arbitrary callable function.
No one needs to use or tie in to this subsystem in order to roll
their own platform definition.
|
|
|
|
|
DefaultToolList(platform,
env)
Select a default tool list for the specified platform. |
source code
|
|
|
Platform(name=' posix ' )
Select a canned Platform specification. |
source code
|
|
|
__revision__ = ' src/engine/SCons/Platform/__init__.py 3a41ed6b ...
|
|
__package__ = ' SCons.Platform '
|
Return the platform string for our execution environment.
The returned value should map to one of the SCons/Platform/*.py
files. Since we're architecture independent, though, we don't
care about the machine architecture.
|
Return the imported module for the platform.
This looks for a module name that matches the specified argument.
If the name is unspecified, we fetch the appropriate default for
our execution environment.
|
__revision__
- Value:
' src/engine/SCons/Platform/__init__.py 3a41ed6b288cee8d085373ad7fa0289
4e1903864 2019-01-23 17:30:35 bdeegan '
|
|