PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SConscript.py File Reference

This file builds various files from templates in the templates/ directory in which this file resides. More...

Go to the source code of this file.

Variables

Setup for template building
string SConscript.templateDir = './'
 Define the directory in which the templates reside.
 
string SConscript.includeDir = '../lib/include/'
 Define the include directory destination for .h templates.
 
string SConscript.commonDir = '../lib/common/'
 Define the common directory destination for .c templates.
 

Functions supporting template file builds

tuple SConscript.cbldr = Builder(action = c_template_builder, suffix='.c', src_suffix='.c-template')
 Define and register a template-driven builder for .c files.
 
tuple SConscript.hbldr = Builder(action = h_template_builder, suffix='.h', src_suffix='.h-template')
 Define and register a template-driven builder for .h files.
 
def SConscript.searchAndReplace
 A function to do search and replaces on a file, optionally appending the results to the output file. More...
 
def SConscript.genFromTemplate
 A function to create a .c/.h file from multiple replaces through a template. More...
 
def SConscript.c_template_builder
 Builds a .c from a template – SCons Builder function formation. More...
 
def SConscript.h_template_builder
 Builds a .h from a template – SCons Builder function formation. More...
 

Detailed Description

This file builds various files from templates in the templates/ directory in which this file resides.

It should be called from the main SConscript.py script.

Definition in file SConscript.py.