/build/hb/util/loader/ |
H A D | load_bundle_file.py | 51 _component_info = self.bundle_info.get('component') 61 _bundle_build = _component_info.get('build') 69 _module_groups = _bundle_build.get('group_type') 76 _component_info = self.bundle_info.get('component') 77 _subsystem_name = _component_info.get('subsystem') 78 _part_name = _component_info.get('name') 79 _bundle_build = _component_info.get('build') 85 if _component_info.get('build').__contains__('sub_component'): 86 _part_info['module_list'] = _component_info.get('build').get( [all...] |
H A D | subsystem_info.py | 34 for key, val in subsystem_configs.get('subsystem').items(): 35 src_subsystem[key] = val.get('path') 43 subsystem_configs.get('no_src_subsystem')) 52 overlay_path = subsystem_config_overlay.get('subsystem').get(subsystem)['path'] 57 subsystem_configs.get('subsystem').get(subsystem)['path'] += \ 58 subsystem_config_overlay.get('subsystem').get(subsystem)['path'] 59 subsystem_configs.get('subsyste [all...] |
H A D | load_ohos_build.py | 92 part_name = bundle_config.get('component').get('name') 93 part_syscap = bundle_config.get('component').get('syscap') 134 lib_type = kit_lib.get('type') 137 label = kit_lib.get('name') 143 header = kit_lib.get('header') 144 header_files = header.get('header_files') 150 header_base = header.get('header_base') 154 javadoc_val = kit_lib.get('javado [all...] |
H A D | platforms_loader.py | 49 parts = _platform_config.get('parts') 53 stub_parts = _platform_config.get('stub_parts') 67 config_version = config_info.get('version') 68 platforms_info = config_info.get('platforms') 74 target_os = _info.get('target_os') 75 target_cpu = _info.get('target_cpu') 82 _infos = platforms_config.get(arch) 89 target_os = _info.get('target_os') 90 target_cpu = _info.get('target_cpu') 97 _infos = platforms_config.get(arc [all...] |
/build/hb/resolver/ |
H A D | set_args_resolver.py | 49 config.product = product_info.get('name') 50 config.product_path = product_info.get('product_path') 51 config.version = product_info.get('version') 52 config.os_level = product_info.get('os_level') 53 config.product_json = product_info.get('config') 54 config.component_type = product_info.get('component_type') 55 if product_info.get('product_config_path'): 56 config.product_config_path = product_info.get( 59 config.product_config_path = product_info.get('path') 62 config.board = device_info.get('boar [all...] |
H A D | args_factory.py | 44 if arg['arg_attribute'].get('abbreviation'): 52 if arg['arg_attribute'].get('optional'): 53 if arg['arg_attribute'].get('abbreviation'): 57 elif arg['arg_attribute'].get('abbreviation'): 65 if arg['arg_attribute'].get('abbreviation'): 73 return parser.add_argument(arg['arg_attribute'].get('abbreviation'), arg['arg_name'], help=arg['arg_help'], 78 return parser.add_argument(arg['arg_attribute'].get('abbreviation'), arg['arg_name'], help=arg['arg_help'], 84 default=arg['argDefault'], choices=arg['arg_attribute'].get('optional')) 88 return parser.add_argument(arg['arg_attribute'].get('abbreviation'), arg['arg_name'], help=arg['arg_help'], 89 default=arg['argDefault'], choices=arg['arg_attribute'].get('optiona [all...] |
H A D | indep_build_args_resolver.py | 53 arg = args_dict.get("target_cpu") 54 build_executor.regist_flag('cpu', arg.get("argDefault")) 63 arg = args_dict.get("target_os") 64 build_executor.regist_flag('os', arg.get("argDefault")) 95 arg = args_dict.get("part") 96 if arg.get("argDefault"): 97 bundle_path = ComponentUtil.search_bundle_file(arg.get("argDefault")) 113 arg = args_dict.get("variant") 115 build_executor.regist_flag('variant', arg.get("argDefault")) 124 arg = args_dict.get("branc [all...] |
/build/hb/util/ |
H A D | product_util.py | 50 product_name = info.get('product_name') 51 if info.get('product_path'): 53 config.root_path, info.get('product_path')) 65 'version': info.get('version', '3.0'), 66 'os_level': info.get('type', "mini"), 67 'build_out_path': info.get('build_out_path'), 69 info.get('subsystem_config_json'), 73 'component_type': info.get('component_type', '') 81 'version': info.get('version', '3.0'), 82 'os_level': info.get('typ [all...] |
/build/hb/util/preloader/ |
H A D | preloader_process_data.py | 102 self._version = self._config.get('version', '3.0') 117 product_name = self._config.get('product_name') 120 os_level = self._config.get('type') 123 api_version = self._config.get('api_version') 126 manufacturer_id = self._config.get('manufacturer_id') 135 device_name = self._config.get('product_device') 141 device_name = self._config.get('board') 160 os_level = self._config.get("type", "standard") 162 os_level = self._config.get("type", "mini") 164 based_on_mininum_system = self._config.get( [all...] |
H A D | parse_vendor_product_config.py | 81 ss_name = subsystem.get('subsystem') 82 components = subsystem.get('components') 85 com_name = com.get('component') 86 features = com.get('features') 87 syscap = com.get('syscap') 88 exclusions = com.get('exclusions') 96 parts.get('{}:{}'.format(ss_name, com_name)).update(pairs) 99 parts.get('{}:{}'.format(ss_name, com_name)).update(pairs) 109 subsystems = config.get('subsystems') 135 if product_name == config.get('product_nam [all...] |
/build/tools/component_tools/ |
H A D | full_components_generator.py | 62 ret["subsystem"] = data.get("subsystem") 63 for k, _ in data.get("parts").items(): 64 ret.get("components").append(k) 72 ret["subsystem"] = data.get("component").get("subsystem") 73 ret.get("components").append(data.get("component").get("name")) 85 if data.get("subsystem") == subsys: 86 ret = ret.union(set(data.get("component [all...] |
H A D | parse_kconf.py | 40 for item in data.get(SUBSYS_LIST): 41 subsys_name = item.get(SUBSYS) 42 for component in item.get(COMPONENT_LIST): 43 component_name = component.get(COMPONENT) 62 deps = component_deps_dict.get(component_name) 68 subsys_name = component_subsys_dict.get(dep) 71 if subsys_conf.get(subsys_name) is None: 133 subsys = items.get(SUBSYS) 134 component = items.get(COMPONENT) 135 conf_type = items.get(TYP [all...] |
/build/templates/common/ |
H A D | external_deps_handler.py | 28 toolchain = platform_toolchain.get(current_variant) 32 toolchain = platform_toolchain.get(current_variant) 43 external_module_array = components_info_dict.get("innerapis") 45 if external_module.get("name") == external_module_name: 53 _inner_kits_info_dict = parts_inner_kits_info.get(external_part_name) 58 external_module_desc_info = _inner_kits_info_dict.get( 61 _new_kits_info_dict = parts_inner_kits_info.get(adapted_part_name) 65 external_module_desc_info = _new_kits_info_dict.get( 72 _components_info_dict = components_info.get(external_part_name) 93 sdk_module_info = subsystem_sdk_info.get(external_module_nam [all...] |
H A D | generate_component_package.py | 56 label = _innerapi.get("label") 80 part_data = data.get(part) 105 data_list = json_data.get(json_key) 106 if isinstance(data_list, list) and len(json_data.get(json_key)) >= 1: 109 desc_list.append(json_data.get(json_key)) 113 value_depth = len(json_data.get(json_key)) 115 _include_dirs = json_data.get(json_key)[i].get('include_dirs') 121 json_path = os.path.join(args.get("out_path"), 122 args.get("subsystem_nam [all...] |
H A D | check_external_deps.py | 29 added_self_part_allow_list = compile_standard_allow_info.get("external_deps_added_self_part_module", []) 30 bundle_not_add_allow_list = compile_standard_allow_info.get("external_deps_bundle_not_add", []) 43 part_deps_info = parts_deps_info.get(args.part_name) 46 elif not part_deps_info.get('components') or \ 47 not external_part_name in part_deps_info.get('components'): 48 _warning_info = "{} {}.".format(_tips_info, part_deps_info.get('build_config_file'))
|
/build/ |
H A D | prebuilts_download.py | 77 parse_dict['unzip_dir'] = config.get('unzip_dir') 78 file_path = config.get('file_path') 82 parse_dict['unzip_filename'] = config.get('unzip_filename') 83 md5_huaweicloud_url_cmd = 'echo ' + parse_dict.get('huaweicloud_url') + "|md5sum|cut -d ' ' -f1" 85 parse_dict['bin_file'] = os.path.basename(parse_dict.get('huaweicloud_url')) 175 unzip_dir = parse_dict.get('unzip_dir') 176 huaweicloud_url = parse_dict.get('huaweicloud_url') 177 unzip_filename = parse_dict.get('unzip_filename') 178 md5_huaweicloud_url = parse_dict.get('md5_huaweicloud_url') 179 bin_file = parse_dict.get('bin_fil [all...] |
H A D | prebuilts_config.py | 126 name = npm_dict.get('name')
127 npm_download = npm_dict.get('download')
128 package_path = os.path.join(code_path, npm_download.get('package_path'))
129 package_lock_path = os.path.join(code_path, npm_download.get('package_lock_path'))
132 download_dir = os.path.join(home_path, npm_download.get('download_dir'), hash_value)
135 symlink = os.path.join(code_path, npm_download.get('symlink'))
150 for link in npm_download.get('symlink', []):
154 symlink = os.path.join(code_path, npm_download.get('symlink'))
162 for copy_entry in npm_download.get('copy', []):
165 for copy_ext_entry in npm_download.get('copy_ex [all...] |
/build/ohos/sdk/ |
H A D | parse_sdk_description.py | 73 item.get('targets').get('linux').add_target('"%s",' % target) 75 item.get('targets').get('windows').add_target('"%s",' % target) 77 item.get('targets').get('darwin').add_target('"%s",' % target) 79 item.get('targets').get('ohos').add_target('"%s",' % target) 88 {% set sdk_type = item.get('type') %} 89 {% set targets = item.get('target [all...] |
H A D | copy_sdk_modules.py | 33 source = data.get('source') 34 notice = data.get('notice') 41 source = cp_info.get('source') 42 dest = cp_info.get('dest') 43 notice = cp_info.get('notice') 44 install_dir = cp_info.get('install_dir') 118 sdk_label = module.get('label') 119 module_info_file = module.get('module_info_file') 126 if sdk_label == item.get('label'): 127 dest = os.path.join(sdk_out_dir, item.get('install_di [all...] |
/build/ohos/statistics/ |
H A D | build_overlap_statistics.py | 24 if contents.get('deps_info').get('combine_target'): 37 return contents.get('deps_info').get('java_sources_file') 59 path = data.get(key).get('path') 104 path = paths.get(subsystem) 134 item.get('subsystem'), item.get('files'), 135 item.get('files_percentag [all...] |
/build/scripts/ |
H A D | gen_sdk_build_file.py | 91 subsystem_name = module_desc.get('subsystem_name') 92 part_name = module_desc.get('part_name') 93 origin_name = module_desc.get('origin_name') 94 module_type = module_desc.get('type') 95 module_name = module_desc.get('name') 96 module_info_file = module_desc.get('source_info') 97 _current_toolchain_dir = module_desc.get('current_toolchain_dir') 99 # read module_info.json file, get module source path 107 source = source_data.get('source') 109 source = source_data.get('alternative_sourc [all...] |
/build/hb/modules/ |
H A D | ohos_build_module.py | 74 self.args_dict.get('product_name').arg_value)) 81 if self.args_dict.get('fast_rebuild', None) and not self.args_dict.get('fast_rebuild').arg_value: 86 if self.args_dict.get('fast_rebuild', None) and not self.args_dict.get('fast_rebuild').arg_value: 94 if not self.args_dict.get("build_only_load").arg_value and not self.args_dict.get("fast_rebuild").arg_value: 105 if not self.args_dict.get("build_only_load").arg_value and not self.args_dict.get("build_only_gn").arg_value:
|
/build/ohos/packages/ |
H A D | fs_process.py | 91 self.fs_cfg.get('fs_dir_name', 'rootfs')) 92 exist_ok, with_rm = self.is_incr(self.fs_cfg.get('fs_incr', None)) 98 for fs_dir in self.fs_cfg.get('fs_dirs', []): 99 source_dir = fs_dir.get('source_dir', '') 100 target_dir = fs_dir.get('target_dir', '') 110 target_mode_tuple = (target_path, fs_dir.get('dir_mode', 755)) 123 ignore_files = fs_dir.get('ignore_files', []) 124 dir_mode = fs_dir.get('dir_mode', 755) 125 file_mode = fs_dir.get('file_mode', 555) 162 fs_symlink = self.fs_cfg.get('fs_symlin [all...] |
H A D | resources_collect.py | 36 if part_info.get('is_source') is True: 37 part_name = part_info.get('part_name') 44 origin_part_name = part_info.get('origin_part_name') 45 if part_info.get('variant_name') != 'phone': 46 _toolchain = part_info.get('toolchain_label') 70 origin_part_name = part_info.get('origin_part_name') 71 if part_info.get('variant_name') != 'phone': 72 _toolchain = part_info.get('toolchain_label') 96 origin_part_name = part_info.get('origin_part_name') 97 if part_info.get('variant_nam [all...] |
/build/templates/metadata/ |
H A D | write_meta_data.py | 40 deps_metadta_cache[dep] = json.load(dep_fp).get('root') 41 for n in deps_metadta_cache[dep].get('metadata_deps'): 49 return [deps_metadta_cache.get(d) for d in deps] 53 return [d for d in deps_data if d.get('type') == target_type] 97 if root.get(target_type): 98 root.get(target_type).extend(dep[target_type]) 99 root.get('resources').extend(dep['resources']) 123 if root.get(target_type): 124 root.get(target_type).extend(dep[target_type]) 125 root.get('hap_profil [all...] |