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

Class TargetBase

Delegator --+    
            |    
     BuildEnv --+
                |
               TargetBase

Known Subclasses:
CommandTarget, ConfigTarget, CopyTarget, CPPTarget, CPPTarget, Dll, Executable, Executable, IncrementalTarget, JarTarget, ProjectTarget, RCTarget, SharedLibrary, SplitTarget, StaticLib, StaticLibrary

The base class for all build targets.
Method Summary
  __init__(self, parent_env, targets, locate, is_duplicate)
  __add__(self, other)
  add_dependencies(self, deps)
  add_file(self, file, ext)
  add_file_or_target(self, file)
  add_files(self, files, delegator)
  add_target(self, target)
  all_file_objects(self, files_so_far)
  all_files(self)
  append_source(self, s)
  append_target(self, t)
  build(self)
  build_me(self)
  calc_env(self)
  clean(self)
  maybe_create_dirs(self)
  mtime(self)
  print_depends(self, indent_level)
Print dependancy information.
  source_fixup(self)
A source may actually be generated by another target.
  source_mtime(self)
  split(self)
  target_name(self)
    Inherited from BuildEnv
  __getattr__(self, attr)
  __setattr__(self, attr, value)
  get_env(self)
This function will combine the environment variables with those of its delegate and return a dictionary containing the merged result.
  get_locate(self)
Locate can not be a build variable because it is needed when the build environment is constructed in order to specify where the targets reside.
  run_command(self, unparsed_command, in_dir, real_command, globals)
Parse the command, replacing $ expressions, and run it.
  subst_vars(self, cmd, globals)
Take a command string and replace the $ forms with evaluated pythod results.

Class Variable Summary
    Inherited from BuildEnv
SRE_Pattern escape_re = \$\{([^\}]*)\}
SRE_Pattern escape_re2 = \$([_A-Za-z0-9]+)

Method Details

print_depends(self, indent_level)

Print dependancy information.

source_fixup(self)

A source may actually be generated by another target. Search for these and register their target objects instead of the raw source files. This is guaranteed to be called after all the targets are constructed.

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