Definition at line 123 of file databasebuilder.py.
◆ __init__()
def scripts.databasebuilder.Build.__init__ |
( |
|
self, |
|
|
|
provider |
|
) |
| |
Definition at line 125 of file databasebuilder.py.
125 def __init__(self, provider):
126
127
128
129
130
131
132 self.output_directory = tempfile.mkdtemp()
133 attrib_file = os.path.join('Source',
134 idl_validator.EXTENDED_ATTRIBUTES_FILENAME)
135
137 self.output_directory,
138 attrib_file,
139 interfaces_info=provider._info_collector.interfaces_info,
140 only_if_changed=True)
141
◆ format_exception()
def scripts.databasebuilder.Build.format_exception |
( |
|
self, |
|
|
|
e |
|
) |
| |
Definition at line 142 of file databasebuilder.py.
143 exception_list = traceback.format_stack()
144 exception_list = exception_list[:-2]
145 exception_list.extend(traceback.format_tb(sys.exc_info()[2]))
146 exception_list.extend(
147 traceback.format_exception_only(sys.exc_info()[0],
148 sys.exc_info()[1]))
149
150 exception_str = "Traceback (most recent call last):\n"
151 exception_str +=
"".
join(exception_list)
152
153 exception_str = exception_str[:-1]
154
155 return exception_str
156
static SkString join(const CommandLineFlags::StringArray &)
◆ generate_from_idl()
def scripts.databasebuilder.Build.generate_from_idl |
( |
|
self, |
|
|
|
idl_file |
|
) |
| |
Definition at line 157 of file databasebuilder.py.
157 def generate_from_idl(self, idl_file):
158 try:
159 idl_file_fullpath = os.path.realpath(idl_file)
160 self.idl_compiler.compile_file(idl_file_fullpath)
161 except Exception as err:
162 print(
'ERROR: idl_compiler.py: ' + os.path.basename(idl_file))
166 print(self.format_exception(err))
167
168 return 1
169
170 return IDLFile(idl_ast, file_name)
171
172
def print(*args, **kwargs)
◆ idl_compiler
scripts.databasebuilder.Build.idl_compiler |
◆ output_directory
scripts.databasebuilder.Build.output_directory |
The documentation for this class was generated from the following file: