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

This module contains classes needed to generate project files intended for use by Open Watcom WMAKE 1.9 or higher. More...

Classes

class  BuildWatcomFile
 Class to build watcom make files. More...
class  WatcomProject
 Root object for a Watcom IDE project file. More...

Functions

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

Variables

tuple SUPPORTED_IDES = (IDETypes.watcom,)
 List of IDETypes the watcom module supports.
 _WATCOMFILE_MATCH
 Regex for matching files with *.wmk.
str _WMAKE_DO_NOTHING
 String to do nothing in WMAKE.

Detailed Description

This module contains classes needed to generate project files intended for use by Open Watcom WMAKE 1.9 or higher.

Function Documentation

◆ create_build_object()

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

Create BuildWatcomFile build records for every desired configuration.

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

◆ create_clean_object()

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

Create BuildWatcomFile clean records for every desired configuration.

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

◆ generate()

makeprojects.watcom.generate ( solution)

Create a project file for Watcom.

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.watcom.match ( filename)

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

Check if the project file ends with ".wmk", return True if so.

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

◆ test()

makeprojects.watcom.test ( ide,
platform_type )

Filter for supported platforms.

Watcom supports MSDOS 4GW, MSDOS X32 and Windows 32 only.

Parameters
ideIDETypes
platform_typeenums.PlatformTypes
Returns
True if supported, False if not