def main():
    _, args = parse_options()
    # args = Input1, Input2, ..., Output
    interfaces_info_filename = args.pop()
    info_individuals = read_pickle_files(args)

    compute_interfaces_info_overall(info_individuals)
    write_pickle_file(interfaces_info_filename, interfaces_info)
def main():
    _, args = parse_options()
    # args = Input1, Input2, ..., Output
    interfaces_info_filename = args.pop()
    info_individuals = read_pickle_files(args)

    compute_interfaces_info_overall(info_individuals)
    write_pickle_file(interfaces_info_filename, interfaces_info)
Beispiel #3
0
def load_and_register_idl_definitions(filepaths, ir_map):
    """
    Registers IDL definitions' IRs into a IDL compiler

    Load ASTs from files, create IRs, and registers them into |ir_map|.
    """
    asts_grouped_by_component = utilities.read_pickle_files(filepaths)
    for asts_per_component in asts_grouped_by_component:
        component = asts_per_component.component
        for file_node in asts_per_component.asts:
            assert isinstance(file_node, idl_parser.idl_node.IDLNode)
            for definition_node in file_node.GetChildren():
                idl_definition = _convert_ast(component, definition_node)
                ir_map.register(idl_definition)
def main():
    options, args = parse_options()
    output_global_objects_filename = args.pop()
    interface_name_global_names = dict_union(
        existing_interface_name_global_names
        for existing_interface_name_global_names in read_pickle_files(options.global_objects_component_files)
    )

    # Input IDL files are passed in a file, due to OS command line length
    # limits. This is generated at GYP time, which is ok b/c files are static.
    idl_files = read_file_to_list(options.idl_files_list)
    interface_name_global_names.update(idl_files_to_interface_name_global_names(idl_files))

    write_pickle_file(output_global_objects_filename, interface_name_global_names)
def main():
    options, args = parse_options()
    output_global_objects_filename = args.pop()
    interface_name_global_names = dict_union(
        existing_interface_name_global_names
        for existing_interface_name_global_names in read_pickle_files(
            options.global_objects_component_files))

    # File paths of input IDL files are passed in a file, which is generated at
    # GN time. It is OK because the target IDL files themselves are static.
    idl_files = read_file_to_list(options.idl_files_list)
    interface_name_global_names.update(
        idl_files_to_interface_name_global_names(idl_files))

    write_pickle_file(output_global_objects_filename,
                      interface_name_global_names)
def main():
    options, args = parse_options()
    output_global_objects_filename = args.pop()
    interface_name_global_names = dict_union(
        existing_interface_name_global_names
        for existing_interface_name_global_names in read_pickle_files(
            options.global_objects_component_files))

    # Input IDL files are passed in a file, due to OS command line length
    # limits. This is generated at GYP time, which is ok b/c files are static.
    idl_files = read_file_to_list(options.idl_files_list)
    interface_name_global_names.update(
        idl_files_to_interface_name_global_names(idl_files))

    write_pickle_file(output_global_objects_filename,
                      interface_name_global_names)