• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/installd/installd_host_impl.cpp",
18  "${services_path}/bundlemgr/src/installd/installd_operator.cpp",
19  "${services_path}/bundlemgr/src/installd/installd_permission_mgr.cpp",
20  "${services_path}/bundlemgr/src/installd/installd_service.cpp",
21  "${services_path}/bundlemgr/src/installd_client.cpp",
22  "${services_path}/bundlemgr/src/ipc/extract_param.cpp",
23  "${services_path}/bundlemgr/src/ipc/file_stat.cpp",
24  "${services_path}/bundlemgr/src/ipc/installd_host.cpp",
25  "${services_path}/bundlemgr/src/ipc/installd_proxy.cpp",
26]
27
28bundle_install_sources = [
29  "${services_path}/bundlemgr/src/ability_manager_helper.cpp",
30  "${services_path}/bundlemgr/src/base_bundle_installer.cpp",
31  "${services_path}/bundlemgr/src/bundle_exception_handler.cpp",
32  "${services_path}/bundlemgr/src/bundle_install_checker.cpp",
33  "${services_path}/bundlemgr/src/bundle_installer.cpp",
34  "${services_path}/bundlemgr/src/bundle_installer_host.cpp",
35  "${services_path}/bundlemgr/src/bundle_installer_manager.cpp",
36  "${services_path}/bundlemgr/src/bundle_permission_mgr.cpp",
37  "${services_path}/bundlemgr/src/bundle_stream_installer_host_impl.cpp",
38  "${services_path}/bundlemgr/src/bundle_util.cpp",
39  "${services_path}/bundlemgr/src/bundle_verify_mgr.cpp",
40  "${services_path}/bundlemgr/src/event_report.cpp",
41  "${services_path}/bundlemgr/src/inner_bundle_info.cpp",
42  "${services_path}/bundlemgr/src/inner_bundle_user_info.cpp",
43  "${services_path}/bundlemgr/src/installd_client.cpp",
44  "${services_path}/bundlemgr/src/installd_death_recipient.cpp",
45  "${services_path}/bundlemgr/src/ipc/extract_param.cpp",
46  "${services_path}/bundlemgr/src/ipc/file_stat.cpp",
47  "${services_path}/bundlemgr/src/ipc/installd_host.cpp",
48  "${services_path}/bundlemgr/src/ipc/installd_proxy.cpp",
49  "${services_path}/bundlemgr/src/pre_install_bundle_info.cpp",
50  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_app_helper.cpp",
51  "${services_path}/bundlemgr/src/status_receiver_proxy.cpp",
52  "${services_path}/bundlemgr/src/system_bundle_installer.cpp",
53  "${services_path}/bundlemgr/src/xcollie_helper.cpp",
54]
55
56aging = [
57  "${services_path}/bundlemgr/src/aging/aging_handler_chain.cpp",
58  "${services_path}/bundlemgr/src/aging/aging_request.cpp",
59  "${services_path}/bundlemgr/src/aging/aging_util.cpp",
60  "${services_path}/bundlemgr/src/aging/bundle_aging_mgr.cpp",
61  "${services_path}/bundlemgr/src/aging/bundle_data_size_aging_handler.cpp",
62  "${services_path}/bundlemgr/src/aging/over_10days_unused_bundle_aging_handler.cpp",
63  "${services_path}/bundlemgr/src/aging/over_20days_unused_bundle_aging_handler.cpp",
64  "${services_path}/bundlemgr/src/aging/over_30days_unused_bundle_aging_handler.cpp",
65  "${services_path}/bundlemgr/src/aging/recently_unused_bundle_aging_handler.cpp",
66]
67
68free_install = [
69  "${services_path}/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp",
70  "${services_path}/bundlemgr/src/free_install/service_center_connection.cpp",
71  "${services_path}/bundlemgr/src/free_install/service_center_death_recipient.cpp",
72  "${services_path}/bundlemgr/src/free_install/service_center_status_callback.cpp",
73  "${services_path}/bundlemgr/src/free_install/service_center_status_callback_stub.cpp",
74]
75
76distributed_manager = [
77  "${services_path}/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp",
78  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_proxy.cpp",
79  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback_stub.cpp",
80  "${services_path}/bundlemgr/src/distributed_manager/bundle_manager_callback.cpp",
81]
82
83default_app = [
84  "${services_path}/bundlemgr/src/default_app/default_app_data.cpp",
85  "${services_path}/bundlemgr/src/default_app/default_app_host_impl.cpp",
86  "${services_path}/bundlemgr/src/default_app/default_app_mgr.cpp",
87]
88
89sandbox_app = [
90  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_data_mgr.cpp",
91  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_exception_handler.cpp",
92  "${services_path}/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp",
93]
94
95quick_fix = [
96  "${services_path}/bundlemgr/src/quick_fix/inner_app_quick_fix.cpp",
97  "${services_path}/bundlemgr/src/quick_fix/quick_fix_boot_scanner.cpp",
98  "${services_path}/bundlemgr/src/quick_fix/quick_fix_checker.cpp",
99  "${services_path}/bundlemgr/src/quick_fix/quick_fix_data_mgr.cpp",
100  "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_host_impl.cpp",
101  "${services_path}/bundlemgr/src/quick_fix/quick_fixer.cpp",
102  "${services_path}/bundlemgr/src/quick_fix/quick_fix_mgr.cpp",
103  "${services_path}/bundlemgr/src/quick_fix/quick_fix_deployer.cpp",
104  "${services_path}/bundlemgr/src/quick_fix/quick_fix_switcher.cpp",
105  "${services_path}/bundlemgr/src/quick_fix/quick_fix_deleter.cpp",
106  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_delete_state.cpp",
107  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_deploy_state.cpp",
108  "${services_path}/bundlemgr/include/quick_fix/state/src/quick_fix_switch_state.cpp",
109]
110
111app_control = [
112  "${services_path}/bundlemgr/src/app_control/app_control_manager_host_impl.cpp",
113  "${services_path}/bundlemgr/src/app_control/app_control_manager_rdb.cpp",
114  "${services_path}/bundlemgr/src/app_control/app_control_manager.cpp",
115]
116
117if (bms_rdb_enable) {
118  default_app +=
119      [ "${services_path}/bundlemgr/src/default_app/default_app_rdb.cpp" ]
120  quick_fix +=
121      [ "${services_path}/bundlemgr/src/quick_fix/quick_fix_manager_rdb.cpp" ]
122} else {
123  default_app +=
124      [ "${services_path}/bundlemgr/src/default_app/default_app_db.cpp" ]
125}
126
127bundle_install_deps = [
128  "${services_path}/bundlemgr:bundle_parser",
129  "${services_path}/bundlemgr:parser_common",
130]
131