/ohos5.0/build/scripts/util/ |
H A D | file_utils.py | 70 def write_json_file(output_file, content, check_changes=False): argument 71 file_dir = os.path.dirname(os.path.abspath(output_file)) 76 changed = __check_changes(output_file, content) 80 with open(output_file, 'w') as output_f: 84 def __check_changes(output_file, content): argument 85 if os.path.exists(output_file) and os.path.isfile(output_file): 100 def write_file(output_file, content): argument 104 file_dir = os.path.dirname(os.path.abspath(output_file)) 108 with open(output_file, 'w') as output_f: 110 if output_file.endswith('.gni') or output_file.endswith('.gn'): [all …]
|
/ohos5.0/build/ohos/notice/ |
H A D | merge_notice_files.py | 111 write_file(output_file, notice_title) 113 write_file(output_file, '=' * 60) 117 output_file, '/{}'.format( 120 write_file(output_file, '-' * 60) 145 write_file(output_file, '-' * 60) 158 write_file(output_file, "<licenses>") 171 write_file(output_file, '') 172 write_file(output_file, '') 184 output_file, 187 write_file(output_file, '') [all …]
|
/ohos5.0/base/web/webview/ohos_interface/ |
H A D | BUILD.gn | 23 output_file = "$target_out_dir/$target_name.out" 24 outputs = [ output_file ] 34 rebase_path(output_file, "${root_build_dir}"), 41 output_file = "$target_out_dir/$target_name.out" 42 outputs = [ output_file ] 52 rebase_path(output_file, "${root_build_dir}"), 61 output_file = "$target_out_dir/$target_name.out" 62 outputs = [ output_file ] 72 rebase_path(output_file, "${root_build_dir}"), 79 output_file = "$target_out_dir/$target_name.out" [all …]
|
/ohos5.0/build/toolchain/ |
H A 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() 89 subprocess.run(gen_func_symbols_cmd.split(), stdout=output_file) 92 lines = output_file.readlines() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/ |
H A D | pre_process.py | 27 def handle_file_preprocess(input_file, output_file): argument 29 if os.path.exists(output_file): 31 os.remove(output_file) 38 with os.fdopen(os.open(output_file, flags, mode), 'w') as outfile: 49 log_info("preprocess done: " + input_file + "->" + output_file)
|
/ohos5.0/build/tools/check_deps/ |
H A 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))
|
/ohos5.0/build/ohos/testfwk/ |
H A 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)
|
/ohos5.0/build/tools/module_dependence/ |
H A 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:
|
H A 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))
|
/ohos5.0/build/ohos/packages/ |
H A D | system_z_package.py | 28 output_file: str): 47 file_utils.write_file(output_file, '\n'.join(files_list)) 63 args.output_dir, args.output_file), 67 output_paths=([args.output_file, args.output_dir]),
|
H A 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]),
|
H A 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)
|
H A D | BUILD.gn | 497 output_file = "$target_out_dir/$target_name.out" 498 outputs = [ output_file ] 511 rebase_path(output_file, root_build_dir), 539 output_file = "$target_out_dir/$target_name.out" 540 outputs = [ output_file ] 551 rebase_path(output_file, root_build_dir), 578 output_file = "$target_out_dir/$target_name.out" 579 outputs = [ output_file ] 605 rebase_path(output_file, root_build_dir), 626 outputs = [ output_file ] [all …]
|
H A D | system_notice_info.py | 99 write_json_file(args.output_file, system_notice_files) 104 args.output_file,
|
/ohos5.0/build/ohos/kits/ |
H A 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),
|
/ohos5.0/base/hiviewdfx/hiview/build/ |
H A D | gen_plugin_build.py | 41 def write_json_file(output_file, content): argument 42 file_dir = os.path.dirname(os.path.abspath(output_file)) 45 with open(output_file, 'w') as output_f: 77 def write_build_file(output_file, plugins, plugin_so, cnt_type): argument 83 out_dir = os.path.dirname(output_file) 86 with open(output_file, 'w') as file_id: 92 def write_config_file(output_file, plugins, pipelines, pipelinegroups, is_so): argument 127 out_dir = os.path.dirname(output_file) 130 with open(output_file, 'w') as file_id:
|
/ohos5.0/build/ohos/ |
H A 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)
|
/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/test/ |
H A D | hcgen_test.py | 139 output_file = os.path.join(output_dir, 'golden') 144 command = "%s -o %s -t %s" % (TestConfig.HCGEN, output_file, source_file) 146 command = "%s -o %s %s" % (TestConfig.HCGEN, output_file, source_file) 224 output_file = os.path.join(output_dir, 'case.hcs') 226 command = "%s -o %s -d %s" % (TestConfig.HCGEN, output_file, source_file)
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ |
H A D | plugin_config.py | 29 output_file = argv[2] + "/all_plugin_static.h" 43 with open(output_file, "w") as outfile:
|
/ohos5.0/build/templates/abc/ |
H A D | ohos_abc.gni | 159 output_file = "${output_dir}/${invoker.output_name}.abc" 161 output_file = "${output_dir}/${target_name}.abc" 167 rebase_path(output_file), 179 outputs = [ output_file ]
|
/ohos5.0/build/scripts/ |
H A D | bpf.py | 41 cmd.extend(['-o', options.output_file]) 56 outputs = [options.output_file]
|
H A 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()
|
/ohos5.0/build/ohos/images/ |
H A D | adlt_wrapper.py | 29 args.output_file, 58 if not os.path.exists(args.output_file):
|
/ohos5.0/build/ohos/sa_profile/ |
H A 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)
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | tool-disassembler.md | 14 ark_disasm.exe [options] input_file output_file 23 | output_file | 不可缺省 | 反汇编内容的输出文件路径。 |
|