• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 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_info.cpp",
55  "${services_path}/bundlemgr/src/inner_bundle_user_info.cpp",
56  "${services_path}/bundlemgr/src/inner_common_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/xcollie_helper.cpp",
75]
76
77aging = [
78  "${services_path}/bundlemgr/src/aging/aging_handler_chain.cpp",
79  "${services_path}/bundlemgr/src/aging/aging_request.cpp",
80  "${services_path}/bundlemgr/src/aging/aging_util.cpp",
81  "${services_path}/bundlemgr/src/aging/bundle_aging_mgr.cpp",
82  "${services_path}/bundlemgr/src/aging/recently_unused_bundle_aging_handler.cpp",
83]
84
85free_install = [
86  "${services_path}/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp",
87  "${services_path}/bundlemgr/src/free_install/bms_ecological_rule_mgr_service_client.cpp",
88  "${services_path}/bundlemgr/src/free_install/bms_ecological_rule_mgr_service_param.cpp",
89  "${services_path}/bundlemgr/src/free_install/service_center_connection.cpp",
90  "${services_path}/bundlemgr/src/free_install/service_center_death_recipient.cpp",
91  "${services_path}/bundlemgr/src/free_install/service_center_status_callback.cpp",
92  "${services_path}/bundlemgr/src/free_install/service_center_status_callback_stub.cpp",
93]
94
95distributed_manager = [
96  "${services_path}/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp",
97  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_proxy.cpp",
98  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_stub.cpp",
99  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback.cpp",
100]
101
102default_app = [
103  "${services_path}/bundlemgr/src/default_app/default_app_data.cpp",
104  "${services_path}/bundlemgr/src/default_app/default_app_host_impl.cpp",
105  "${services_path}/bundlemgr/src/default_app/default_app_mgr.cpp",
106]
107
108sandbox_app = [
109  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_data_mgr.cpp",
110  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp",
111  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_manager_rdb.cpp",
112]
113
114quick_fix = [
115  "${services_path}/bundlemgr/src/quick_fix/inner_app_quick_fix.cpp",
116  "${services_path}/bundlemgr/src/quick_fix/quick_fix_boot_scanner.cpp",
117  "${services_path}/bundlemgr/src/quick_fix/quick_fix_checker.cpp",
118  "${services_path}/bundlemgr/src/quick_fix/quick_fix_data_mgr.cpp",
119  "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_host_impl.cpp",
120  "${services_path}/bundlemgr/src/quick_fix/quick_fixer.cpp",
121  "${services_path}/bundlemgr/src/quick_fix/quick_fix_mgr.cpp",
122  "${services_path}/bundlemgr/src/quick_fix/quick_fix_deployer.cpp",
123  "${services_path}/bundlemgr/src/quick_fix/quick_fix_switcher.cpp",
124  "${services_path}/bundlemgr/src/quick_fix/quick_fix_deleter.cpp",
125  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_delete_state.cpp",
126  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_deploy_state.cpp",
127  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_switch_state.cpp",
128]
129
130app_control = [
131  "${services_path}/bundlemgr/src/app_control/app_control_manager_host_impl.cpp",
132  "${services_path}/bundlemgr/src/app_control/app_control_manager_rdb.cpp",
133  "${services_path}/bundlemgr/src/app_control/app_control_manager.cpp",
134  "${services_path}/bundlemgr/src/app_control/app_jump_interceptor_event_subscriber.cpp",
135  "${services_path}/bundlemgr/src/app_control/app_jump_interceptor_manager_rdb.cpp",
136]
137
138overlay_installation = [
139  "${services_path}/bundlemgr/src/overlay/bundle_overlay_data_manager.cpp",
140  "${services_path}/bundlemgr/src/overlay/bundle_overlay_install_checker.cpp",
141  "${services_path}/bundlemgr/src/overlay/bundle_overlay_manager_host_impl.cpp",
142  "${services_path}/bundlemgr/src/overlay/bundle_overlay_manager.cpp",
143]
144
145default_app +=
146    [ "${services_path}/bundlemgr/src/default_app/default_app_rdb.cpp" ]
147quick_fix +=
148    [ "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_rdb.cpp" ]
149
150bundle_install_deps = [
151  "${services_path}/bundlemgr:bundle_parser",
152  "${services_path}/bundlemgr:parser_common",
153]
154
155bundle_install_external_deps = [ "ffrt:libffrt" ]
156
157if (bundle_framework_power_mgr_enable) {
158  aot_external_deps = [
159    "battery_manager:batterysrv_client",
160    "display_manager:displaymgr",
161    "power_manager:powermgr_client",
162  ]
163}
164
165bundle_mgr_source = [
166  "${services_path}/bundlemgr/src/account_helper.cpp",
167  "${services_path}/bundlemgr/src/aot/charge_idle_listener.cpp",
168  "${services_path}/bundlemgr/src/app_provision_info/app_provision_info_manager.cpp",
169  "${services_path}/bundlemgr/src/app_provision_info/app_provision_info_rdb.cpp",
170  "${services_path}/bundlemgr/src/bms_extension/bms_extension_client.cpp",
171  "${services_path}/bundlemgr/src/bms_param.cpp",
172  "${services_path}/bundlemgr/src/bundle_common_event_mgr.cpp",
173  "${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
174  "${services_path}/bundlemgr/src/bundle_event_callback_death_recipient.cpp",
175  "${services_path}/bundlemgr/src/bundle_mgr_host_impl.cpp",
176  "${services_path}/bundlemgr/src/bundle_mgr_service.cpp",
177  "${services_path}/bundlemgr/src/bundle_mgr_service_event_handler.cpp",
178  "${services_path}/bundlemgr/src/bundle_resource_helper.cpp",
179  "${services_path}/bundlemgr/src/bundle_scanner.cpp",
180  "${services_path}/bundlemgr/src/bundle_state_storage.cpp",
181  "${services_path}/bundlemgr/src/bundle_status_callback_death_recipient.cpp",
182  "${services_path}/bundlemgr/src/bundle_user_mgr_host_impl.cpp",
183  "${services_path}/bundlemgr/src/common/serial_queue.cpp",
184  "${services_path}/bundlemgr/src/hidump_helper.cpp",
185  "${services_path}/bundlemgr/src/mime_type_mgr.cpp",
186  "${services_path}/bundlemgr/src/system_ability_helper.cpp",
187  "${services_path}/bundlemgr/src/user_unlocked_event_subscriber.cpp",
188  "${services_path}/bundlemgr/src/verify/verify_manager_host_impl.cpp",
189  "${services_path}/bundlemgr/src/verify/verify_util.cpp",
190]
191
192bundle_resource = [
193  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_callback.cpp",
194  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_configuration.cpp",
195  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_drawable.cpp",
196  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_event_subscriber.cpp",
197  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_host_impl.cpp",
198  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_image_info.cpp",
199  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_manager.cpp",
200  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_observer.cpp",
201  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_param.cpp",
202  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_parser.cpp",
203  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_process.cpp",
204  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_rdb.cpp",
205  "${services_path}/bundlemgr/src/bundle_resource/bundle_resource_register.cpp",
206  "${services_path}/bundlemgr/src/bundle_resource/resource_info.cpp",
207]
208