Package Yab :: Module Core
[show private | hide private]
[frames | no frames]

Module Yab.Core

Classes
BuildEnv This class mantains the environment variables for a specific build step.
CommandTarget  
CopyTarget  
CPreprocessorMixin Scans the source files for include directives.
EnvVar A new tuple type that is used to hold the contents of environment variables.
IncrementalTarget This is a target that can incrementally build its target files.
SplitTarget  
TargetBase The base class for all build targets.
ToolsetBase The base class for all Toolsets.

Exceptions
YABError Represents a fatal error in a user's YABFile.

Function Summary
  check_feature(feature, value)
Check that a certain value is valid for the given feature.
  define_feature(name, link_compat, default, othervals)
Define a new feature.
  define_variant(name, its_features, base)
Define a new variant.
  find_target(file)
Find the target object that generates the given file
  find_targets_using(files)
Find the targets that are made from the given set of source.
  get_ext(fi)
  get_toolset_search_path()
  print_mtimes(files)
A debugging function
  set_toolset_search_path(path)
  usage()
  yabeval(expr, locals, globals, none_on_undef)

Variable Summary
list all_targets = []
dict already_scanned = {}
str default_variant = 'debug'
dict features = {'debug_symbols': (1, 1, (1, 0)), 'profiling'...
dict file_target_map = {}
int make_depending = 1                                                                     
dict source_target_map = {}
dict toolset_classes = {'gcc': <class Yab.Gcc.Toolset at 0x00...
NoneType toolset_search_path = None                                                                  
dict variants = {'debug': {'runtime_build': 'debug', 'inlinin...

Function Details

check_feature(feature, value)

Check that a certain value is valid for the given feature.

define_feature(name, link_compat, default, othervals)

Define a new feature.

Default is the default value for the feature.

If othervals is a python function, it must take one argument, the feature value, and return true if the value is acceptable.

Otherwise, Othervals is a sequence of non-default values that the feature can take on.

Link_compat is obsolete

define_variant(name, its_features, base=None)

Define a new variant.

Its_features is a dictionary whose keys are feature names and whose values are the default values for the given feature. If base is given, inherit the feature values from the given variant.

find_target(file)

Find the target object that generates the given file

find_targets_using(files)

Find the targets that are made from the given set of source.

print_mtimes(files)

A debugging function

Variable Details

all_targets

Type:
list
Value:
[]                                                                     

already_scanned

Type:
dict
Value:
{}                                                                     

default_variant

Type:
str
Value:
'debug'                                                                

features

Type:
dict
Value:
{'debug_symbols': (1, 1, (1, 0)),
 'exception_handling': (1, 1, (1, 0)),
 'inlining': (1, 'on', ('on', 'off', 'full')),
 'jdk': (0, None, <function check_jdk_path at 0x009B81F0>),
 'optimization': (1, 'speed', ('speed', 'off', 'space')),
 'profiling': (1, 0, (0, 1)),
 'psdk': (1,
          'disable',
...                                                                    

file_target_map

Type:
dict
Value:
{}                                                                     

make_depending

Type:
int
Value:
1                                                                     

source_target_map

Type:
dict
Value:
{}                                                                     

toolset_classes

Type:
dict
Value:
{'cygwin': <class Yab.Cygwin.Toolset at 0x0090FD20>,
 'gcc': <class Yab.Gcc.Toolset at 0x009B2150>,
 'vc': <class Yab.VisualC.Toolset at 0x009E91E0>,
 'vc6': <class Yab.VisualC.VC6Toolset at 0x009E93F0>,
 'vc7': <class Yab.VisualC.VC7Toolset at 0x009E9390>,
 'vc71': <class Yab.VisualC.VC71Toolset at 0x009E93C0>}                

toolset_search_path

Type:
NoneType
Value:
None                                                                  

variants

Type:
dict
Value:
{'debug': {'runtime_build': 'debug', 'inlining': 'off', 'optimization'\
: 'off'},
 'release': {'debug_symbols': 0,
             'inlining': 'on',
             'optimization': 'speed',
             'runtime_build': 'release'}}                              

Generated by Epydoc 2.0 on Fri Aug 15 16:30:52 2003 http://epydoc.sf.net