Makeprojects
Loading...
Searching...
No Matches
makeprojects.codeblocks Namespace Reference

Sub file for makeprojects. More...

Classes

class  BuildCodeBlocksFile
 Class to build Codeblocks files. More...
class  Project
 Root object for a Codeblocks IDE project file Created with the name of the project, the IDE code the platform code (4gw, x32, win) More...

Functions

 parse_codeblocks_file (full_pathname)
 Extract configurations from a Codeblocks project file.
 match (filename)
 Check if the filename is a type that this module supports.
 create_build_object (file_name, priority=50, configurations=None, verbose=False)
 Create BuildCodeBlocksFile build records for every desired configuration.
 create_clean_object (file_name, priority=50, configurations=None, verbose=False)
 Create BuildCodeBlocksFile build records for every desired configuration.
 test (ide, platform_type)
 Filter for supported platforms.
 generate (solution)
 Create a project file for Codeblocks.

Variables

 _CBPFILE_MATCH
 Regex for matching files with *.cbp.
tuple SUPPORTED_IDES = (IDETypes.codeblocks,)
 List of IDETypes the codeblocks module supports.

Detailed Description

Sub file for makeprojects.

Handler for Codeblocks projects

This module contains classes needed to generate project files intended for use by Codeblocks

Function Documentation

◆ create_build_object()

makeprojects.codeblocks.create_build_object ( file_name,
priority = 50,
configurations = None,
verbose = False )

Create BuildCodeBlocksFile build records for every desired configuration.

Parameters
file_namePathname to the *.cbp to build
priorityPriority to build this object
configurationsConfiguration list to build
verboseTrue if verbose output
Returns
list of BuildCodeBlocksFile classes

◆ create_clean_object()

makeprojects.codeblocks.create_clean_object ( file_name,
priority = 50,
configurations = None,
verbose = False )

Create BuildCodeBlocksFile build records for every desired configuration.

Parameters
file_namePathname to the *.cbp to build
priorityPriority to build this object
configurationsConfiguration list to build
verboseTrue if verbose output
Returns
list of BuildCodeBlocksFile classes

◆ generate()

makeprojects.codeblocks.generate ( solution)

Create a project file for Codeblocks.

Given a Solution object, create an appropriate Watcom WMAKE file to allow this project to build.

Parameters
solutionSolution instance.
Returns
Zero if no error, non-zero on error.

◆ match()

makeprojects.codeblocks.match ( filename)

Check if the filename is a type that this module supports.

Parameters
filenameFilename to match
Returns
False if not a match, True if supported

◆ parse_codeblocks_file()

makeprojects.codeblocks.parse_codeblocks_file ( full_pathname)

Extract configurations from a Codeblocks project file.

Given a .cbp file for Codeblocks locate and extract all of the build targets available and return the list.

Parameters
full_pathnamePathname to the .cdp file
Returns
list of configuration strings
See also
build_codeblocks

◆ test()

makeprojects.codeblocks.test ( ide,
platform_type )

Filter for supported platforms.

Parameters
ideIDETypes
platform_typePlatformTypes
Returns
True if supported, False if not