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.
|
PlatformSpec
|
|
TempFileMunge
A callable class. You can set an Environment variable to this,
then call it with a string argument, then it will perform temporary
file substitution on it. This is used to circumvent the long command
line limitation.
|
|
|
|
|
|
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 27552f9e ...
|
|
__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 27552f9e8d59c13c3567f2bd380b74e
34ee25324 2019-01-08 02:59:02 bdbaddog '
|
|