LB CONFIG API  LB 4.x
lbconfig.api.Project Class Reference

private More...

+ Inheritance diagram for lbconfig.api.Project:

Public Member Functions

def __init__ (self, name, srcdir, srcgen=[], deps=None, install=True, generated=False, install_subdir='share/$(package_basename)', post_cmds=[])
 
def libpath (self)
 A helper function for determining the libpath for this project. More...
 
def populate (self)
 Populate is responsible for doing all the I/O dirty work such as parsing the project file to determine source files & project depenencies. More...
 
def real_src_dependencies (self)
 Collect the files to distribute, removing the generated source files. More...
 
def write (self)
 Writes the Make rules to compile this project to the Makefile. More...
 

Public Attributes

 compiled_libraries
 
 dependent_libraries
 
 deps
 
 errors
 
 generated
 
 install
 
 install_subdir
 
 library_dependencies
 
 name
 
 outdir
 
 post_cmds
 
 project_file
 
 related_projects
 
 source_dependencies
 
 srcdir
 
 srcgen
 
 summary_file
 
 warnings
 

Detailed Description

private

Represents an LB project file and it's dependencies. The object is responsible for writing out the Make rules for an LB project.

Definition at line 1712 of file api.py.

Constructor & Destructor Documentation

def lbconfig.api.Project.__init__ (   self,
  name,
  srcdir,
  srcgen = [],
  deps = None,
  install = True,
  generated = False,
  install_subdir = 'share/$(package_basename)',
  post_cmds = [] 
)

Definition at line 1716 of file api.py.

Member Function Documentation

def lbconfig.api.Project.libpath (   self)

A helper function for determining the libpath for this project.

Should only be called after populate() has been called.

Definition at line 1809 of file api.py.

def lbconfig.api.Project.populate (   self)

Populate is responsible for doing all the I/O dirty work such as parsing the project file to determine source files & project depenencies.

We don't do this in the constructor so that you can set these values independently in tests.

Definition at line 1777 of file api.py.

def lbconfig.api.Project.real_src_dependencies (   self)

Collect the files to distribute, removing the generated source files.

Definition at line 1849 of file api.py.

def lbconfig.api.Project.write (   self)

Writes the Make rules to compile this project to the Makefile.

Definition at line 1861 of file api.py.

Member Data Documentation

lbconfig.api.Project.compiled_libraries

Definition at line 1758 of file api.py.

lbconfig.api.Project.dependent_libraries

Definition at line 1760 of file api.py.

lbconfig.api.Project.deps

Definition at line 1726 of file api.py.

lbconfig.api.Project.errors

Definition at line 1769 of file api.py.

lbconfig.api.Project.generated

Definition at line 1736 of file api.py.

lbconfig.api.Project.install

Definition at line 1733 of file api.py.

lbconfig.api.Project.install_subdir

Definition at line 1734 of file api.py.

lbconfig.api.Project.library_dependencies

Definition at line 1765 of file api.py.

lbconfig.api.Project.name

Definition at line 1718 of file api.py.

lbconfig.api.Project.outdir

Definition at line 1751 of file api.py.

lbconfig.api.Project.post_cmds

Definition at line 1738 of file api.py.

lbconfig.api.Project.project_file

Definition at line 1744 of file api.py.

lbconfig.api.Project.related_projects

Definition at line 1767 of file api.py.

lbconfig.api.Project.source_dependencies

Definition at line 1762 of file api.py.

lbconfig.api.Project.srcdir

Definition at line 1720 of file api.py.

lbconfig.api.Project.srcgen

Definition at line 1723 of file api.py.

lbconfig.api.Project.summary_file

Definition at line 1749 of file api.py.

lbconfig.api.Project.warnings

Definition at line 1768 of file api.py.


The documentation for this class was generated from the following file: