Makeprojects
Loading...
Searching...
No Matches
makeprojects.codeblocks.BuildCodeBlocksFile Class Reference

Class to build Codeblocks files. More...

Inheritance diagram for makeprojects.codeblocks.BuildCodeBlocksFile:
Collaboration diagram for makeprojects.codeblocks.BuildCodeBlocksFile:

Public Member Functions

 __init__ (self, file_name, priority, configuration, verbose=False)
 Class to handle Codeblocks files.
 build (self)
 Build a Codeblocks project.
 clean (self)
 Delete temporary files.
Public Member Functions inherited from makeprojects.build_objects.BuildObject
 __init__ (self, file_name, priority=None, configuration=None)
 Initializers for an BuildObject.
 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

 verbose = verbose
 The verbose flag.
Public Attributes inherited from makeprojects.build_objects.BuildObject
 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.

Detailed Description

Class to build Codeblocks files.

Constructor & Destructor Documentation

◆ __init__()

makeprojects.codeblocks.BuildCodeBlocksFile.__init__ ( self,
file_name,
priority,
configuration,
verbose = False )

Class to handle Codeblocks files.

Parameters
file_namePathname to the *.cbp to build
priorityPriority to build this object
configurationBuild configuration
verboseTrue if verbose output

Member Function Documentation

◆ build()

makeprojects.codeblocks.BuildCodeBlocksFile.build ( self)

Build a Codeblocks project.

  Support .cbp files for Codeblocks on all host platforms.
Returns
List of BuildError objects
See also
parse_codeblocks_file

Reimplemented from makeprojects.build_objects.BuildObject.

◆ clean()

makeprojects.codeblocks.BuildCodeBlocksFile.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.
Returns
None if not implemented, otherwise an integer error code.

Reimplemented from makeprojects.build_objects.BuildObject.