Home | Trees | Indices | Help |
|
---|
|
engine.SCons.Variables.BoolVariable This file defines the option type for SCons implementing true/false values. Usage example: opts = Variables() opts.Add(BoolVariable('embedded', 'build for an embedded system', 0)) ... if env['embedded'] == 1: ...
|
|||
|
|||
|
|||
|
|
|||
__false_strings =
|
|||
__revision__ =
|
|||
__true_strings =
|
|
The input parameters describe a boolen option, thus they are returned with the correct converter and validator appended. The 'help' text will by appended by '(yes|no) to show the valid valued. The result is usable for input to opts.Add(). |
Converts strings to True/False depending on the 'truth' expressed by the string. If the string can't be converted, the original value will be returned. See '__true_strings' and '__false_strings' for values considered 'true' or 'false respectivly. This is usable as 'converter' for SCons' Variables. |
Validates the given value to be either '0' or '1'. This is usable as 'validator' for SCons' Variables. |
|
__revision__
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jun 14 22:07:43 2010 | http://epydoc.sourceforge.net |