• 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
14ability_runtime_path = "//foundation/ability/ability_runtime"
15ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
16ability_base_path = "//foundation/ability/ability_base"
17form_fwk_path = "//foundation/ability/form_fwk"
18ability_runtime_innerkits_path = "${ability_runtime_path}/interfaces/inner_api"
19ability_runtime_native_path = "${ability_runtime_path}/frameworks/native"
20ability_runtime_services_path = "${ability_runtime_path}/services"
21ability_runtime_abilitymgr_path = "${ability_runtime_services_path}/abilitymgr"
22ability_runtime_test_path = "${ability_runtime_path}/test"
23ace_engine_path = "//foundation/arkui/ace_engine"
24arkui_path = "//foundation/arkui"
25previewer_path = "//ide/tools/previewer"
26simulator_path = "//foundation/ability/ability_runtime/frameworks/simulator"
27
28bundlefwk_path = "//foundation/bundlemanager/bundle_framework"
29bundlefwk_inner_api_path = "${bundlefwk_path}/interfaces/inner_api"
30c_utils_base_path = "//commonlibrary/c_utils/base"
31print_fwk_path = "//base/print/print_fwk"
32imf_path = "//base/inputmethod/imf"
33wallpaper_mgr_path = "//base/theme/wallpaper_mgr"
34os_account_path = "//base/account/os_account"
35distributed_notification_service_path =
36    "//base/notification/distributed_notification_service"
37power_manager_path = "//base/powermgr/power_manager"
38request_path = "//base/request/request"
39hiebpf_path = "//developtools/profiler/hiebpf"
40
41multimedia_path = "//foundation/multimedia/image_framework"
42multimodalinput_path = "//foundation/multimodalinput/input"
43windowmanager_path = "//foundation/window/window_manager"
44graphic_path = "//foundation/graphic/graphic_2d"
45global_path = "//base/global"
46distributedschedule_path = "//foundation/systemabilitymgr"
47eventhandler_path = "//base/notification/eventhandler"
48distributeddatamgr_path = "//foundation/distributeddatamgr"
49form_fwk_napi_path = "${form_fwk_path}/frameworks/js/napi"
50ability_base_kits_path = "${ability_base_path}/interfaces/kits/native"
51ability_base_native_path = "${ability_base_path}/frameworks/native"
52appspawn_path = "//base/startup/appspawn"
53init_path = "//base/startup/init"
54ipc_native_path = "//foundation/communication/ipc/ipc/native"
55third_party_path = "//third_party"
56hiviewdfx_path = "//base/hiviewdfx/hiview"
57hilog_path = "//base/hiviewdfx/hilog"
58webview_path = "//base/web/webview"
59resource_management_path = "//base/global/resource_management"
60common_event_service_path = "//base/notification/common_event_service"
61safwk_path = "//utils/system/safwk"
62user_file_service_innerkits_path =
63    "//foundation/filemanagement/user_file_service/interfaces/inner_api"
64resourceschedule_path = "//foundation/resourceschedule"
65device_usage_statistics_path =
66    "//foundation/resourceschedule/device_usage_statistics"
67device_manager_path = "//foundation/distributedhardware/device_manager"
68graphic_2d_path = "//foundation/graphic/graphic_2d"
69srms_inner_api_path =
70    "${ability_runtime_path}/service_router_framework/interfaces/inner_api"
71
72declare_args() {
73  background_task_mgr_continuous_task_enable = true
74  resource_schedule_service_enable = true
75  ability_runtime_graphics = true
76  ability_runtime_power = true
77  ability_runtime_relational = true
78  ability_runtime_ces = true
79  ability_runtime_resource = true
80  ability_runtime_appspawn = true
81  efficiency_manager = true
82  ability_fault_and_exit_test = false
83  ability_command_for_test = false
84  ability_runtime_feature_coverage = false
85
86  if (!defined(global_parts_info) ||
87      defined(global_parts_info.account_os_account)) {
88    os_account_part_enabled = true
89  } else {
90    os_account_part_enabled = false
91  }
92
93  if (defined(global_parts_info) &&
94      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
95    background_task_mgr_continuous_task_enable = false
96  }
97
98  if (defined(global_parts_info) &&
99      !defined(global_parts_info.resourceschedule_resource_schedule_service)) {
100    resource_schedule_service_enable = false
101  }
102
103  if (defined(global_parts_info) &&
104      !defined(global_parts_info.resourceschedule_efficiency_manager)) {
105    efficiency_manager = false
106  }
107
108  if (defined(global_parts_info) &&
109      !defined(global_parts_info.distributeddatamgr_relational_store)) {
110    ability_runtime_relational = false
111  }
112
113  if (defined(global_parts_info) &&
114      !defined(global_parts_info.notification_common_event_service)) {
115    ability_runtime_ces = false
116  }
117
118  if (defined(global_parts_info) &&
119      !defined(global_parts_info.global_resource_management)) {
120    ability_runtime_resource = false
121  }
122
123  if (defined(global_parts_info) &&
124      !defined(global_parts_info.startup_appspawn)) {
125    ability_runtime_appspawn = false
126  }
127
128  if (!defined(global_parts_info) ||
129      defined(global_parts_info.security_dlp_permission_service)) {
130    os_dlp_part_enabled = true
131  } else {
132    os_dlp_part_enabled = false
133  }
134
135  if (!defined(global_parts_info) ||
136      defined(global_parts_info.barrierfree_accessibility)) {
137    accessibility_enable = true
138  } else {
139    accessibility_enable = false
140  }
141
142  if (!defined(global_parts_info) ||
143      defined(global_parts_info.bundlemanager_ecological_rule_mgr)) {
144    ecologic_rule_enabled = true
145  } else {
146    ecologic_rule_enabled = false
147  }
148}
149