Home
last modified time | relevance | path

Searched refs:src_path (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/build/hb/util/prebuild/
H A Dpatch_process.py55 for src_path, patch_list in patch_cfg_dict.items():
56 self.patch_apply(src_path, patch_list, reverse)
58 def patch_apply(self, src_path, patch_list, reverse=False): argument
71 src_path = os.path.join(self.config.root_path, src_path)
72 if not os.path.exists(src_path):
80 src_path, patch_item)
90 cwd=src_path, shell=True)
/ohos5.0/foundation/ability/ability_lite/frameworks/ability_lite/example/
H A DBUILD.gn16 src_path =
23 "${src_path}/root_view_helper.cpp",
24 "${src_path}/service_ability.cpp",
29 "${src_path}/main_ability.cpp",
30 "${src_path}/main_ability_slice.cpp",
31 "${src_path}/next_ability_slice.cpp",
32 "${src_path}/second_ability.cpp",
33 "${src_path}/second_ability_slice.cpp",
/ohos5.0/base/global/i18n/services/src/
H A Dhmos_timezone_mount.cpp125 bool copySingleFile(const std::filesystem::path& src_path, const std::filesystem::path& dst_path) in copySingleFile() argument
127 if (!FileExist(src_path.string())) { in copySingleFile()
128 … HILOG_ERROR_I18N("copySingleFile: Source file does not exist: %{public}s", src_path.c_str()); in copySingleFile()
133 …HILOG_INFO_I18N("copySingleFile: copy file: %{public}s, %{public}s", src_path.c_str(), dst_path.… in copySingleFile()
134 if (!FileCopy(src_path.string(), dst_path.string())) { in copySingleFile()
135 HILOG_ERROR_I18N("copySingleFile: Failed to copy file: %{public}s", src_path.c_str()); in copySingleFile()
155 std::filesystem::path src_path = std::filesystem::path(CFG_PATH) / file; in CopyDataFile() local
157 if (!copySingleFile(src_path, dst_path)) { in CopyDataFile()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/
H A DBUILD.gn63 "${src_path}/common",
64 "${src_path}/common/napi",
65 "${src_path}/common/napi/n_async",
66 "${src_path}/common/file_helper",
67 "${src_path}/mod_fs",
68 "${src_path}/mod_fs/class_randomaccessfile",
69 "${src_path}/mod_fs/class_readeriterator",
70 "${src_path}/mod_fs/properties",
/ohos5.0/build/scripts/
H A Dbuild_js_assets.py86 …ata(config: dict, options, js2abc: bool, asset_index: int, assets_cnt: int, src_path: str) -> dict:
104 … if js_module_name == src_path or (js_module_name == 'MainAbility' and src_path == 'default') \
105 or (js_module_name == 'default' and src_path == 'MainAbility'):
127 src_path = os.path.basename(assets_dir[asset_index])
131 build_dir = os.path.abspath(os.path.join(options.manifest_file_path, 'js', src_path))
134 build_dir = os.path.abspath(os.path.join(options.manifest_file_path, 'ets', src_path))
157 … data = make_manifest_data(config, options, js2abc, asset_index, assets_cnt, src_path)
162 print('Warning: There is no page matching this {}'.format(src_path))
167 my_env["aceModuleBuild"] = os.path.join(gen_dir, src_path)
H A Dcompile_app.py110 src_path = module.get('srcPath')
113 cwd, src_path, 'build/default/outputs/ohosTest')
116 cwd, src_path, 'build/default/outputs/default')
/ohos5.0/build/lite/
H A Dcopy_files.py31 src_path = os.path.join(src, item)
33 if os.path.isdir(src_path):
35 shutil.copytree(src_path, dst_path, symlinks)
40 shutil.copy2(src_path, dst_path)
H A Dgen_module_notice_file.py28 def is_top_dir(src_path: str):
29 return os.path.exists(os.path.join(src_path, '.gn'))
/ohos5.0/build/toolchain/
H A Dwrapper_utils.py19 def _gzip_then_delete(src_path, dest_path): argument
27 with open(src_path, 'rb') as f_in, gzip.GzipFile(dest_path,
31 os.unlink(src_path)
/ohos5.0/build/scripts/util/
H A Dbuild_utils.py348 src_path=None, argument
362 assert (src_path is None) != (data is None), (
368 if src_path and os.path.islink(src_path):
371 zip_file.writestr(zipinfo, os.readlink(src_path))
376 if src_path:
377 st = os.stat(src_path)
382 if src_path:
383 with open(src_path, 'rb') as f:
431 src_path=fs_path,
/ohos5.0/build/lite/testfwk/
H A Dlite_testcase_resource_copy.py38 for src_path in src_files:
39 if os.path.islink(src_path):
41 file_relpath = os.path.relpath(src_path, src)
46 shutil.copy2(src_path, dest_path)
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/
H A Dhdi_add_handler.py164 src_path = os.path.join(hdi_template_path, file_src)
168 file_info = self.template_replace(src_path, replace_data)
173 file_info = self.template_replace(src_path, replace_data)
246 src_path = os.path.join(hdi_template_path, template_file_name)
259 file_info = self.template_replace(src_path, replace_data)
406 src_path = os.path.join(unittest_template_path, template_file_src)
411 file_info = self.template_replace(src_path, replace_data)
416 file_info = self.template_replace(src_path, replace_data)
484 def template_replace(self, src_path, replace_data): argument
485 file_info = hdf_utils.read_file(src_path)
/ohos5.0/build/ohos/testfwk/
H A Dtestcase_resource_copy.py40 for src_path in src_files:
41 if os.path.islink(src_path):
43 file_relpath = os.path.relpath(src_path, src)
48 shutil.copy2(src_path, dest_path)
49 result_files.append(src_path)
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/
H A DBUILD.gn140 "${src_path}/common",
141 "${src_path}/common/file_helper",
142 "${src_path}/mod_fs",
143 "${src_path}/mod_fs/properties",
144 "${src_path}/mod_fs/properties/copy_listener",
299 "${src_path}/common/file_helper",
300 "${src_path}/mod_hash",
301 "${src_path}/mod_hash/class_hashstream",
/ohos5.0/build/ohos/packages/
H A Dfs_process.py79 src_path = self.config.out_path
80 libs = [lib for lib in os.listdir(src_path) if self.is_lib(lib)]
81 target_path = os.path.join(src_path, 'usr', 'lib')
85 source_file = os.path.join(src_path, lib)
/ohos5.0/build/ohos/ndk/
H A Darchive_ndk.py60 src_path=f,
80 src_path=notice,
/ohos5.0/foundation/filemanagement/file_api/
H A Dfile_api.gni20 src_path = "${file_api_path}/interfaces/kits/js/src"
/ohos5.0/base/startup/init/services/modules/seccomp/scripts/tools/
H A Dstrace_log_analysis.py62 file_list = extract_file_from_path(args.src_path)
H A Daudit_log_analysis.py97 file_list = extract_file_from_path(args.src_path)
/ohos5.0/build/ohos/sa_profile/
H A Dsa_profile_binary.py99 src_path=sa_file_path)
/ohos5.0/build/templates/common/
H A Dgenerate_component_package.py157 def _copy_dir(src_path, target_path): argument
158 if not os.path.isdir(src_path):
160 filelist_src = os.listdir(src_path)
163 path = os.path.join(os.path.abspath(src_path), file)
/ohos5.0/build/ohos/sdk/
H A Dcopy_sdk_modules.py79 build_utils.add_to_zip_hermetic(outfile, zip_path, src_path=fs_path)