IDE-Generator Python
Loading...
Searching...
No Matches
ide_gen.xcode.PBXBuildFile Class Reference

Create a PBXBuildFile entry. More...

Inheritance diagram for ide_gen.xcode.PBXBuildFile:
Collaboration diagram for ide_gen.xcode.PBXBuildFile:

Public Member Functions

 __init__ (self, input_reference, output_reference, uuid=None)
 Init the PBXBuildFile record.
Public Member Functions inherited from ide_gen.xcode_json.JSONDict
 __init__ (self, name, comment=None, value=None, uuid=None, enabled=True, disable_if_empty=False, isa=None, flattened=False)
 Initialize the entry.
 add_dict_entry (self, name, value=None, enabled=True)
 Create a new JSONEntry record and add to the dictionary Take the key value pair and append it to the dictionary.
 generate (self, line_list, indent=0)
 Generate the text lines for this JSON element.
Public Member Functions inherited from ide_gen.xcode_json.JSONShared
 __init__ (self, name, comment=None, value=None, uuid=None, enabled=True)
 Initialize the JSONShared entry.
 add_item (self, item)
 Append an item to the array.
 find_item (self, name)
 Find a named JSON item.
 get_comment_string (self)
 Return the string to generate for a comment.
 get_parent (self)
 Traverse the objects until the parent is found.

Public Attributes

 file_reference = input_reference
 PBXFileReference of the file being compiled.
 file_ref = self.add_dict_entry("fileRef", input_reference.uuid)
 settings = JSONDict("settings", disable_if_empty=True)
 Additional compiler settings applied only to this file.
Public Attributes inherited from ide_gen.xcode_json.JSONDict
 disable_if_empty = disable_if_empty
 True if output is disabled if the list is empty.
 isa = isa
 "Is a" name
 flattened = flattened
 If True, flatten the child objects.
Public Attributes inherited from ide_gen.xcode_json.JSONShared
 name = name
 Object's name (Can also be the uuid)
 comment = comment
 Optional object's comment field.
 value = value
 Value (Can be None, integer, string, array, or JSON object)
 uuid = uuid
 Optional uuid string.
 enabled = enabled
 If False, disable output of this object.
 parent = None
 Reference to the parent object.

Detailed Description

Create a PBXBuildFile entry.

Every file that is built needs a record to associate a source file to an output file. This record connects the two objects to alert XCode to build the input file for the output file.

Effectively, these are makefile entries to invoke compilation recipes.

Note
The outputfile is only needed for ensuring UUIDs are unique for XCode projects where multiple output files are created. There has to be unique PBXBuildFile uuid for every build target, even if the source file is the same

Constructor & Destructor Documentation

◆ __init__()

ide_gen.xcode.PBXBuildFile.__init__ ( self,
input_reference,
output_reference,
uuid = None )

Init the PBXBuildFile record.

Parameters
input_referencePBXFileReference of source file to compile
output_referencePBXFileReference of lib/exe being built.
uuiduuid override for this object