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

Create a PBXBuildRule entry. More...

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

Public Member Functions

 __init__ (self, file_pattern=None, file_type=None, output_files=None, script=None, uuid=None)
 Initialize the PBXBuildRule.
 generate (self, line_list, indent=0)
 Write this record to output.
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.
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

 compiler_spec
 compilerSpec record
 file_patterns = self.add_dict_entry("filePatterns", file_pattern)
 filePatterns record
 file_type = self.add_dict_entry("fileType", file_type)
 fileType record
 input_files = JSONArray("inputFiles")
 inputFiles record
 is_editable = self.add_dict_entry("isEditable", "1")
 isEditable record
 output_files = JSONArray("outputFiles")
 outputFiles record
 run_once_per_architecture
 runOncePerArchitecture record
 script = self.add_dict_entry("script", script)
 script record
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 PBXBuildRule entry.

Create a generic build rule so that files with a certain extension will have a custom script run, so that it will build non-standard source code.

Constructor & Destructor Documentation

◆ __init__()

ide_gen.xcode.PBXBuildRule.__init__ ( self,
file_pattern = None,
file_type = None,
output_files = None,
script = None,
uuid = None )

Initialize the PBXBuildRule.

Parameters
file_patternFile pattern to match
file_typeXcode internal tool name if known
output_filesList of output files this will generate
scriptBash script to execute
uuiduuid override

Member Function Documentation

◆ generate()

ide_gen.xcode.PBXBuildRule.generate ( self,
line_list,
indent = 0 )

Write this record to output.

Parameters
line_listLine list to append new lines.
indentnumber of tabs to insert (For recursion)

Reimplemented from ide_gen.xcode_json.JSONDict.

Member Data Documentation

◆ compiler_spec

ide_gen.xcode.PBXBuildRule.compiler_spec
Initial value:
= self.add_dict_entry(
"compilerSpec",
"com.apple.compilers.proxy.script")

compilerSpec record

◆ run_once_per_architecture

ide_gen.xcode.PBXBuildRule.run_once_per_architecture
Initial value:
= self.add_dict_entry(
"runOncePerArchitecture", "0")

runOncePerArchitecture record