| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Package Script :: Module SConscript :: Class SConsEnvironment |
|
SubstitutionEnvironment--+ |Base--+ | SConsEnvironment
An Environment subclass that contains all of the methods that are particular to the wrapper SCons interface and which aren't (or shouldn't be) part of the build engine itself.
Note that not all of the methods of this class have corresponding global functions, there are some private methods.
| Method Summary | |
|---|---|
Configure(self,
*args,
**kw)
| |
Default(self,
*targets)
| |
Exit abnormally if the Python version is not late enough. | |
Exit abnormally if the SCons version is not late enough. | |
Exit(self,
value)
| |
Export(self,
*vars)
| |
GetLaunchDir(self)
| |
GetOption(self,
name)
| |
Help(self,
text)
| |
Import(self,
*vars)
| |
SConscript(self,
*ls,
**kw)
| |
SConscriptChdir(self,
flag)
| |
SetOption(self,
name,
value)
| |
Return 1 if 'major' and 'minor' are greater than the version in 'v_major' and 'v_minor', and 0 otherwise. | |
Split a version string into major, minor and (optionally) revision parts. | |
Convert the parameters passed to # SConscript() calls into a list of files and export variables. | |
| Inherited from Base | |
Initialization of a basic SCons construction environment, including setting up special construction variables like BUILDER, PLATFORM, etc., and searching for and applying available Tools. | |
| |
| |
| |
| |
| |
Append values to existing construction variables in an Environment. | |
Append path elements to the path 'name' in the 'ENV' dictionary for this environment. | |
Append values to existing construction variables in an Environment, if they're not already there. | |
| |
| |
| |
| |
Return a copy of a construction Environment. | |
Builds the supplied target files from the supplied source files using the supplied action. | |
| |
| |
Explicity specify that 'target's depend on 'dependency'. | |
Return the first available program in progs. | |
| |
| |
Using the standard Python pretty printer, dump the contents of the scons build environment to stdout. | |
| |
| |
Directly execute an action through an Environment | |
| |
| |
returns the list of all targets of the Install and InstallAs Builder. | |
Search a list of paths for something that matches the prefix and suffix. | |
returns a list of all source files. | |
| |
Fetch the builder with the specified name from the environment. | |
| |
Return a factory function for creating Nodes for this construction environment. | |
Find the appropriate scanner given a key (usually a file suffix). | |
| |
| |
| |
| |
Ignore a dependency. | |
| |
| |
Tags a target so that it will not be cached | |
Tags a target so that it will not be cleaned by -c | |
Use the specified function to parse the output of the command in order to modify the current environment. | |
Parse a mkdep-style file for explicit dependencies. | |
| |
| |
Prepend values to existing construction variables in an Environment. | |
Prepend path elements to the path 'name' in the 'ENV' dictionary for this environment. | |
Append values to existing construction variables in an Environment, if they're not already there. | |
Replace existing construction variables in an Environment with new construction variables and/or values. | |
Replace old_prefix with new_prefix and old_suffix with new_suffix. | |
| |
Specify that 'prerequisite' must be built before 'target', (but 'target' does not actually depend on 'prerequisite' and need not be rebuilt if it changes). | |
| |
Delete the cached scanner map (if we need to). | |
| |
| |
Tell scons that side_effects are built as side effects of building targets. | |
Arrange for a source code builder for (part of) a tree. | |
| |
This function converts a string or list into a list of strings or Nodes. | |
| |
| |
| |
Find prog in the path. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Update an environment's values directly, bypassing the normal checks that occur when users try to set items. | |
| Inherited from SubstitutionEnvironment | |
| |
| |
| |
| |
Adds the specified function as a method of this construction environment with the specified name. | |
| |
| |
Emulates the get() method of dictionaries. | |
| |
| |
| |
| |
Merge the dict in args into the construction variables. | |
Produce a modified environment whose variables are overriden by the overrides dictionaries. | |
Parse the set of flags and return a dict with the flags placed in the appropriate entry. | |
Removes the specified function's MethodWrapper from the added_methods list, so we don't re-bind it when making a clone. | |
Recursively interpolates construction variables from the Environment into the specified string, returning the expanded result. | |
| |
Calls through to SCons.Subst.scons_subst_list(). | |
Substitute a path list, turning EntryProxies into Nodes and leaving Nodes (and other objects) as-is. | |
Recursively interpolates construction variables from the Environment into the specified string, returning the expanded result. | |
Initial the dispatch tables for special handling of special construction variables. | |
| Class Variable Summary | |
|---|---|
| Inherited from Base | |
list |
memoizer_counters = [<SCons.Memoize.CountValue instance ...
|
| Method Details |
|---|
EnsurePythonVersion(self, major, minor)Exit abnormally if the Python version is not late enough. |
EnsureSConsVersion(self, major, minor, revision=0)Exit abnormally if the SCons version is not late enough. |
_exceeds_version(self, major, minor, v_major, v_minor)Return 1 if 'major' and 'minor' are greater than the version in 'v_major' and 'v_minor', and 0 otherwise. |
_get_major_minor_revision(self, version_string)Split a version string into major, minor and (optionally) revision parts. This is complicated by the fact that a version string can be something like 3.2b1. |
_get_SConscript_filenames(self, ls, kw)Convert the parameters passed to # SConscript() calls into a list of files and export variables. If the parameters are invalid, throws SCons.Errors.UserError. Returns a tuple (l, e) where l is a list of SConscript filenames and e is a list of exports. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 | http://epydoc.sf.net |