Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 165) sorted by relevance

1234567

/build/lite/hb_internal/build/
Dbuild.py141 def exec_command(args): argument
142 if len(args.product):
143 if '@' in args.product[0]:
144 product, company = args.product[0].split('@')
146 product = args.product[0]
150 build = Build(args.component, args.compact_mode)
155 build.register_args('ohos_build_type', args.build_type[0])
161 if args.test is not None:
162 build.test = args.test
164 if args.target_cpu:
[all …]
/build/lite/
Dhap_pack.py59 args = parser.parse_args()
61 return args
64 def hap_packing(args): argument
65 if not args.packing_tool_path:
68 packing_cmd = ['java', '-jar', args.packing_tool_path]
70 '--mode': args.mode,
71 '--json-path': args.json_path,
72 '--resources-path': args.resources_path,
73 '--assets-path': args.assets_path,
74 '--lib-path': args.lib_path,
[all …]
Dbuild_ext_components.py58 args = parser.parse_args()
60 if args.enable:
61 if args.enable[0] == 'false':
64 if args.path:
66 os.chdir(args.path)
68 if args.prebuilts:
69 status = cmd_exec(args.prebuilts, temp_file, args.out_dir[0])
72 if args.command:
73 if '&&' in args.command:
74 command = args.command.split('&&')
[all …]
/build/ohos/images/mkimage/
Dmkf2fsimage.py22 def args_parse(args): argument
45 args = parser.parse_known_args(args)[0]
46 return args
57 def build_run_mkf2fs(args): argument
63 if args.sparse:
64 mkf2fs_opts += " -S " + args.fs_size
65 if args.label:
66 mkf2fs_opts += " -l " + args.label
68 mkf2fs_opts += " -l " + args.mount_point
69 if args.prjquota:
[all …]
Dmkextimage.py46 args = parser.parse_known_args(argv)[0]
47 return args
58 def build_run_mke2fs(args): argument
63 if "data" in args.mount_point:
65 if args.extend_opts:
66 mke2fs_opts += " -E " + ",".join(args.extend_opts)
67 if args.inode_size:
68 mke2fs_opts += " -I " + args.inode_size
71 if args.journal_size:
72 mke2fs_opts += " -J size=" + args.journal_size
[all …]
Dmkcpioimage.py25 def args_parse(args): argument
32 args = parser.parse_known_args(args)[0]
33 return args
60 def build_run_cpio(args): argument
62 os.chdir(args.src_dir)
64 conf_size = int(args.conf_size)
65 if args.device == "ramdisk.img":
66 output_path = os.path.join("%s/../images" % os.getcwd(), args.device)
67 elif args.device == "updater_ramdisk.img":
70 output_path = os.path.join(work_dir, args.device)
[all …]
/build/scripts/
Dentry.py40 def do_build(args): argument
41 build_py = os.path.join(args.source_root_dir, 'build.py')
46 args.product_name,
48 build_targets = args.build_target
49 gn_args = args.gn_args
51 if args.target_cpu is not None:
52 cmd.extend(['--target-cpu', ''.join(args.target_cpu)])
54 if args.compile_config is not None:
55 cmd.extend(['--compile-config', ''.join(args.compile_config)])
57 if args.product_name == 'ohos-sdk':
[all …]
Dasan_backup.py57 args = parser.parse_args()
59 if not os.path.exists(args.backup_dir):
62 if os.path.exists(args.backup_dest_dir):
63 shutil.rmtree(args.backup_dest_dir)
64 os.makedirs(args.backup_dest_dir, exist_ok=True)
66 dir_name = os.path.basename(args.backup_dir)
67 _dest_dir = os.path.join(args.backup_dest_dir, dir_name)
68 shutil.copytree(args.backup_dir, _dest_dir)
70 if args.asan_clean:
71 if args.removed_dir_list:
[all …]
/build/toolchain/
Dgcc_solink_wrapper.py22 def collect_soname(args): argument
26 [args.readelf, '-d', args.sofile]),
35 def collect_dyn_sym(args): argument
38 _command = [args.nm]
39 if args.sofile.endswith('.dll'):
43 _command.append(args.sofile)
52 def collect_toc(args): argument
53 result, toc = collect_soname(args)
55 result, dynsym = collect_dyn_sym(args)
129 args = parser.parse_args()
[all …]
Dgcc_link_wrapper.py82 args = parser.parse_args()
87 if is_static_link(args.command):
88 command = update_crt(args.command)
89 if args.clang_rt_dso_path is not None:
92 command = args.command
94 command, env=fast_env, map_file=args.map_file)
99 if args.strip:
102 [args.strip, '-o', args.output, args.unstripped_file]))
104 if args.mini_debug and not args.unstripped_file.endswith(".exe"):
105 unstripped_libfile = os.path.abspath(args.unstripped_file)
[all …]
/build/ohos/images/
Dbuild_image.py79 def _make_image(args): argument
80 if args.image_name == 'system':
81 _prepare_root(args.input_path, args.target_cpu)
82 elif args.image_name == 'updater':
83 _prepare_updater(args.input_path)
84 elif args.image_name == 'updater_ramdisk':
85 _prepare_updater(args.input_path)
86 elif args.image_name == 'ramdisk':
87 _prepare_ramdisk(args.input_path)
89 if args.sparse_image:
[all …]
/build/
Dprebuilts_download.py44 def _check_sha256_by_mark(args, check_url, code_dir, unzip_dir, unzip_filename): argument
50 args.mark_file_path = mark_file_path
63 def _uncompress(args, src_file, code_dir, unzip_dir, unzip_filename, mark_file_path): argument
75 _npm_install(args, code_dir, unzip_dir, unzip_filename)
77 def _copy_url(args, task_id, url, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path, … argument
95 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path)
98 def _copy_url_disable_rich(args, url, local_file, code_dir, unzip_dir, unzip_filename, mark_file_pa… argument
113 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path)
116 def _hwcloud_download(args, config, bin_dir, code_dir): argument
124 parse_dict = _config_parse(config_info, args.tool_repo)
[all …]
/build/templates/metadata/
Dgen_module_info.py156 args = parser.parse_args()
161 if args.prebuilt:
162 source_file_name = os.path.basename(args.module_source)
163 module_source = args.module_source
168 args.type, args.install_name, args.prefix_override, args.suffix,
169 args.alternative_suffix)
174 if args.install_images:
176 args.system_base_dir, args.ramdisk_base_dir, args.vendor_base_dir,
177args.updater_base_dir, args.sys_prod_base_dir, args.chip_prod_base_dir, source_file_name, args.ins…
178 args.module_install_dir, args.relative_install_dir, args.type)
[all …]
/build/lite/ndk/doc/
Dgen_doc.py30 def gen_doc(args): argument
31 html_output_dir = args.output
34 suffix=os.path.basename(args.doxygen_file)) as doxygen_file:
35 shutil.copyfile(args.doxygen_file, doxygen_file.name)
39 raise Exception('Failed to read %s' % args.doxygen_file)
43 args.version,
45 args.exclude_dir,
47 os.path.relpath(html_output_dir, args.working_dir)
59 if os.path.exists(args.working_dir) is not True:
62 os.chdir(args.working_dir)
[all …]
/build/templates/common/
Ddelete_symbol.py21 def copy_strip(args): argument
22 shutil.copy(args.input, args.output)
23 subprocess.call([args.strip, args.output], shell=False)
30 args = parser.parse_args()
31 copy_strip(args)
/build/ohos/packages/
Dmodules_install.py159 args = parser.parse_args()
162 for tuple in args.additional_system_files or []:
167 build_utils.extract_all(args.merged_sa_profile,
168 args.sa_profile_extract_dir,
170 sa_files = build_utils.get_all_files(args.sa_profile_extract_dir)
172 system_install_info = read_json_file(args.system_install_info_file)
175 args.system_install_info_file))
177 system_install_base_dir = args.system_dir
183 vendor_install_base_dir = os.path.join(args.platform_installed_path,
189 sys_prod_install_base_dir = os.path.join(args.platform_installed_path,
[all …]
Dparts_install_info.py56 args = parser.parse_args()
58 current_platform_parts = get_platform_parts(args.current_platform,
59 args.platforms_parts_file)
61 _parts_list = platform_parts(args.all_parts_info_file,
64 platform_out_dir = os.path.dirname(args.system_install_info_file)
67 write_json_file(args.system_install_info_file, _parts_list)
69 if args.depfile:
71 _dep_files.append(args.all_parts_info_file)
72 _dep_files.append(args.platforms_parts_file)
73 build_utils.write_depfile(args.depfile,
[all …]
Dsystem_z_package.py57 args = parser.parse_args(argv[1:])
59 depfiles = [args.system_image_zipfile] + args.additional_files
61 lambda: archive_files(args.system_image_zipfile, args.additional_files,
62 args.output_dir, args.output_file),
63 args,
66 output_paths=([args.output_file, args.output_dir]),
/build/config/mac/
Dxcrun.py19 args, unknown_args = parser.parse_known_args() variable
21 if args.developer_dir:
22 os.environ['DEVELOPER_DIR'] = args.developer_dir
25 if rv == 0 and args.stamp:
26 if os.path.exists(args.stamp):
27 os.unlink(args.stamp)
28 with open(args.stamp, 'w+') as fp:
/build/lite/hb/
D__entry__.py76 args = parser.parse_known_args()
83 if args[0].parser.prog == 'hb set' and 'root_path' in vars(args[0]):
85 args[0].root_path = topdir
86 if "tool" in args[0].parser.prog:
87 status = args[0].command(args)
89 status = args[0].command(args[0])
94 hb_error(exception.args[0])
97 if not hasattr(args[0], 'command'):
/build/ohos/ndk/
Dcollect_ndk_syscap.py50 def run(args): argument
51 _syscap_info, _syscap_config = _get_system_capability(args.targets_build_config)
52 write_json_file(args.system_capability_file, _syscap_info)
53 write_json_file(args.system_capability_header_config, _syscap_config)
55 if args.depfile:
57 for _bc_file in args.targets_build_config:
61 build_utils.write_depfile(args.depfile,
62 args.system_capability_file,
73 args = parser.parse_args(argv)
74 return run(args)
/build/ohos/common/
Dbinary_install_info.py64 args = parser.parse_args()
67 args.dist_parts_info_file, args.parts_src_installed_info_file)
69 output_installed_info(args.binary_installed_info_file, required_parts)
71 if args.depfile:
73 _dep_files.append(args.dist_parts_info_file)
74 _dep_files.append(args.parts_src_installed_info_file)
75 build_utils.write_depfile(args.depfile,
76 args.binary_installed_info_file,
Dmerge_all_subsystem.py62 args = parser.parse_args()
64 all_subsystem_info = merge_subsystem(args.src_install_info_file,
65 args.binary_install_info_file)
66 write_json_file(args.all_subsystem_info_file, all_subsystem_info)
68 if args.depfile:
70 _dep_files.append(args.src_install_info_file)
71 _dep_files.append(args.binary_install_info_file)
72 build_utils.write_depfile(args.depfile,
73 args.all_subsystem_info_file,
/build/ohos/hisysevent/
Dhisysevent_process.py87 args = parser.parse_args(argv)
89 depfiles = [args.parts_config_file]
90 hisysevent_config_info = read_json_file(args.parts_config_file)
93 args.parts_config_file))
94 src_part_list = _get_src_parts(args.system_install_info_file)
98 args.source_root_dir,
99 args.gn_root_build_dir)
101 _output_path = os.path.dirname(args.hisysevent_install_info_file)
104 args.config_install_dest_dir)
105 write_json_file(args.hisysevent_install_info_file, install_info_list)
[all …]
/build/ohos/notice/
Dmerge_notice_files.py220 args = parser.parse_args()
222 notice_dir = args.notice_root_dir
224 if args.collected_notice_zipfile:
225 for zip_file in args.collected_notice_zipfile:
230 copy_static_library_notices(args, depfiles)
237 outputs = [args.output_notice_txt, args.output_notice_gz]
238 if args.notice_module_info:
239 outputs.append(args.notice_module_info)
241 lambda: do_merge_notice(args, zipfiles, txt_files),
242 args,
[all …]

1234567