|
IDE-Generator Python
|
Create a PBXBuildRule entry. More...


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. | |
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.
| ide_gen.xcode.PBXBuildRule.__init__ | ( | self, | |
| file_pattern = None, | |||
| file_type = None, | |||
| output_files = None, | |||
| script = None, | |||
| uuid = None ) |
Initialize the PBXBuildRule.
| file_pattern | File pattern to match |
| file_type | Xcode internal tool name if known |
| output_files | List of output files this will generate |
| script | Bash script to execute |
| uuid | uuid override |
| ide_gen.xcode.PBXBuildRule.generate | ( | self, | |
| line_list, | |||
| indent = 0 ) |
Write this record to output.
| line_list | Line list to append new lines. |
| indent | number of tabs to insert (For recursion) |
Reimplemented from ide_gen.xcode_json.JSONDict.
| ide_gen.xcode.PBXBuildRule.compiler_spec |
compilerSpec record
| ide_gen.xcode.PBXBuildRule.run_once_per_architecture |
runOncePerArchitecture record