Flutter Engine
The Flutter Engine
Classes | Functions | Variables
dart_compiler Namespace Reference

Classes

class  IdlCompiler
 

Functions

def parse_options ()
 
def idl_filename_to_interface_name (idl_filename)
 

Variables

list SKIP_IDL_FILES = ['']
 

Function Documentation

◆ idl_filename_to_interface_name()

def dart_compiler.idl_filename_to_interface_name (   idl_filename)

Definition at line 71 of file dart_compiler.py.

71def idl_filename_to_interface_name(idl_filename):
72 basename = os.path.basename(idl_filename)
73 interface_name, _ = os.path.splitext(basename)
74 return interface_name
75
76
def idl_filename_to_interface_name(idl_filename)

◆ parse_options()

def dart_compiler.parse_options ( )

Definition at line 47 of file dart_compiler.py.

47def parse_options():
48 parser = OptionParser()
49 parser.add_option(
50 '--idl-attributes-file',
51 help="location of bindings/IDLExtendedAttributes.txt")
52 parser.add_option('--output-directory')
53 parser.add_option('--interfaces-info-file')
54 parser.add_option('--write-file-only-if-changed', type='int')
55 # ensure output comes last, so command line easy to parse via regexes
56 parser.disable_interspersed_args()
57
58 options, args = parser.parse_args()
59 if options.output_directory is None:
60 parser.error('Must specify output directory using --output-directory.')
61 options.write_file_only_if_changed = bool(
62 options.write_file_only_if_changed)
63 if len(args) != 1:
64 parser.error(
65 'Must specify exactly 1 input file as argument, but %d given.' %
66 len(args))
67 idl_filename = os.path.realpath(args[0])
68 return options, idl_filename
69
70
def parse_options()

Variable Documentation

◆ SKIP_IDL_FILES

list dart_compiler.SKIP_IDL_FILES = ['']

Definition at line 44 of file dart_compiler.py.