/build/scripts/util/ |
D | file_utils.py | 69 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/ |
D | mini_debug_info.py | 27 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/ |
D | merge_notice_files.py | 110 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 …]
|
D | collect_system_notice_files.py | 85 build_utils.zip_dir(args.output_file, tmp) 89 args.output_file,
|
/build/tools/check_deps/ |
D | check_deps.py | 37 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/ |
D | file_utils.py | 35 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:
|
D | module_deps_tree.py | 141 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/ |
D | test_py_file_copy.py | 33 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)
|
D | testcase_resource_copy.py | 322 write_json_file(args.output_file, resources_list) 327 args.output_file,
|
/build/ohos/packages/ |
D | system_z_package.py | 28 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]),
|
D | generate_host_symlink.py | 27 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)
|
D | system_gzip_package.py | 51 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]),
|
D | BUILD.gn | 488 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 …]
|
D | system_notice_info.py | 99 write_json_file(args.output_file, system_notice_files) 104 args.output_file,
|
/build/ohos/kits/ |
D | kits_check.gni | 20 assert(defined(invoker.output_file), "output_file in required.") 31 outputs = [ invoker.output_file ] 44 rebase_path(invoker.output_file, root_build_dir),
|
D | kits_check_remove.py | 87 write_json_file(args.output_file, {})
|
/build/ohos/ |
D | copy_files.py | 33 output_file = os.path.join(output_dir, file_name) 36 shutil.copy2(src_file, output_file) 37 output_files.append(output_file)
|
/build/scripts/ |
D | bpf.py | 39 cmd.extend(['-o', options.output_file]) 49 outputs = [options.output_file]
|
D | interface_mgr.py | 82 with open(check_file, 'w') as output_file: 83 output_file.write('\n'.join(check_content)) 84 output_file.flush()
|
/build/ohos/images/ |
D | adlt_wrapper.py | 29 args.output_file, 58 if not os.path.exists(args.output_file):
|
/build/ohos/sa_profile/ |
D | src_sa_profile_process.py | 65 write_json_file(args.output_file, processed_sa_infos) 66 build_utils.write_depfile(args.depfile, args.output_file, depfiles)
|
/build/templates/abc/ |
D | ohos_abc.gni | 156 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/ |
D | parse_vendor_product_config.py | 117 def save_transformed_config(config, output_file): argument 119 with open(output_file, 'wt') as fout:
|
/build/lite/config/test/ |
D | test.gni | 39 output_file = "$target_out_dir/$target_name.json" 40 outputs = [ output_file ] 57 rebase_path(output_file, root_build_dir),
|
/build/templates/metadata/ |
D | module_info.gni | 75 output_file = "${target_out_dir}/${module_name}_module_info.json" 126 rebase_path(output_file, "$root_build_dir"), 232 outputs = [ output_file ]
|