Home
last modified time | relevance | path

Searched refs:output_file (Results 1 – 25 of 32) sorted by relevance

12

/build/scripts/util/
Dfile_utils.py69 def write_json_file(output_file, content, check_changes=False): argument
70 file_dir = os.path.dirname(os.path.abspath(output_file))
75 changed = __check_changes(output_file, content)
79 with open(output_file, 'w') as output_f:
83 def __check_changes(output_file, content): argument
84 if os.path.exists(output_file) and os.path.isfile(output_file):
87 sha256_obj.update(str(read_json_file(output_file)).encode())
99 def write_file(output_file, content): argument
103 file_dir = os.path.dirname(os.path.abspath(output_file))
107 with open(output_file, 'w') as output_f:
[all …]
/build/toolchain/
Dmini_debug_info.py27 with os.fdopen(os.open(tmp_file, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
29 output_file.write('{}\n'.format(item))
31 …ith os.fdopen(os.open(symbols_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
33 subprocess.run(cmd.split(), stdout=output_file)
70 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
71 subprocess.run(gen_symbols_cmd.split(), stdout=output_file)
73 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file:
74 lines = output_file.readlines()
88 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file:
89 subprocess.run(gen_func_symbols_cmd.split(), stdout=output_file)
[all …]
/build/ohos/notice/
Dmerge_notice_files.py110 with open(output_filename, "w") as output_file:
111 write_file(output_file, notice_title)
113 write_file(output_file, '=' * 60)
114 write_file(output_file, "Notices for file(s):")
117 output_file, '/{}'.format(
120 write_file(output_file, '-' * 60)
121 write_file(output_file, "Notices for software(s):")
132 write_file(output_file, "Software: {}".format(software_name))
133 write_file(output_file, "Path: {}".format(notice_source_path))
134 write_file(output_file, '-' * 60)
[all …]
Dcollect_system_notice_files.py85 build_utils.zip_dir(args.output_file, tmp)
89 args.output_file,
/build/tools/check_deps/
Dcheck_deps.py37 def write_json_file(output_file: str, content):
38 file_dir = os.path.dirname(os.path.abspath(output_file))
41 with open(output_file, 'w') as output_f:
81 output_file = os.path.join(os.path.dirname(
83 write_json_file(output_file, wrong_used_deps)
84 print("Check deps result output to '{}'.".format(output_file))
/build/tools/module_dependence/
Dfile_utils.py35 def write_json_file(output_file: str, content):
36 file_dir = os.path.dirname(os.path.abspath(output_file))
39 with open(output_file, 'w') as output_f:
Dmodule_deps_tree.py141 output_file = os.path.join(os.path.dirname(args.module_deps_file),
160 title=tree_title)).render(output_file))
161 print('module deps tree output to {}'.format(output_file))
/build/ohos/testfwk/
Dtest_py_file_copy.py33 output_file = os.path.join(output_dir, relative_path)
34 dest_dir = os.path.dirname(output_file)
37 shutil.copy2(src_file, output_file)
38 output_files.append(output_file)
Dtestcase_resource_copy.py322 write_json_file(args.output_file, resources_list)
327 args.output_file,
/build/ohos/packages/
Dsystem_z_package.py28 output_file: str):
46 file_utils.write_file(output_file, '\n'.join(files_list))
62 args.output_dir, args.output_file),
66 output_paths=([args.output_file, args.output_dir]),
Dgenerate_host_symlink.py27 def _do_symlink(all_host_parts_info: str, output_file: str, root_build_dir: str):
48 write_json_file(output_file, output_result)
58 _do_symlink(all_host_parts_info, args.output_file, args.root_build_dir)
Dsystem_gzip_package.py51 def compress_image_files(package_dir: str, output_file: str, additional_files: list):
54 with tarfile.open(output_file, "w:gz") as tar:
87 lambda: compress_image_files(img_dir, args.output_file, args.
92 output_paths=([args.output_file]),
DBUILD.gn488 output_file = "$target_out_dir/$target_name.out"
489 outputs = [ output_file ]
502 rebase_path(output_file, root_build_dir),
530 output_file = "$target_out_dir/$target_name.out"
531 outputs = [ output_file ]
542 rebase_path(output_file, root_build_dir),
569 output_file = "$target_out_dir/$target_name.out"
570 outputs = [ output_file ]
596 rebase_path(output_file, root_build_dir),
616 output_file = "$target_out_dir/$target_name.out"
[all …]
Dsystem_notice_info.py99 write_json_file(args.output_file, system_notice_files)
104 args.output_file,
/build/ohos/kits/
Dkits_check.gni20 assert(defined(invoker.output_file), "output_file in required.")
31 outputs = [ invoker.output_file ]
44 rebase_path(invoker.output_file, root_build_dir),
Dkits_check_remove.py87 write_json_file(args.output_file, {})
/build/ohos/
Dcopy_files.py33 output_file = os.path.join(output_dir, file_name)
36 shutil.copy2(src_file, output_file)
37 output_files.append(output_file)
/build/scripts/
Dbpf.py39 cmd.extend(['-o', options.output_file])
49 outputs = [options.output_file]
Dinterface_mgr.py82 with open(check_file, 'w') as output_file:
83 output_file.write('\n'.join(check_content))
84 output_file.flush()
/build/ohos/images/
Dadlt_wrapper.py29 args.output_file,
58 if not os.path.exists(args.output_file):
/build/ohos/sa_profile/
Dsrc_sa_profile_process.py65 write_json_file(args.output_file, processed_sa_infos)
66 build_utils.write_depfile(args.depfile, args.output_file, depfiles)
/build/templates/abc/
Dohos_abc.gni156 output_file = "${output_dir}/${invoker.output_name}.abc"
158 output_file = "${output_dir}/${target_name}.abc"
164 rebase_path(output_file),
176 outputs = [ output_file ]
/build/hb/util/preloader/
Dparse_vendor_product_config.py117 def save_transformed_config(config, output_file): argument
119 with open(output_file, 'wt') as fout:
/build/lite/config/test/
Dtest.gni39 output_file = "$target_out_dir/$target_name.json"
40 outputs = [ output_file ]
57 rebase_path(output_file, root_build_dir),
/build/templates/metadata/
Dmodule_info.gni75 output_file = "${target_out_dir}/${module_name}_module_info.json"
126 rebase_path(output_file, "$root_build_dir"),
232 outputs = [ output_file ]

12