|
Makeprojects
|
Object describing something to build. More...

Public Member Functions | |
| __init__ (self, file_name, priority=None, configuration=None) | |
| Initializers for an BuildObject. | |
| build (self) | |
| Perform the build operation. | |
| clean (self) | |
| Delete temporary files. | |
| run_command (self, cmd, verbose) | |
| Issue a command and return the generated BuildError. | |
| __repr__ (self) | |
| Convert the object into a string. | |
| __str__ (self) | |
| Convert the object into a string. | |
Public Attributes | |
| file_name = os.path.abspath(file_name) | |
| Name of file to build. | |
| priority = int(priority) | |
| Numeric priorty in ascending order. | |
| configuration = configuration | |
| Configuration if applicable. | |
Object describing something to build.
When the directory is parsed, a list of BuildObjects is generated and then sorted by priority and then built.
| makeprojects.build_objects.BuildObject.__init__ | ( | self, | |
| file_name, | |||
| priority = None, | |||
| configuration = None ) |
Initializers for an BuildObject.
| file_name | Name of the file to build. |
| priority | Integer priority, lower will be built first. |
| configuration | Configuration to build |
| TypeError | |
| ValueError |
| makeprojects.build_objects.BuildObject.__repr__ | ( | self | ) |
Convert the object into a string.
| makeprojects.build_objects.BuildObject.__str__ | ( | self | ) |
Convert the object into a string.
| makeprojects.build_objects.BuildObject.build | ( | self | ) |
Perform the build operation.
Reimplemented in makeprojects.codeblocks.BuildCodeBlocksFile, makeprojects.codewarrior.BuildCodeWarriorFile, makeprojects.doxygen.BuildDoxygenFile, makeprojects.makefile.BuildMakeFile, makeprojects.makerez.BuildRezFile, makeprojects.ninja.BuildNinjaFile, makeprojects.python.BuildPythonFile, makeprojects.slicer.BuildSlicerFile, makeprojects.visual_studio.BuildVisualStudioFile, makeprojects.watcom.BuildWatcomFile, and makeprojects.xcode.BuildXCodeFile.
| makeprojects.build_objects.BuildObject.clean | ( | self | ) |
Delete temporary files.
This function is called by cleanme to remove temporary files.
On exit, return 0 for no error, or a non zero error code if there was an error to report. None if not implemented or not applicable.
Reimplemented in makeprojects.codeblocks.BuildCodeBlocksFile, makeprojects.codewarrior.BuildCodeWarriorFile, makeprojects.doxygen.BuildDoxygenFile, makeprojects.makefile.BuildMakeFile, makeprojects.makerez.BuildRezFile, makeprojects.ninja.BuildNinjaFile, makeprojects.python.BuildPythonFile, makeprojects.slicer.BuildSlicerFile, makeprojects.visual_studio.BuildVisualStudioFile, makeprojects.watcom.BuildWatcomFile, and makeprojects.xcode.BuildXCodeFile.
| makeprojects.build_objects.BuildObject.run_command | ( | self, | |
| cmd, | |||
| verbose ) |
Issue a command and return the generated BuildError.
| cmd | command line to execute |
| verbose | True if verbose output is required |