/build/lite/ |
D | hap_pack.py | 59 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 …]
|
D | build_ext_components.py | 58 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/ |
D | mkf2fsimage.py | 22 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 …]
|
D | mkextimage.py | 46 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 …]
|
D | mkcpioimage.py | 26 def args_parse(args): argument 33 args = parser.parse_known_args(args)[0] 34 return args 61 def build_run_cpio(args): argument 63 os.chdir(args.src_dir) 65 conf_size = int(args.conf_size) 66 if args.device == "ramdisk.img": 67 output_path = os.path.join("%s/../images" % os.getcwd(), args.device) 68 elif args.device == "updater_ramdisk.img": 73 output_path = os.path.join(work_dir, args.device) [all …]
|
/build/scripts/ |
D | entry.py | 40 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 …]
|
D | asan_backup.py | 57 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/templates/rust/ |
D | rust_bindgen.py | 23 def filter_args(args): argument 24 for i, j in enumerate(args): 25 if args[i] == '-Xclang': 27 if args[i].startswith('-plugin-arg'): 29 elif args[i] == '-add-plugin': 32 yield args[i] 55 args = parser.parse_args() 60 if args.depfile: 62 ohos_genargs.append(args.depfile) 64 ohos_genargs.append(args.output) [all …]
|
D | rust_cxxbridge.py | 22 def run(cxx_exe, args, output, is_header_file): argument 27 run_cmd.extend(args) 44 args = parser.parse_args() 45 ret = run(args.cxxbridge, args.args, args.header, True) 48 return run(args.cxxbridge, args.args, args.cc, False)
|
D | run_build_script.py | 33 args = [rustc_path, "-vV"] 34 proc = subprocess.Popen(args, stdout=subprocess.PIPE) 43 def run_build_script(args, env, tempdir): argument 44 process = subprocess.run([os.path.abspath(args.build_script)], 46 cwd=args.src_dir, 61 with build_utils.atomic_output(args.output) as output: 64 if args.generated_files: 65 for generated_file in args.generated_files: 67 output_path = os.path.join(args.out_dir, generated_file) 79 def set_env(args, rustc_path, tempdir): argument [all …]
|
/build/templates/metadata/ |
D | gen_module_info.py | 104 symlink_target, install_enable, collect, notice, args): argument 118 if args.part_name: 119 data['part_name'] = args.part_name 120 if args.subsystem_name: 121 data['subsystem_name'] = args.subsystem_name 122 if args.shlib_type: 123 data['shlib_type'] = args.shlib_type 124 if args.innerapi_tags: 125 data['innerapi_tags'] = args.innerapi_tags 126 if args.version_script: [all …]
|
D | module_info.gni | 94 args = [ 126 args += [ 133 args += [ 140 args += [ "--install-enable" ] 143 args += [ "--collect" ] 148 args += [ 154 args += [ 159 args += [ "--install-images" ] 160 args += module_install_images 165 args += [ [all …]
|
/build/toolchain/ |
D | gcc_solink_wrapper.py | 22 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 …]
|
D | gcc_link_wrapper.py | 82 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 …]
|
D | rustc_wrapper.py | 37 def exec_formatted_command(args): argument 38 remaining_args = args.args 47 rustc_args.insert(0, args.rustc) 49 if args.rsp: 52 with open(args.rsp) as rspfile: 54 with open(args.rsp, 'w') as rspfile: 65 ret = subprocess.run([args.clippy_driver, *rustc_args], env=env, check=False) 69 if args.depfile is not None: 73 with open(args.depfile, encoding="utf-8") as depfile: 81 with build_utils.atomic_output(args.depfile) as output: [all …]
|
/build/templates/common/ |
D | check_external_deps.py | 26 def check_parts_deps(args, external_part_name, parts_deps_info): argument 29 if args.part_name in _part_allow_set: 32 compile_standard_allow_file = args.compile_standard_allow_file 36 if external_part_name == args.part_name: 38 external_part_name, args.target_path, args.part_name) 39 if args.target_path in added_self_part_allow_list: 46 args.target_path, external_part_name) 48 part_deps_info = parts_deps_info.get(args.part_name) 50 _warning_info = "{} {}.".format(_tips_info, args.part_name) 58 if args.target_path in bundle_not_add_allow_list: [all …]
|
D | check_deps_handler.py | 27 def check_third_party_deps(args, dep_part, parts_deps_info, _tips_info, third_deps_allow_list): argument 29 if args.part_name == dep_part: 31 part_deps_info = parts_deps_info.get(args.part_name) 41 if args.target_path in third_deps_allow_list: 116 def check_part_deps(args, part_pattern, path_parts_info, compile_standard_allow_info, depfiles:list… argument 128 for dep in args.deps: 135 args.target_path, dep, dep_part) 136 … check_third_party_deps(args, dep_part, parts_deps_info, tips_info, third_deps_allow_list) 146 args.part_name, args.target_path, dep) 147 if args.target_path in deps_allow_list: [all …]
|
D | check_build_target.py | 40 args = parser.parse_args() 42 return args 46 args = parse_args() 49 if not args.skip_check_subsystem: 50 _depfile = check_part_subsystem_name.check(args) 53 if args.deps: 54 _depfile = check_deps_handler.check(args) 57 if args.external_deps: 58 _depfile = check_external_deps.check(args) 63 write_depfile(args.depfile, args.output, depfiles) [all …]
|
D | delete_symbol.py | 22 def copy_strip(args): argument 23 shutil.copy(args.input, args.output) 24 subprocess.call([args.strip, args.output], shell=False) 32 args = parser.parse_args() 33 copy_strip(args)
|
D | check_part_subsystem_name.py | 26 def check(args): argument 32 if args.subsystem_name in subsystem_allow_set or args.part_name in part_allow_set: 35 compile_standard_allow_file = args.compile_standard_allow_file 45 subsystems_name = data.get(args.part_name) 46 if subsystems_name is None or subsystems_name == '' or subsystems_name != args.subsystem_name: 50 if args.target_path in bundle_file_allow_list: 63 args = parser.parse_args() 65 check(args)
|
/build/ |
D | prebuilts_download.py | 45 def _check_sha256_by_mark(args, check_url, code_dir, unzip_dir, unzip_filename): argument 51 args.mark_file_path = mark_file_path 64 def _uncompress(args, src_file, code_dir, unzip_dir, unzip_filename, mark_file_path): argument 75 def _copy_url(args, task_id, url, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path, … argument 98 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path) 110 def _copy_url_disable_rich(args, url, local_file, code_dir, unzip_dir, unzip_filename, mark_file_pa… argument 125 _uncompress(args, local_file, code_dir, unzip_dir, unzip_filename, mark_file_path) 135 def _hwcloud_download(args, config, bin_dir, code_dir): argument 143 parse_dict = _config_parse(config_info, args.tool_repo) 152 if _check_sha256_by_mark(args, huaweicloud_url, code_dir, unzip_dir, unzip_filename): [all …]
|
/build/ohos/images/ |
D | build_image.py | 119 def _make_image(args): argument 120 if args.image_name == 'system': 121 _prepare_root(args.input_path, args.target_cpu) 122 elif args.image_name == 'updater': 123 _prepare_updater(args.input_path, args.target_cpu) 124 elif args.image_name == 'updater_ramdisk': 125 _prepare_updater(args.input_path, args.target_cpu) 126 elif args.image_name == 'ramdisk': 127 _prepare_ramdisk(args.input_path) 129 if args.sparse_image: [all …]
|
/build/lite/ndk/doc/ |
D | gen_doc.py | 31 def gen_doc(args): argument 32 html_output_dir = args.output 35 suffix=os.path.basename(args.doxygen_file)) as doxygen_file: 36 shutil.copyfile(args.doxygen_file, doxygen_file.name) 40 raise Exception('Failed to read %s' % args.doxygen_file) 44 args.version, 46 args.exclude_dir, 48 os.path.relpath(html_output_dir, args.working_dir) 62 if os.path.exists(args.working_dir) is not True: 65 os.chdir(args.working_dir) [all …]
|
/build/config/mac/ |
D | xcrun.py | 19 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/ohos/packages/ |
D | parts_install_info.py | 56 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 …]
|