def METHOD_NAME(output_file, input_cc_file, include, var_name, lib_name, in_files):
    part_index = []
    bootstrap_cc_text = open(input_cc_file).read()
    bootstrap_cc_text = bootstrap_cc_text.replace("{{SOURCE_ARRAYS}}",
                                                  makeSourceArrays(in_files))
    bootstrap_cc_text = bootstrap_cc_text.replace("{{INCLUDE}}", include)
    bootstrap_cc_text = bootstrap_cc_text.replace("{{VAR_NAME}}", var_name)
    main_file_found = False
    file_count = 0
    for string_file in in_files:
        if string_file.endswith('.dart'):
            file_count += 1
            if (not main_file_found):
                inpt = open(string_file, 'r')
                for line in inpt:
                    # File with library tag is the main file.
                    if line.startswith('library '):
                        main_file_found = True
                        bootstrap_cc_text = bootstrap_cc_text.replace(
                            "{{LIBRARY_SOURCE_MAP}}", ' "' + lib_name + '",\n' +
                            ' source_array_' + str(file_count) + ',\n')
                inpt.close()
                if (main_file_found):
                    continue
            part_index.append(' "' + lib_name + "/" + os.path.basename(
                string_file).replace('\\', '\\\\') + '",\n')
            part_index.append(' source_array_' + str(file_count) + ',\n\n')
    bootstrap_cc_text = bootstrap_cc_text.replace("{{LIBRARY_SOURCE_MAP}}", '')
    bootstrap_cc_text = bootstrap_cc_text.replace("{{PART_SOURCE_MAP}}",
                                                  ''.join(part_index))
    open(output_file, 'w').write(bootstrap_cc_text)
    return True