1# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("../../appexecfwk.gni") 15 16install_daemon_sources = [ 17 "${services_path}/bundlemgr/src/aot/aot_args.cpp", 18 "${services_path}/bundlemgr/src/aot/aot_executor.cpp", 19 "${services_path}/bundlemgr/src/bundle_util.cpp", 20 "${services_path}/bundlemgr/src/code_sign_helper.cpp", 21 "${services_path}/bundlemgr/src/installd/installd_host_impl.cpp", 22 "${services_path}/bundlemgr/src/installd/installd_load_callback.cpp", 23 "${services_path}/bundlemgr/src/installd/installd_operator.cpp", 24 "${services_path}/bundlemgr/src/installd/installd_permission_mgr.cpp", 25 "${services_path}/bundlemgr/src/installd/installd_service.cpp", 26 "${services_path}/bundlemgr/src/installd_client.cpp", 27 "${services_path}/bundlemgr/src/installd_death_recipient.cpp", 28 "${services_path}/bundlemgr/src/ipc/check_encryption_param.cpp", 29 "${services_path}/bundlemgr/src/ipc/code_signature_param.cpp", 30 "${services_path}/bundlemgr/src/ipc/create_dir_param.cpp", 31 "${services_path}/bundlemgr/src/ipc/extract_param.cpp", 32 "${services_path}/bundlemgr/src/ipc/file_stat.cpp", 33 "${services_path}/bundlemgr/src/ipc/installd_host.cpp", 34 "${services_path}/bundlemgr/src/ipc/installd_proxy.cpp", 35] 36 37bundle_install_sources = [ 38 "${services_path}/bundlemgr/src/ability_manager_helper.cpp", 39 "${services_path}/bundlemgr/src/aot/aot_args.cpp", 40 "${services_path}/bundlemgr/src/aot/aot_handler.cpp", 41 "${services_path}/bundlemgr/src/app_service_fwk/app_service_fwk_installer.cpp", 42 "${services_path}/bundlemgr/src/base_bundle_installer.cpp", 43 "${services_path}/bundlemgr/src/bundle_exception_handler.cpp", 44 "${services_path}/bundlemgr/src/bundle_install_checker.cpp", 45 "${services_path}/bundlemgr/src/bundle_installer.cpp", 46 "${services_path}/bundlemgr/src/bundle_installer_host.cpp", 47 "${services_path}/bundlemgr/src/bundle_installer_manager.cpp", 48 "${services_path}/bundlemgr/src/bundle_permission_mgr.cpp", 49 "${services_path}/bundlemgr/src/bundle_stream_installer_host_impl.cpp", 50 "${services_path}/bundlemgr/src/bundle_util.cpp", 51 "${services_path}/bundlemgr/src/bundle_verify_mgr.cpp", 52 "${services_path}/bundlemgr/src/driver/driver_installer.cpp", 53 "${services_path}/bundlemgr/src/event_report.cpp", 54 "${services_path}/bundlemgr/src/inner_bundle_clone_info.cpp", 55 "${services_path}/bundlemgr/src/inner_bundle_info.cpp", 56 "${services_path}/bundlemgr/src/inner_bundle_user_info.cpp", 57 "${services_path}/bundlemgr/src/installd/installd_load_callback.cpp", 58 "${services_path}/bundlemgr/src/installd_client.cpp", 59 "${services_path}/bundlemgr/src/installd_death_recipient.cpp", 60 "${services_path}/bundlemgr/src/ipc/check_encryption_param.cpp", 61 "${services_path}/bundlemgr/src/ipc/code_signature_param.cpp", 62 "${services_path}/bundlemgr/src/ipc/create_dir_param.cpp", 63 "${services_path}/bundlemgr/src/ipc/extract_param.cpp", 64 "${services_path}/bundlemgr/src/ipc/file_stat.cpp", 65 "${services_path}/bundlemgr/src/ipc/installd_host.cpp", 66 "${services_path}/bundlemgr/src/ipc/installd_proxy.cpp", 67 "${services_path}/bundlemgr/src/pre_install_bundle_info.cpp", 68 "${services_path}/bundlemgr/src/pre_install_exception_mgr.cpp", 69 "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_app_helper.cpp", 70 "${services_path}/bundlemgr/src/shared/inner_shared_bundle_installer.cpp", 71 "${services_path}/bundlemgr/src/shared/shared_bundle_installer.cpp", 72 "${services_path}/bundlemgr/src/status_receiver_proxy.cpp", 73 "${services_path}/bundlemgr/src/system_bundle_installer.cpp", 74 "${services_path}/bundlemgr/src/utd/utd_handler.cpp", 75 "${services_path}/bundlemgr/src/xcollie_helper.cpp", 76] 77 78aging = [ 79 "${services_path}/bundlemgr/src/aging/aging_handler_chain.cpp", 80 "${services_path}/bundlemgr/src/aging/aging_request.cpp", 81 "${services_path}/bundlemgr/src/aging/aging_util.cpp", 82 "${services_path}/bundlemgr/src/aging/bundle_aging_mgr.cpp", 83 "${services_path}/bundlemgr/src/aging/recently_unused_bundle_aging_handler.cpp", 84] 85 86free_install = [ 87 "${services_path}/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp", 88 "${services_path}/bundlemgr/src/free_install/bms_ecological_rule_mgr_service_client.cpp", 89 "${services_path}/bundlemgr/src/free_install/bms_ecological_rule_mgr_service_param.cpp", 90 "${services_path}/bundlemgr/src/free_install/service_center_connection.cpp", 91 "${services_path}/bundlemgr/src/free_install/service_center_death_recipient.cpp", 92 "${services_path}/bundlemgr/src/free_install/service_center_status_callback.cpp", 93 "${services_path}/bundlemgr/src/free_install/service_center_status_callback_stub.cpp", 94] 95 96distributed_manager = [ 97 "${services_path}/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp", 98 "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_proxy.cpp", 99 "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_stub.cpp", 100 "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback.cpp", 101] 102 103default_app = [ 104 "${services_path}/bundlemgr/src/default_app/default_app_data.cpp", 105 "${services_path}/bundlemgr/src/default_app/default_app_host_impl.cpp", 106 "${services_path}/bundlemgr/src/default_app/default_app_mgr.cpp", 107] 108 109sandbox_app = [ 110 "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_data_mgr.cpp", 111 "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp", 112 "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_manager_rdb.cpp", 113] 114 115quick_fix = [ 116 "${services_path}/bundlemgr/src/quick_fix/inner_app_quick_fix.cpp", 117 "${services_path}/bundlemgr/src/quick_fix/quick_fix_boot_scanner.cpp", 118 "${services_path}/bundlemgr/src/quick_fix/quick_fix_checker.cpp", 119 "${services_path}/bundlemgr/src/quick_fix/quick_fix_data_mgr.cpp", 120 "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_host_impl.cpp", 121 "${services_path}/bundlemgr/src/quick_fix/quick_fixer.cpp", 122 "${services_path}/bundlemgr/src/quick_fix/quick_fix_mgr.cpp", 123 "${services_path}/bundlemgr/src/quick_fix/quick_fix_deployer.cpp", 124 "${services_path}/bundlemgr/src/quick_fix/quick_fix_switcher.cpp", 125 "${services_path}/bundlemgr/src/quick_fix/quick_fix_deleter.cpp", 126 "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_delete_state.cpp", 127 "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_deploy_state.cpp", 128 "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_switch_state.cpp", 129] 130 131app_control = [ 132 "${services_path}/bundlemgr/src/app_control/app_control_manager_host_impl.cpp", 133 "${services_path}/bundlemgr/src/app_control/app_control_manager_rdb.cpp", 134 "${services_path}/bundlemgr/src/app_control/app_control_manager.cpp", 135 "${services_path}/bundlemgr/src/app_control/app_jump_interceptor_event_subscriber.cpp", 136 "${services_path}/bundlemgr/src/app_control/app_jump_interceptor_manager_rdb.cpp", 137] 138 139overlay_installation = [ 140 "${services_path}/bundlemgr/src/overlay/bundle_overlay_data_manager.cpp", 141 "${services_path}/bundlemgr/src/overlay/bundle_overlay_install_checker.cpp", 142 "${services_path}/bundlemgr/src/overlay/bundle_overlay_manager_host_impl.cpp", 143 "${services_path}/bundlemgr/src/overlay/bundle_overlay_manager.cpp", 144] 145 146default_app += 147 [ "${services_path}/bundlemgr/src/default_app/default_app_rdb.cpp" ] 148quick_fix += 149 [ "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_rdb.cpp" ] 150 151bundle_install_deps = [ 152 "${extension_path}:bundlemgr_extension", 153 "${services_path}/bundlemgr:bundle_parser", 154 "${services_path}/bundlemgr:parser_common", 155] 156 157bundle_install_external_deps = [ 158 "ffrt:libffrt", 159 "os_account:libaccountkits", 160 "storage_service:storage_manager_acl", 161 "zlib:shared_libz", 162] 163 164if (bundle_framework_power_mgr_enable) { 165 aot_external_deps = [ 166 "battery_manager:batterysrv_client", 167 "display_manager:displaymgr", 168 "power_manager:powermgr_client", 169 ] 170} 171 172bundle_mgr_source = [ 173 "${services_path}/bundlemgr/src/account_helper.cpp", 174 "${services_path}/bundlemgr/src/aot/charge_idle_listener.cpp", 175 "${services_path}/bundlemgr/src/app_provision_info/app_provision_info_manager.cpp", 176 "${services_path}/bundlemgr/src/app_provision_info/app_provision_info_rdb.cpp", 177 "${services_path}/bundlemgr/src/bms_extension/bms_extension_client.cpp", 178 "${services_path}/bundlemgr/src/bms_key_event_mgr.cpp", 179 "${services_path}/bundlemgr/src/bms_param.cpp", 180 "${services_path}/bundlemgr/src/bundle_common_event_mgr.cpp", 181 "${services_path}/bundlemgr/src/bundle_data_mgr.cpp", 182 "${services_path}/bundlemgr/src/bundle_event_callback_death_recipient.cpp", 183 "${services_path}/bundlemgr/src/bundle_mgr_host_impl.cpp", 184 "${services_path}/bundlemgr/src/bundle_mgr_service.cpp", 185 "${services_path}/bundlemgr/src/bundle_mgr_service_event_handler.cpp", 186 "${services_path}/bundlemgr/src/bundle_resource_helper.cpp", 187 "${services_path}/bundlemgr/src/bundle_scanner.cpp", 188 "${services_path}/bundlemgr/src/bundle_state_storage.cpp", 189 "${services_path}/bundlemgr/src/bundle_status_callback_death_recipient.cpp", 190 "${services_path}/bundlemgr/src/bundle_user_mgr_host_impl.cpp", 191 "${services_path}/bundlemgr/src/bundle_multiuser_installer.cpp", 192 "${services_path}/bundlemgr/src/clone/bundle_clone_installer.cpp", 193 "${services_path}/bundlemgr/src/common/serial_queue.cpp", 194 "${services_path}/bundlemgr/src/el5_filekey_callback.cpp", 195 "${services_path}/bundlemgr/src/extend_resource/extend_resource_manager_host_impl.cpp", 196 "${services_path}/bundlemgr/src/hidump_helper.cpp", 197 "${services_path}/bundlemgr/src/navigation/router_item_compare.cpp", 198 "${services_path}/bundlemgr/src/navigation/router_map_helper.cpp", 199 "${services_path}/bundlemgr/src/navigation/sem_ver.cpp", 200 "${services_path}/bundlemgr/src/shortcut_data_storage_rdb.cpp", 201 "${services_path}/bundlemgr/src/system_ability_helper.cpp", 202 "${services_path}/bundlemgr/src/uninstall_data_mgr/uninstall_bundle_info.cpp", 203 "${services_path}/bundlemgr/src/uninstall_data_mgr/uninstall_data_mgr_storage_rdb.cpp", 204 "${services_path}/bundlemgr/src/user_unlocked_event_subscriber.cpp", 205 "${services_path}/bundlemgr/src/verify/verify_manager_host_impl.cpp", 206 "${services_path}/bundlemgr/src/verify/verify_util.cpp", 207] 208 209bundle_resource = [ 210 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_callback.cpp", 211 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_configuration.cpp", 212 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_drawable.cpp", 213 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_event_subscriber.cpp", 214 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_host_impl.cpp", 215 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_image_info.cpp", 216 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_manager.cpp", 217 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_observer.cpp", 218 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_param.cpp", 219 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_parser.cpp", 220 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_process.cpp", 221 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_rdb.cpp", 222 "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_register.cpp", 223 "${services_path}/bundlemgr/src/bundle_resource/resource_info.cpp", 224] 225