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

Module Defaults

source code

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 [hide private]
  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.
Functions [hide private]
 
_fetch_DefaultEnvironment(*args, **kw)
Returns the already-created default construction environment.
source code
 
DefaultEnvironment(*args, **kw)
Initial public entry point for creating the default construction Environment.
source code
 
StaticObjectEmitter(target, source, env) source code
 
SharedObjectEmitter(target, source, env) source code
 
SharedFlagChecker(source, target, env) source code
 
get_paths_str(dest) source code
 
chmod_func(dest, mode) source code
 
chmod_strfunc(dest, mode) source code
 
copy_func(dest, src, symlinks=True)
If symlinks (is true), then a symbolic link will be shallow copied and recreated as a symbolic link; otherwise, copying a symbolic link will be equivalent to copying the symbolic link's final target regardless of symbolic link depth.
source code
 
delete_func(dest, must_exist=0) source code
 
delete_strfunc(dest, must_exist=0) source code
 
mkdir_func(dest) source code
 
move_func(dest, src) source code
 
touch_func(dest) source code
 
_concat(prefix, list, suffix, env, f=<__builtin__.function object>, 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.
source code
 
_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.
source code
 
_stripixes(prefix, itms, suffix, stripprefixes, stripsuffixes, env, c=None)
This is a wrapper around _concat()/_concat_ixes() that checks for the existence of prefixes or suffixes on list items 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'.
source code
 
processDefines(defs)
process defines, resolving strings, lists, dictionaries, into a list of strings
source code
 
_defines(prefix, defs, suffix, env, c=<__builtin__.function object>)
A wrapper around _concat_ixes that turns a list or string into a list of C preprocessor command-line definitions.
source code
 
__libversionflags(env, version_var, flags_var) source code
Variables [hide private]
  __revision__ = 'src/engine/SCons/Defaults.py 3a41ed6b288cee8d0...
  _default_env = None
hash(x)
  SharedCheck = <SCons.Action.FunctionAction object>
  CScan = <SCons.Scanner.ClassicCPP object>
  DScan = <SCons.Scanner.D.D object>
  LaTeXScan = <SCons.Scanner.LaTeX.LaTeX object>
  ObjSourceScan = <SCons.Scanner.Base object>
  ProgScan = <SCons.Scanner.Base object>
  DirScanner = <SCons.Scanner.Base object>
  DirEntryScanner = <SCons.Scanner.Base object>
  CAction = <SCons.Action.LazyAction object>
  ShCAction = <SCons.Action.LazyAction object>
  CXXAction = <SCons.Action.LazyAction object>
  ShCXXAction = <SCons.Action.LazyAction object>
  DAction = <SCons.Action.LazyAction object>
  ShDAction = <SCons.Action.LazyAction object>
  ASAction = <SCons.Action.LazyAction object>
  ASPPAction = <SCons.Action.LazyAction object>
  LinkAction = <SCons.Action.LazyAction object>
  ShLinkAction = <SCons.Action.LazyAction object>
  LdModuleLinkAction = <SCons.Action.LazyAction object>
  permission_dic = {'g': {'r': 32, 'w': 16, 'x': 8}, 'o': {'r': ...
  Chmod = <SCons.Action.ActionFactory object>
  Copy = <SCons.Action.ActionFactory object>
  Delete = <SCons.Action.ActionFactory object>
  Mkdir = <SCons.Action.ActionFactory object>
  Move = <SCons.Action.ActionFactory object>
  Touch = <SCons.Action.ActionFactory object>
  ConstructionEnvironment = {'BUILDERS': {}, 'CONFIGUREDIR': '#/...
  __package__ = 'SCons'
Function Details [hide private]

DefaultEnvironment(*args, **kw)

source code 

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.)


Variables Details [hide private]

__revision__

Value:
'src/engine/SCons/Defaults.py 3a41ed6b288cee8d085373ad7fa02894e1903864\
 2019-01-23 17:30:35 bdeegan'

permission_dic

Value:
{'g': {'r': 32, 'w': 16, 'x': 8},
 'o': {'r': 4, 'w': 2, 'x': 1},
 'u': {'r': 256, 'w': 128, 'x': 64}}

ConstructionEnvironment

Value:
{'BUILDERS': {},
 'CONFIGUREDIR': '#/.sconf_temp',
 'CONFIGURELOG': '#/config.log',
 'CPPSUFFIXES': ['.c',
                 '.C',
                 '.cxx',
                 '.cpp',
                 '.c++',
...