/build/lite/ndk/ |
H A D | archive_ndk.py | 29 name = fields[0] + '.' + fields[1] + '.' + fields[2] 34 shutil.make_archive(name, file_format, archive_from, archive_to) 35 shutil.move('%s.%s' % (name, file_format), destination) 46 '--name', 47 help='NDK name.', 66 name = args.name 67 print(dest, name) 68 make_archive(src, dest + '-' + name + '.zip')
|
/build/tools/component_tools/ |
H A D | generate_kconfig.py | 36 def create_config(name: str, comment: str): 37 return KCONFIG_STR.format(name, comment) 40 def create_property(name: str, comment: str): 41 return PROPERTIES_STR.format(name, comment) 44 def create_menu(name: str): 45 return KMENU_STR.format(name) 52 def create_feature(name: str): 53 return FEATURE_STR % (name, name)
|
/build/ohos/images/ |
H A D | get_module_install_dest.py | 22 def get_source_name(module_type: str, name: str, prefix_override: str, suffix: str): 23 """generate source file name by type""" 25 if not name.startswith('lib'): 26 name = 'lib' + name 29 name = name + suffix 31 name = '' 32 return name, alias 63 parser.add_argument('--install-name', require [all...] |
/build/ohos/packages/ |
H A D | check_seccomp_library_name.py | 40 services_name.add(field['name']) 43 raise ValidateError('cfg error,please use json file replace xml process name: ' + field['name']) 68 name = file[front_pos : rear_pos] 69 if not name.startswith('com.') and name not in name_allow_list: 70 services_name.add(name) 76 for name in seccomp_services_name: 77 if name not in servces_name: 78 raise ValidateError('service name {} no [all...] |
H A D | process_field_validate.py | 30 def __init__(self, name, reason): 32 self.name = name 128 self.name = "" 138 self.name = "" 144 self.name = process_item["name"] 210 print("Error: {}is not a valid whilelist, it has not a wanted field name".format(process_path)) 214 if i["name"] not in item_container : 219 if temp_item.name no [all...] |
H A D | generate_host_symlink.py | 42 for name in symlink_dest: 44 symlink_dest_file = os.path.join(root_build_dir, symlink_dest_dir, name)
|
/build/toolchain/mac/ |
H A D | linker_driver.py | 76 # Convert driver actions into a map of name => lambda to invoke. 91 name = action[0] 92 if name in linker_driver_actions: 93 linker_driver_outputs += linker_driver_actions[name](args) 105 name and unary lambda to invoke for that linker driver action. 112 0: The driver action name, as in _LINKER_DRIVER_ACTIONS. 124 (name, action) = driver_action 125 if sub_arg.startswith(name): 126 return (name, 127 lambda full_args: action(sub_arg[len(name) [all...] |
/build/scripts/util/ |
H A D | build_utils.py | 156 subprocess.check_call(['prog', '--output', tmp_file.name]) 170 and filecmp.cmp(f.name, path)): 171 shutil.move(f.name, path) 173 if os.path.exists(f.name): 174 os.unlink(f.name) 289 def _check_zip_path(name): 290 if os.path.normpath(name) != name: 291 raise Exception('Non-canonical zip path: %s' % name) 292 if os.path.isabs(name) [all...] |
/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_check_common.py | 98 def match_unix_like_name(name:str): 102 return re.match(r'^[a-z][a-z0-9_]{1,62}$', name) 105 def match_bundle_full_name(name:str): 107 @func: 检查 bundle.json 第一个 name 字段命名规则。 109 return re.match(r'^@[a-z]+/([a-z][a-z0-9_]{1,62})$', name
|
/build/ohos/ndk/ |
H A D | generate_ndk_stub_file.py | 50 name = inf.get('name') 52 contents.append(STUB_VARIABLE_TEMPLATE.format(name)) 54 contents.append(STUB_FUNCTION_TEMPLATE.format(name))
|
H A D | generate_ndk_docs.py | 50 shutil.copyfile(options.doxygen_file, doxygen_file.name) 51 with open(doxygen_file.name, 'r') as f: 66 with open(doxygen_file.name, 'w') as f: 86 cmd = [doxygen_path, doxygen_file.name]
|
H A D | generate_version_script.py | 41 parser.add_option('--shlib-name', help='output name of shared library') 52 name = inf['name'] 53 contents.append('\t%s;' % name)
|
/build/scripts/ |
H A D | gen_summary_ebpf_testcase_config.py | 38 for name in files: 39 if name.endswith('.json'): 40 subsystem_list.append(os.path.join(root, name))
|
H A D | cargo2gn.py | 35 # The name of the temporary output directory. 61 # Rust package name with suffix -d1.d2.d3(+.*)?. 104 def is_build_script(name: str): 106 return name.startswith('build_script_') 145 self.root_pkg_name = '' # parent package name of a sub/test packge 169 self.cargo_pkg_name = '' # value extracted from Cargo.toml name field 187 self.error_infos += 'ERROR: missing --crate-name\n' 232 if arg == '--crate-name': 361 """Read name of [package] in ./Cargo.toml.""" 369 self.root_pkg_name = get_designated_pkg_info(infile, 'name') [all...] |
/build/hb/util/loader/ |
H A D | subsystem_scan.py | 56 for name in files: 57 if name == 'ohos.build': 58 _files.append(os.path.join(root, name)) 59 elif name == 'bundle.json': 60 _bundle_files.append(os.path.join(root, name))
|
H A D | load_ohos_build.py | 92 part_name = bundle_config.get('component').get('name') 137 label = kit_lib.get('name') 139 raise Exception("kits lib config incorrect, required for name.") 141 lib_config.append(' name = "{}"'.format(label)) 205 """part name.""" 304 label = inner_kits_lib.get('name') 307 info['name'] = lib_name 332 kits.append('"{}"'.format(_kits_lib.get('name'))) 350 "ohos.build incorrect, part name: '{}'".format(part_name), "2014") 531 """parts name lis [all...] |
/build/templates/metadata/ |
H A D | gen_module_info.py | 26 def get_source_name(module_type, name, prefix_override, suffix, 28 """Generate source file name by type.""" 31 if not name.startswith('lib'): 32 name = 'lib' + name 35 alias = '%s%s' % (name, alternative_suffix) 37 name = '%s%s' % (name, suffix) 39 name = '' 40 return name, alia [all...] |
/build/indep_configs/scripts/ |
H A D | refactor_hpm_bundle_json.py | 48 if entry.name == 'bundle.json': 51 dirs_info.update({entry.name: [f"{entry.name}/*"]}) 54 file_list.append(entry.name) 56 print(f'{entry.name} is not file or dir ')
|
/build/config/components/init/param/ |
H A D | param_fixer.py | 45 name = line[:pos] 47 name = name.strip() 49 contents[name] = value
|
/build/lite/ |
H A D | build_ext_components.py | 41 copyfile(temp_file.name, error_log_path) 42 os.remove(temp_file.name) 84 copyfile(temp_file.name, args.target_dir[0]) 85 os.remove(temp_file.name)
|
/build/lite/ndk/doc/ |
H A D | gen_doc.py | 36 shutil.copyfile(args.doxygen_file, doxygen_file.name) 37 with open(doxygen_file.name, 'r') as file: 54 with os.fdopen(os.open(doxygen_file.name, 78 cmd = [doxygen_path, doxygen_file.name]
|
/build/hb/services/ |
H A D | menu.py | 56 'name': choice, 65 'name': cpu, 71 'name': config.target_cpu, 78 'name': all_build_args.get('target_cpu').arg_value, 97 product = product_info['name'] 111 'name': product.split('@')[0], 123 'name': 'mini', 127 'name': 'small', 131 'name': 'standard', 138 def _list_promt(self, name [all...] |
/build/hb/resolver/ |
H A D | indep_build_args_resolver.py | 33 for name in sys.argv[2:]: 34 if not name.startswith('-'): 35 part_name_list.append(name)
|
/build/ohos/hisysevent/ |
H A D | gen_def_from_all_yaml.py | 66 _DEPRECATED_EVENT_NAME_PREFIX = "deprecated event name prefix" 67 _DEPRECATED_PARAM_NAME_PREFIX = "deprecated param name prefix" 68 _DEPRECATED_TAG_NAME = "deprecated tag name" 69 _DEPRECATED_EVENT_DESC_NAME = "deprecated event desc name" 70 _DEPRECATED_PARAM_DESC_NAME = "deprecated param desc name" 557 def _check_param_name(event_name: str, name: str) -> bool: 559 if not _is_valid_length(name, 1, 32): 561 (event_name, name, len(name))) 563 if len(event_name) > 0 and name [all...] |
/build/hb/ |
H A D | setup.py | 31 name='ohos-build', variable
|