Package SCons :: Module Defaults
[show private | hide private]
[frames | no frames]

Module SCons.Defaults

SCons.Defaults

Builders and other things for the local site.  Here's where we'll
duplicate the functionality of autoconf until we move it into the
installation procedure or use something like qmconf.

The code that reads the registry to find MSVC components was borrowed
from distutils.msvccompiler.

Classes
NullCmdGenerator This is a callable class that can be used in place of other command generators if you don't want them to do anything.
Variable_Method_Caller A class for finding a construction variable on the stack and calling one of its methods.

Function Summary
  chmod_func(path, mode)
  copy_func(dest, src)
  DefaultEnvironment(*args, **kw)
Initial public entry point for creating the default construction Environment.
  delete_func(entry, must_exist)
  delete_strfunc(entry, must_exist)
  SharedFlagChecker(source, target, env)
  SharedObjectEmitter(target, source, env)
  StaticObjectEmitter(target, source, env)
  touch_func(file)
  _concat(prefix, list, suffix, env, f, target, source)
Creates a new list from 'list' by first interpolating each element in the list using the 'env' dictionary and then calling f on the list, and finally calling _concat_ixes to concatenate 'prefix' and 'suffix' onto each element of the list.
  _concat_ixes(prefix, list, suffix, env)
Creates a new list from 'list' by concatenating the 'prefix' and 'suffix' arguments onto each element of the list.
  _defines(prefix, defs, suffix, env, c)
A wrapper around _concat_ixes that turns a list or string into a list of C preprocessor command-line definitions.
  _fetch_DefaultEnvironment(*args, **kw)
Returns the already-created default construction environment.
  _stripixes(prefix, list, suffix, stripprefix, stripsuffix, env, c)
This is a wrapper around _concat()/_concat_ixes() that checks for the existence of prefixes or suffixes on list elements and strips them where it finds them.

Function Details

DefaultEnvironment(*args, **kw)

Initial public entry point for creating the default construction Environment.

After creating the environment, we overwrite our name (DefaultEnvironment) with the _fetch_DefaultEnvironment() function, which more efficiently returns the initialized default construction environment without checking for its existence.

(This function still exists with its _default_check because someone else (cough Script/__init__.py cough) may keep a reference to this function. So we can't use the fully functional idiom of having the name originally be a something that only creates the construction environment and then overwrites the name.)

_concat(prefix, list, suffix, env, f=<function <lambda> at 0xb65c08>, target=None, source=None)

Creates a new list from 'list' by first interpolating each element in the list using the 'env' dictionary and then calling f on the list, and finally calling _concat_ixes to concatenate 'prefix' and 'suffix' onto each element of the list.

_concat_ixes(prefix, list, suffix, env)

Creates a new list from 'list' by concatenating the 'prefix' and 'suffix' arguments onto each element of the list. A trailing space on 'prefix' or leading space on 'suffix' will cause them to be put into separate list elements rather than being concatenated.

_defines(prefix, defs, suffix, env, c=<function _concat_ixes at 0xb65cf8>)

A wrapper around _concat_ixes that turns a list or string into a list of C preprocessor command-line definitions.

_fetch_DefaultEnvironment(*args, **kw)

Returns the already-created default construction environment.

_stripixes(prefix, list, suffix, stripprefix, stripsuffix, env, c=None)

This is a wrapper around _concat()/_concat_ixes() that checks for the existence of prefixes or suffixes on list elements and strips them where it finds them. This is used by tools (like the GNU linker) that need to turn something like 'libfoo.a' into '-lfoo'.


Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net