Home
last modified time | relevance | path

Searched refs:name (Results 1 - 25 of 51) sorted by relevance

123

/build/lite/ndk/
H A Darchive_ndk.py29 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 Dgenerate_kconfig.py36 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 Dget_module_install_dest.py22 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 Dcheck_seccomp_library_name.py40 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 Dprocess_field_validate.py30 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 Dgenerate_host_symlink.py42 for name in symlink_dest:
44 symlink_dest_file = os.path.join(root_build_dir, symlink_dest_dir, name)
/build/toolchain/mac/
H A Dlinker_driver.py76 # 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 Dbuild_utils.py156 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 Dbundle_check_common.py98 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 Dgenerate_ndk_stub_file.py50 name = inf.get('name')
52 contents.append(STUB_VARIABLE_TEMPLATE.format(name))
54 contents.append(STUB_FUNCTION_TEMPLATE.format(name))
H A Dgenerate_ndk_docs.py50 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 Dgenerate_version_script.py41 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 Dgen_summary_ebpf_testcase_config.py38 for name in files:
39 if name.endswith('.json'):
40 subsystem_list.append(os.path.join(root, name))
H A Dcargo2gn.py35 # 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 Dsubsystem_scan.py56 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 Dload_ohos_build.py92 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 Dgen_module_info.py26 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 Drefactor_hpm_bundle_json.py48 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 Dparam_fixer.py45 name = line[:pos]
47 name = name.strip()
49 contents[name] = value
/build/lite/
H A Dbuild_ext_components.py41 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 Dgen_doc.py36 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 Dmenu.py56 '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 Dindep_build_args_resolver.py33 for name in sys.argv[2:]:
34 if not name.startswith('-'):
35 part_name_list.append(name)
/build/ohos/hisysevent/
H A Dgen_def_from_all_yaml.py66 _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 Dsetup.py31 name='ohos-build', variable

Completed in 8 milliseconds

123