/ohos5.0/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | translator.py | 81 def update_capi_file(header, dir_name, work_dir): argument 82 dir_path = os.path.join(os.path.join(work_dir, dir_name), 'capi') 95 def update_cpptoc_file(header, dir_name, work_dir): argument 115 def update_ctocpp_file(header, dir_name, work_dir): argument 135 def translate_dir(dir_name): argument 154 update_capi_file(header, dir_name, root_dir) 157 update_cpptoc_file(header, dir_name, root_dir) 160 update_ctocpp_file(header, dir_name, root_dir) 166 for dir_name in dir_names: 167 if len(dir_name) > 0: [all …]
|
H A D | make_ctocpp_impl.py | 178 def ctocpp_get_static_funcion(cls, func, suffix, dir_name, retval_default): argument 185 if dir_name == 'ohos_nweb': 223 if dir_name == 'ohos_nweb': 249 def ctocpp_make_function_impl(cls, func, suffix, dir_name): argument 330 def ctocpp_make_function_body(cls, funcs, dir_name): argument 342 impl += ctocpp_make_function_impl(cls, func, suffix, dir_name) 346 def ctocpp_make_functions_body(cls, header, dir_name): argument 355 def ctocpp_make_include_files(cls, body, header, dir_name): argument 358 if dir_name == 'ohos_nweb': 382 def make_ctocpp_impl_file(header, dir_path, dir_name, clsname): argument [all …]
|
H A D | make_cpptoc_impl.py | 328 def cpptoc_make_include_file(cls, body, header, dir_name): argument 329 result = file_parser.format_translation_includes(header, dir_name, body) 331 if dir_name == 'ohos_nweb': 344 def cpptoc_make_class_function(cls, prefix, header, dir_name): argument 352 if dir_name == 'ohos_nweb': 367 def cpptoc_make_c_function_body(cls, header, dir_name, defined_names): argument 374 cpptoc_make_class_function(cls, prefix, header, dir_name) 377 cpptoc_make_class_function(cls, prefix, header, dir_name) 381 def make_cpptoc_impl_file(header, dir_path, dir_name, clsname): argument 388 function_body = cpptoc_make_c_function_body(cls, header, dir_name, defined_names) [all …]
|
H A D | make_cpptoc_header.py | 27 def make_cpptoc_header_file(header, dir_path, dir_name, class_name): argument 43 result = make_file_base.make_include_file(cls, 'CppToC', header, dir_name, class_name) 66 absolute_dir = os.path.join(os.path.join(dir_path, dir_name), 'cpptoc')
|
H A D | make_ctocpp_header.py | 64 def make_ctocpp_header_file(header, dir_path, dir_name, class_name): argument 89 result = make_file_base.make_include_file(cls, 'CToCpp', header, dir_name, class_name) 112 absolute_dir = os.path.join(os.path.join(dir_path, dir_name), 'ctocpp')
|
H A D | make_file_base.py | 82 def make_include_file(cls, ident, header, dir_name, class_name): argument 84 capi_path = os.path.join(dir_name, 'capi', cls.get_capi_file_name()) 85 include_path = os.path.join(dir_name, 'include', cls.get_file_name())
|
H A D | make_capi_header.py | 167 def make_capi_header_file(header, dir_path, dir_name, file_name): argument 207 absolute_dir = os.path.join(os.path.join(dir_path, dir_name), 'capi')
|
H A D | file_parser.py | 187 def format_translation_includes(header, dir_name, body): argument 213 result += '#include "'+dir_name+'/cpptoc/'+directory+ \ 226 result += '#include "'+dir_name+'/ctocpp/'+directory+ \
|
/ohos5.0/base/web/webview/ |
H A D | prepare.sh | 62 local dir_name=ohos_$1 63 rm -rf ${OHOS_GLUE_DIR}/${dir_name} && mkdir -p ${OHOS_GLUE_DIR}/${dir_name} 64 …handle_copy_dir ${INTERFACE_OHOS_GLUE_DIR}/${dir_name}/include ${OHOS_GLUE_DIR}/${dir_name}/include 65 …handle_copy_dir ${INTERFACE_OHOS_GLUE_DIR}/${dir_name}/bridge/webview ${OHOS_GLUE_DIR}/${dir_name}… 66 …handle_copy_dir ${INTERFACE_OHOS_GLUE_DIR}/${dir_name}/cpptoc/webview ${OHOS_GLUE_DIR}/${dir_name}… 67 …handle_copy_dir ${INTERFACE_OHOS_GLUE_DIR}/${dir_name}/ctocpp/webview ${OHOS_GLUE_DIR}/${dir_name}… 131 local dir_name=ohos_${OHOS_GLUE_MODULE} 132 local file_list=$(find ${OHOS_GLUE_DIR}/${dir_name}/include -name "*.h") 147 dir_name=$(date +"%Y%m%d%H%M%S") 148 handle_develop_commond ${dir_name} webcore [all …]
|
H A D | copy_files.py | 85 dir_name = 'ohos_' + module_name; 86 log_util.LogUtil.hb_info("begin to copy glue '{}' dir".format(dir_name)) 87 dst_dir = os.path.join(glue_dir, dir_name) 91 src_dir = os.path.join(INTERFACE_OHOS_GLUE_DIR, dir_name)
|
/ohos5.0/build/ohos/packages/rules/ |
H A D | categorized_libraries_utils.py | 76 dir_name = item[:pos] 78 if dir_name.endswith("chipset-sdk") or dir_name.endswith("platformsdk") \ 79 …or dir_name.endswith("chipset-pub-sdk") or dir_name.endswith("ndk") or dir_name.endswith("chipsets… 80 dir_name = dir_name[:dir_name.rfind("/")] 81 …dest.append("{}/{}/{}".format(dir_name, categorized_libraries[label]["relative_install_dir"], lib_…
|
/ohos5.0/build/scripts/ |
H A D | sign_sdk.py | 36 dir_name = zipfile.split('-')[0] 40 for root, dirs, files in os.walk(dir_name): 51 cmd4 = ['zip', '-rq', zipfile, dir_name] 53 cmd5 = ['rm', '-rf', dir_name]
|
H A D | dir_exists.py | 18 def _is_dir(dir_name) -> str: argument 19 return str(os.path.isdir(dir_name))
|
H A D | asan_backup.py | 66 dir_name = os.path.basename(args.backup_dir) 67 _dest_dir = os.path.join(args.backup_dest_dir, dir_name)
|
H A D | cargo2gn.py | 338 dir_name = os.path.dirname(self.main_src) 339 while dir_name: 340 if dir_name.endswith('.'): 341 dir_name = os.path.dirname(dir_name) 343 if os.path.exists(os.path.join(dir_name, 'Cargo.toml')): 344 self.cargo_dir = dir_name 346 dir_name = os.path.dirname(dir_name)
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
H A D | file_stream_dumper.cpp | 182 std::string dir_name = target; in BuildFileNames() local 185 … if (dir_name.compare(dir_name.size() - backslash.size(), backslash.size(), backslash) != 0) { in BuildFileNames() 186 dir_name.append(backslash); in BuildFileNames() 194 std::string filename = dir_name + d_name; in BuildFileNames()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 450 for path, dir_name, _ in os.walk(templates_dir): 451 if dir_name: 452 templates_model_dir.extend(dir_name) 490 for path, dir_name, _ in os.walk(templates_dir): 491 if dir_name: 492 templates_model_dir.extend(dir_name) 497 lambda dir_name: os.path.join(templates_dir, dir_name),
|
/ohos5.0/build/lite/ |
H A D | gen_module_notice_file.py | 121 dir_name = os.path.dirname(filename) 122 if not os.path.exists(dir_name): 123 makedirs(dir_name)
|
/ohos5.0/build/ |
H A D | prebuilts_config.sh | 71 dir_name=${file%/*} 98 mv $file "$dir_name/$newfile_name"
|
H A D | prebuilts_config.py | 60 def npm_install(dir_name): argument 61 … result = subprocess.run(["npm", "install", "--prefix", dir_name], capture_output=True, text=True) 63 print("{}目录下npm install完毕".format(dir_name))
|
/ohos5.0/build/ohos/packages/ |
H A D | system_gzip_package.py | 34 for dir_name in dirs: 35 src_dir = os.path.join(root, dir_name)
|
/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/test/ |
H A D | hcgen_test.py | 107 for dir_name in os.listdir(case_path): 108 if os.path.isdir(os.path.join(case_path, dir_name)): 109 cases.append(dir_name)
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_add_handler.py | 345 for dir_name in dirs: 346 dir_path = os.path.join(root, dir_name) 348 dir_dict[dir_name] = [] 350 dir_dict.get(dir_path.split(os.path.sep)[-2]).append(dir_name)
|
H A D | hdf_delete_handler.py | 122 for path, dir_name, _ in os.walk(templates_dir_path): 123 if dir_name: 124 templates_model_dir.extend(dir_name)
|