• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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("//build/ohos.gni")
15
16ability_runtime_path = "//foundation/ability/ability_runtime"
17ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
18ability_base_path = "//foundation/ability/ability_base"
19form_fwk_path = "//foundation/ability/form_fwk"
20ability_runtime_innerkits_path = "${ability_runtime_path}/interfaces/inner_api"
21ability_runtime_ndk_path = "${ability_runtime_path}/interfaces/kits/c"
22ability_runtime_native_path = "${ability_runtime_path}/frameworks/native"
23ability_runtime_services_path = "${ability_runtime_path}/services"
24ability_runtime_abilitymgr_path = "${ability_runtime_services_path}/abilitymgr"
25ability_runtime_test_path = "${ability_runtime_path}/test"
26ability_runtime_utils_path = "${ability_runtime_path}/utils"
27ace_engine_path = "//foundation/arkui/ace_engine"
28arkui_path = "//foundation/arkui"
29previewer_path = "//ide/tools/previewer"
30simulator_path = "//foundation/ability/ability_runtime/frameworks/simulator"
31
32bundlefwk_path = "//foundation/bundlemanager/bundle_framework"
33bundlefwk_inner_api_path = "${bundlefwk_path}/interfaces/inner_api"
34c_utils_base_path = "//commonlibrary/c_utils/base"
35ets_utils_path = "//commonlibrary/ets_utils"
36print_fwk_path = "//base/print/print_fwk"
37imf_path = "//base/inputmethod/imf"
38wallpaper_mgr_path = "//base/theme/wallpaper_mgr"
39os_account_path = "//base/account/os_account"
40distributed_notification_service_path =
41    "//base/notification/distributed_notification_service"
42power_manager_path = "//base/powermgr/power_manager"
43request_path = "//base/request/request"
44hiebpf_path = "//developtools/profiler/hiebpf"
45
46multimedia_path = "//foundation/multimedia/image_framework"
47multimodalinput_path = "//foundation/multimodalinput/input"
48windowmanager_path = "//foundation/window/window_manager"
49graphic_path = "//foundation/graphic/graphic_2d"
50global_path = "//base/global"
51distributedschedule_path = "//foundation/systemabilitymgr"
52eventhandler_path = "//base/notification/eventhandler"
53distributeddatamgr_path = "//foundation/distributeddatamgr"
54form_fwk_napi_path = "${form_fwk_path}/frameworks/js/napi"
55ability_base_kits_path = "${ability_base_path}/interfaces/kits/native"
56ability_base_native_path = "${ability_base_path}/frameworks/native"
57appspawn_path = "//base/startup/appspawn"
58init_path = "//base/startup/init"
59ipc_native_path = "//foundation/communication/ipc/ipc/native"
60third_party_path = "//third_party"
61hiviewdfx_path = "//base/hiviewdfx/hiview"
62hilog_path = "//base/hiviewdfx/hilog"
63webview_path = "//base/web/webview"
64resource_management_path = "//base/global/resource_management"
65common_event_service_path = "//base/notification/common_event_service"
66safwk_path = "//utils/system/safwk"
67user_file_service_innerkits_path =
68    "//foundation/filemanagement/user_file_service/interfaces/inner_api"
69resourceschedule_path = "//foundation/resourceschedule"
70device_usage_statistics_path =
71    "//foundation/resourceschedule/device_usage_statistics"
72device_manager_path = "//foundation/distributedhardware/device_manager"
73graphic_2d_path = "//foundation/graphic/graphic_2d"
74srms_inner_api_path =
75    "${ability_runtime_path}/service_router_framework/interfaces/inner_api"
76fuzz_test_output_path = "ability_runtime/ability_runtime"
77accessibility_path = "//foundation/barrierfree/accessibility"
78relational_store_base_path = "//foundation/distributeddatamgr/relational_store"
79relational_store_napi_path = "${relational_store_base_path}/frameworks/js/napi"
80common_tool_path = "//foundation/distributeddatamgr/kv_store/frameworks/common"
81relational_store_common_path = "${relational_store_base_path}/frameworks/common"
82ability_base_path = "//foundation/ability/ability_base"
83ability_base_innerapi_path = "${ability_base_path}/interfaces/inner_api"
84relational_store_innerapi_path =
85    "${relational_store_base_path}/interfaces/inner_api"
86bgtaskmgr_root_path = "//foundation/resourceschedule/background_task_mgr"
87bgtaskmgr_interfaces_path = "${bgtaskmgr_root_path}/interfaces"
88bgtaskmgr_frameworks_path = "${bgtaskmgr_root_path}/frameworks"
89os_account_path = "//base/account/os_account"
90access_token_path = "//base/security/access_token"
91
92declare_args() {
93  background_task_mgr_continuous_task_enable = true
94  resource_schedule_service_enable = true
95  memmgr_override_enable = true
96  ability_runtime_feature_sandboxmanager = false
97  ability_runtime_power = true
98  ability_runtime_relational = true
99  ability_runtime_ces = true
100  ability_runtime_resource = true
101  ability_runtime_action_extension = true
102  ability_runtime_photo_editor_extension = true
103  ability_runtime_share_extension = true
104  ability_runtime_ui_service_extension = true
105  ability_runtime_appspawn = true
106  ability_runtime_auto_fill = true
107  ability_runtime_child_process = true
108  ability_fault_and_exit_test = false
109  ability_command_for_test = false
110  ability_runtime_feature_coverage = false
111  ability_runtime_auto_fill_ability =
112      "com.ohos.passwordbox/entry/AutoFillAbility"
113  ability_runtime_smart_auto_fill_ability =
114      "com.ohos.textautofill/entry/TextAutoFillAbility"
115  ability_runtime_upms = true
116  cj_frontend = true
117  ability_runtime_app_no_response_dialog = false
118  ability_runtime_app_no_response_dialog_wearable = false
119  ability_runtime_app_no_response_bundlename = "com.ohos.taskmanager"
120  include_app_domain_verify = true
121  ability_runtime_start_window_options_with_pixelmap = false
122  ability_runtime_check_internet_permission = false
123  ability_runtime_media_library_enable = true
124  ability_runtime_no_screen = false
125  ability_runtime_hitrace_enable = true
126  ability_runtime_hiperf_enable = true
127  ability_runtime_screenlock_enable = true
128
129  if (!defined(global_parts_info) ||
130      defined(global_parts_info.account_os_account)) {
131    os_account_part_enabled = true
132  } else {
133    os_account_part_enabled = false
134  }
135
136  if (!defined(global_parts_info) ||
137      defined(global_parts_info.hiviewdfx_hiappevent)) {
138    hiappevent_part_enabled = true
139  } else {
140    hiappevent_part_enabled = false
141  }
142
143  if (defined(global_parts_info) &&
144      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
145    background_task_mgr_continuous_task_enable = false
146  }
147
148  if (defined(global_parts_info) &&
149      !defined(global_parts_info.resourceschedule_resource_schedule_service)) {
150    resource_schedule_service_enable = false
151  }
152
153  if (defined(global_parts_info) &&
154      !defined(global_parts_info.resourceschedule_memmgr_override)) {
155    memmgr_override_enable = false
156  }
157  if (defined(global_parts_info) &&
158      !defined(global_parts_info.powermgr_power_manager)) {
159    ability_runtime_power = false
160  }
161
162  if (defined(global_parts_info) &&
163      !defined(global_parts_info.distributeddatamgr_relational_store)) {
164    ability_runtime_relational = false
165  }
166
167  if (defined(global_parts_info) &&
168      !defined(global_parts_info.notification_common_event_service)) {
169    ability_runtime_ces = false
170  }
171
172  if (defined(global_parts_info) &&
173      !defined(global_parts_info.global_resource_management)) {
174    ability_runtime_resource = false
175  }
176
177  if (defined(global_parts_info) &&
178      !defined(global_parts_info.startup_appspawn)) {
179    ability_runtime_appspawn = false
180  }
181
182  if (!defined(global_parts_info) ||
183      defined(global_parts_info.security_dlp_permission_service)) {
184    os_dlp_part_enabled = true
185  } else {
186    os_dlp_part_enabled = false
187  }
188
189  if (!defined(global_parts_info) ||
190      defined(global_parts_info.barrierfree_accessibility)) {
191    accessibility_enable = true
192  } else {
193    accessibility_enable = false
194  }
195
196  if (!defined(global_parts_info) ||
197      defined(global_parts_info.hiviewdfx_hichecker)) {
198    hichecker_enabled = true
199  } else {
200    hichecker_enabled = false
201  }
202
203  if (defined(global_parts_info) &&
204      !defined(global_parts_info.bundlemanager_app_domain_verify)) {
205    include_app_domain_verify = false
206  }
207
208  if (!defined(global_parts_info) ||
209      defined(global_parts_info.ability_form_fwk)) {
210    form_fwk_enable = true
211  } else {
212    form_fwk_enable = false
213  }
214
215  if (defined(global_parts_info) &&
216      defined(global_parts_info.accesscontrol_sandbox_manager)) {
217    ability_runtime_feature_sandboxmanager = true
218  }
219
220  if (defined(global_parts_info) &&
221      defined(global_parts_info.hiviewdfx_hicollie)) {
222    app_mgr_service_hicollie_enable = true
223  } else {
224    app_mgr_service_hicollie_enable = false
225  }
226
227  if (defined(global_parts_info) &&
228      !defined(global_parts_info.multimedia_media_library)) {
229    ability_runtime_media_library_enable = false
230  }
231
232  if (defined(global_parts_info) &&
233      !defined(global_parts_info.hiviewdfx_hitrace)) {
234    ability_runtime_hitrace_enable = false
235  }
236
237  if (defined(global_parts_info) &&
238      !defined(global_parts_info.developtools_hiperf)) {
239    ability_runtime_hiperf_enable = false
240  }
241
242  if (defined(global_parts_info) &&
243      !defined(global_parts_info.theme_screenlock_mgr)) {
244    ability_runtime_screenlock_enable = false
245  }
246}
247