Makeprojects
Loading...
Searching...
No Matches
makeprojects.visual_studio.VS2003FileConfiguration Class Reference

Visual Studio 2003-2008 Configurations record. More...

Inheritance diagram for makeprojects.visual_studio.VS2003FileConfiguration:
Collaboration diagram for makeprojects.visual_studio.VS2003FileConfiguration:

Public Member Functions

 __init__ (self, configuration, base_name, source_file)
 Init defaults.
 check_for_exclusion (self, base_name)
 Given a filename, check if it's excluded from the build.
 handle_vs2003_rules (self, rule_list, base_name, tool_name, tool_enums)
 Since 2003 doesn't use rule files, do it all manually.
 handle_vs2005_rules (self, rule_list, base_name, tool_name, tool_enums)
 Check if there are rules or records specific to a configuration.
Public Member Functions inherited from makeprojects.visual_studio.VS2003XML
 __init__ (self, name, attributes=None, force_pair=False)
 Set the defaults.
 add_attribute (self, attribute)
 Add an attribute object.
 add_attributes (self, attributes)
 Add a list of attribute objects.
 add_element (self, element)
 Add an element to this XML element.
 set_attribute (self, name, value)
 Change existing attribute.
 remove_attribute (self, name)
 Remove an attribute.
 reset_attribute (self, name)
 Reset an attribute to default.
 generate (self, line_list=None, indent=0, ide=None)
 Generate the text lines for this XML element.
 __repr__ (self)
 Convert the solution record into a human readable description.
 __str__ (self)
 Convert the solultion record into a human readable description.

Public Attributes

 configuration = configuration
 Parent configuration.
 source_file = source_file
 Source code file.
Public Attributes inherited from makeprojects.visual_studio.VS2003XML
 name = name
 Name of this XML chunk.
 force_pair = force_pair
 Disable <foo/> syntax.
list elements = []
 List of elements in this element.
list attributes = []
 List of valid attributes and defaults.

Detailed Description

Visual Studio 2003-2008 Configurations record.

Constructor & Destructor Documentation

◆ __init__()

makeprojects.visual_studio.VS2003FileConfiguration.__init__ ( self,
configuration,
base_name,
source_file )

Init defaults.

Parameters
configurationConfiguration record to extract defaults.
base_nameBase filename
source_fileSourceFile reference

Member Function Documentation

◆ check_for_exclusion()

makeprojects.visual_studio.VS2003FileConfiguration.check_for_exclusion ( self,
base_name )

Given a filename, check if it's excluded from the build.

  If the source file is in the exclusion list, or it's an assembly
  file for the wrong build target, mark it as excluded from the build
Parameters
base_nameBase name of the file to check

◆ handle_vs2003_rules()

makeprojects.visual_studio.VS2003FileConfiguration.handle_vs2003_rules ( self,
rule_list,
base_name,
tool_name,
tool_enums )

Since 2003 doesn't use rule files, do it all manually.

Parameters
rule_listTuple of dicts for all rules to apply
base_nameName of the file to check
tool_nameName of the build tool
tool_enumsEnumeration lookup for the specific tool

◆ handle_vs2005_rules()

makeprojects.visual_studio.VS2003FileConfiguration.handle_vs2005_rules ( self,
rule_list,
base_name,
tool_name,
tool_enums )

Check if there are rules or records specific to a configuration.

Parameters
rule_listTuple of dicts for all rules to apply
base_nameName of the file to check
tool_nameName of the build tool
tool_enumsEnumeration lookup for the specific tool