A proxy that overrides variables in a wrapped construction
environment by returning values from an overrides dictionary in
preference to values from the underlying subject environment.
This is a lightweight (I hope) proxy that passes through most use of
attributes to the underlying Environment.Base class, but has just
enough additional methods defined to act like a real construction
environment with overridden values. It can wrap either a Base
construction environment, or another OverrideEnvironment, which
can in turn nest arbitrary OverrideEnvironments...
|
|
__init__(self,
subject,
overrides={})
Initialization of a basic SCons construction environment,
including setting up special construction variables like BUILDER,
PLATFORM, etc., and searching for and applying available Tools. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get(self,
key,
default=False)
Emulates the get() method of dictionaries. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_update(self,
dict)
Update an environment's values directly, bypassing the normal
checks that occur when users try to set items. |
source code
|
|
|
|
|
|
|
|
|
|
Replace(self,
**kw)
Replace existing construction variables in an Environment
with new construction variables and/or values. |
source code
|
|
|
Inherited from Base:
Action,
AddPostAction,
AddPreAction,
Alias,
AlwaysBuild,
Append,
AppendENVPath,
AppendUnique,
BuildDir,
Builder,
CacheDir,
Clean,
Clone,
Command,
Configure,
Copy,
Decider,
Depends,
Detect,
Dir,
Dump,
Entry,
Environment,
Execute,
File,
FindFile,
FindInstalledFiles,
FindIxes,
FindSourceFiles,
Flatten,
GetBuildPath,
Glob,
Ignore,
Literal,
Local,
NoCache,
NoClean,
ParseConfig,
ParseDepends,
Platform,
Precious,
Prepend,
PrependENVPath,
PrependUnique,
ReplaceIxes,
Repository,
Requires,
SConsignFile,
Scanner,
SetDefault,
SideEffect,
SourceCode,
SourceSignatures,
Split,
TargetSignatures,
Tool,
Value,
VariantDir,
WhereIs,
get_CacheDir,
get_builder,
get_factory,
get_scanner,
get_src_sig_type,
get_tgt_sig_type,
scanner_map_delete
Inherited from SubstitutionEnvironment:
AddMethod,
MergeFlags,
Override,
ParseFlags,
RemoveMethod,
__cmp__,
arg2nodes,
backtick,
subst,
subst_kw,
subst_list,
subst_path,
subst_target_source
|