/build/hb/resources/ |
H A D | global_var.py | 22 CURRENT_OHOS_ROOT = os.path.dirname(os.path.dirname( 23 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 24 CURRENT_BUILD_DIR = os.path.join(CURRENT_OHOS_ROOT, 'build') 25 CURRENT_HB_DIR = os.path.join(CURRENT_BUILD_DIR, 'hb') 26 DEFAULT_CCACHE_DIR = os.path.join(CURRENT_OHOS_ROOT, '.ccache') 28 ARGS_DIR = os.path.join(CURRENT_HB_DIR, 'resources/args') 30 DEFAULT_BUILD_ARGS = os.path [all...] |
/build/ohos/images/ |
H A D | build_image.py | 23 sys.path.append( 24 os.path.dirname(os.path.dirname(os.path.dirname( 25 os.path.abspath(__file__))))) 31 if os.path.exists(userdata_path): 37 root_dir = os.path.join(os.path.dirname(system_path), 'root') 38 if os.path.exists(root_dir): 46 os.makedirs(os.path [all...] |
/build/ohos/sdk/ |
H A D | parse_public_sdk.py | 21 sys.path.append( 22 os.path.dirname( 23 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 28 OUTPATH = os.path.join(OUT_ROOT, "public_interface/sdk-js") 29 API_MODIFY_DIR = os.path.join(OUTPATH, "build-tools") 30 API_MODIFY_TOOL = os.path.join(API_MODIFY_DIR, "delete_systemapi_plugin.js") 31 API_PATH = os.path.join(OUTPATH, "api") 32 API_GEN_PATH = os.path [all...] |
H A D | convert_permissions.py | 22 OUTPATH = os.path.join(OUT_ROOT, "public_interface/sdk-js") 23 API_PATH = os.path.join(OUTPATH, "api") 24 API_GEN_PATH = os.path.join(OUTPATH, "build-tools/api") 28 source = os.path.join(source_root, INTERFACE_PATH) 29 dest = os.path.join(source_root, OUTPATH) 30 if os.path.exists(dest) is False: 35 source = os.path.join(source_root, API_PATH) 36 dest = os.path.join(source_root, API_GEN_PATH) 37 if os.path.exists(dest) is False: 42 permission_convert_dir = os.path [all...] |
/build/lite/testfwk/ |
H A D | lite_testcase_resource_copy.py | 21 sys.path.append( 22 os.path.dirname(os.path.dirname(os.path.dirname( 23 os.path.abspath(__file__))))) 29 if not os.path.exists(src): 31 if not os.path.exists(dest): 36 file_path = os.path.join(root, _file) 39 if os.path.islink(src_path): 41 file_relpath = os.path [all...] |
/build/ |
H A D | print_python_deps.py | 20 _SRC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) 26 A path is assumed to be a "system" import if it is outside of chromium's 33 for path in module_paths: 34 if path == __file__: 36 path = os.path.abspath(path) 37 if not path [all...] |
H A D | prebuilts_config.py | 49 sha_sums256_path = os.path.join(os.path.dirname(check_url), sha_sums256)
50 file_name = os.path.basename(check_url)
69 if not os.path.exists(dest):
75 if os.path.exists(dest):
76 if os.path.islink(dest):
84 if os.path.exists(dest_dir):
85 if os.path.islink(dest_dir):
87 elif os.path.isdir(dest_dir):
92 os.makedirs(os.path [all...] |
/build/hb/util/ |
H A D | component_util.py | 43 def is_in_component_dir(path: str) -> bool: 44 return _recurrent_search_bundle_file(path)[0] 48 build_configs_path = os.path.join( 50 if os.path.exists(build_configs_path): 57 def get_component_name(path: str) -> str: 58 found_bundle_file, bundle_path = _recurrent_search_bundle_file(path) 66 def get_component(path: str) -> str: 67 found_bundle_file, bundle_path = _recurrent_search_bundle_file(path) 70 return data['component']['name'], os.path.dirname(bundle_path) 77 default_deps_path = os.path [all...] |
/build/scripts/util/ |
H A D | md5_check.py | 27 for path in input_paths: 28 if _is_zip_file(path): 29 entries = _extract_zip_entries(path) 30 new_metadata.add_zip_file(path, entries) 32 new_metadata.add_file(path, _md5_for_path(path)) 38 if os.path.exists(record_path): 92 x for x in output_paths if force or not os.path.exists(x) 159 for path in self.iter_modified_paths(): 160 if any(self.iter_removed_subpaths(path)) [all...] |
H A D | build_utils.py | 27 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) 37 os.path.abspath( 38 os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 62 if os.path.exists(dir_path): 66 def touch(path, fail_if_missing=False): 67 if fail_if_missing and not os.path.exists(path) [all...] |
H A D | pycache.py | 32 if os.path.exists(cache_artifact): 33 os.makedirs(os.path.dirname(obj), exist_ok=True) 38 elif os.path.exists(possible_dir_cache_artifact): 55 cache_dir = os.path.dirname(cache_artifact) 58 if not os.path.exists(obj): 60 # If path is directory, store an zip archive. 61 if os.path.isdir(obj): 82 def cache_key(cls, path): 84 sha256.update(path.encode()) 88 for path i [all...] |
/build/scripts/ |
H A D | download_sdk.py | 33 build_scripts = os.path.join( 35 if os.path.exists(build_scripts): 37 cur_dir = os.path.dirname(cur_dir) 55 filename = os.path.basename(download_url) 57 if not os.path.isfile(os.path.join(savepath, filename)): 59 urlretrieve(download_url, os.path.join( 65 filesize = os.path.getsize(os.path.join(savepath, filename)) 71 target_dir = os.path [all...] |
H A D | code_release.py | 23 sys.path.append( 24 os.path.abspath(os.path.dirname(os.path.abspath( 25 os.path.dirname(__file__))))) 32 if not os.path.exists(opensource_config_file): 36 src_dir = os.path.dirname(opensource_config_file) 37 dst_dir = os.path.join(package_dir, os.path.relpath(src_dir, top_dir)) 40 if os.path [all...] |
H A D | ninja_rules_parser.py | 20 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 25 subninja_build_file = os.path.join(build_dir, subninja_build_file) 26 if not os.path.exists(subninja_build_file): 40 _, extension = os.path.splitext(build_label) 46 target_filename = os.path.basename(label_target) 47 label_name, _ = os.path.splitext(target_filename) 55 target_filename = os.path [all...] |
H A D | interface_mgr.py | 27 if os.path.isfile(filename): 44 for path, _, files in os.walk(file_dir): 47 x_file = os.path.relpath(os.path.join(path, file), 54 if not os.path.exists(subsystem_sdk_out_dir) or not os.path.isdir( 62 module_dir = os.path.join(subsystem_sdk_out_dir, module_name) 63 if not os.path.exists(module_dir) or not os.path [all...] |
H A D | asan_backup.py | 21 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 44 _dir = os.path.join(_base_dir, _dir_name) 45 if os.path.exists(_dir): 59 if not os.path.exists(args.backup_dir): 62 if os.path.exists(args.backup_dest_dir): 66 dir_name = os.path.basename(args.backup_dir) 67 _dest_dir = os.path [all...] |
/build/ohos/packages/ |
H A D | system_gzip_package.py | 22 sys.path.append( 23 os.path.dirname(os.path.dirname(os.path.dirname( 24 os.path.abspath(__file__))))) 29 if not os.path.exists(src_image_path): 31 "source image path {} does not exist.".format(src_image_path)) 35 src_dir = os.path.join(root, dir_name) 36 dir_relpath = os.path.relpath(src_dir, src_image_path) 37 dest_dir_path = os.path [all...] |
H A D | modules_install.py | 21 sys.path.append( 22 os.path.dirname(os.path.dirname(os.path.dirname( 23 os.path.abspath(__file__))))) 27 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "rules")) 96 shutil.copy(source, os.path [all...] |
H A D | backup_restore_artifact.py | 28 str_out_basename = os.path.basename(args.output_dir) 29 if (str_out_basename == "backup" and not os.path.exists(args.output_dir)): 35 if os.path.exists(source): 38 output_path = os.path.join( 39 args.output_dir, os.path.basename(source)) 42 str_out_basename, os.path.basename(source)) 45 str_out_basename, os.path.basename(source)) 46 asan_symbols_backup_path = source.replace(os.path.basename( 47 source), os.path.join(os.path [all...] |
H A D | resources_collect.py | 21 sys.path.append( 22 os.path.dirname(os.path.dirname(os.path.dirname( 23 os.path.abspath(__file__))))) 48 _variant_dir = os.path.join(_toolchain_name, resources_dir, 51 _variant_dir = os.path.join(resources_dir, part_name) 52 if not os.path.exists(_variant_dir): 55 _src_dir_name = os.path.basename(resources_dir) 56 package_output_dir = os.path [all...] |
/build/lite/ |
H A D | gen_module_notice_file.py | 29 return os.path.exists(os.path.join(src_path, '.gn')) 33 if (not os.path.isdir(src_dir)) or is_top_dir(src_dir): 36 file_path = os.path.join(src_dir, file) 37 if os.path.isfile(file_path): 38 if os.path.basename(file_path) == target_cfg: 40 return find_config_parent_file(os.path.dirname(src_dir), target_cfg) 45 if not os.path.exists(readme_file_path) or os.path.isdir(readme_file_path): 61 license_file_path = os.path [all...] |
/build/hb/util/preloader/ |
H A D | preloader_process_data.py | 32 self.build_prop = os.path.join(output_dir, 'build.prop') 33 self.build_config_json = os.path.join(output_dir, 'build_config.json') 34 self.parts_json = os.path.join(output_dir, 'parts.json') 35 self.parts_config_json = os.path.join(output_dir, 'parts_config.json') 36 self.build_gnargs_prop = os.path.join(output_dir, 'build_gnargs.prop') 37 self.features_json = os.path.join(output_dir, 'features.json') 38 self.syscap_json = os.path.join(output_dir, 'syscap.json') 39 self.exclusion_modules_json = os.path.join(output_dir, 41 self.subsystem_config_json = os.path.join(output_dir, 43 self.subsystem_config_overlay_json = os.path [all...] |
/build/ohos/notice/ |
H A D | collect_module_notice_file.py | 22 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) 40 return os.path.exists(os.path.join(current_dir, '.gn')) 45 if os.path.isfile(license_file_path): 46 license_dir = os.path.dirname(license_file_path) 47 license_file = os.path.basename(license_file_path) 49 license_path = os.path.join(license_dir, file) 50 if os.path [all...] |
/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_check_common.py | 52 cur_path = os.path.dirname(os.path.abspath(__file__)) 53 root_path = os.path.normpath(os.path.join(cur_path, '../../../../../')) 59 'get root path failed, please check script "bundle_check_common.py" under ' 60 'the path(build/tools/component_tools/static_check/bundle_check).') 66 def is_project(path:str) -> bool: 71 if not path: 73 abs_path = os.path.abspath(os.path [all...] |
/build/ohos/testfwk/ |
H A D | testcase_resource_copy.py | 22 sys.path.append( 23 os.path.dirname(os.path.dirname(os.path.dirname( 24 os.path.abspath(__file__))))) 30 if not os.path.exists(src): 32 if not os.path.exists(dest): 38 file_path = os.path.join(root, _file) 41 if os.path.islink(src_path): 43 file_relpath = os.path [all...] |