1eace7efcSopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
2eace7efcSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3eace7efcSopenharmony_ci# you may not use this file except in compliance with the License.
4eace7efcSopenharmony_ci# You may obtain a copy of the License at
5eace7efcSopenharmony_ci#
6eace7efcSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7eace7efcSopenharmony_ci#
8eace7efcSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9eace7efcSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10eace7efcSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11eace7efcSopenharmony_ci# See the License for the specific language governing permissions and
12eace7efcSopenharmony_ci# limitations under the License.
13eace7efcSopenharmony_ci
14eace7efcSopenharmony_ciimport("//build/ohos.gni")
15eace7efcSopenharmony_ci
16eace7efcSopenharmony_ciability_runtime_path = "//foundation/ability/ability_runtime"
17eace7efcSopenharmony_ciability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi"
18eace7efcSopenharmony_ciability_base_path = "//foundation/ability/ability_base"
19eace7efcSopenharmony_ciform_fwk_path = "//foundation/ability/form_fwk"
20eace7efcSopenharmony_ciability_runtime_innerkits_path = "${ability_runtime_path}/interfaces/inner_api"
21eace7efcSopenharmony_ciability_runtime_ndk_path = "${ability_runtime_path}/interfaces/kits/c"
22eace7efcSopenharmony_ciability_runtime_native_path = "${ability_runtime_path}/frameworks/native"
23eace7efcSopenharmony_ciability_runtime_services_path = "${ability_runtime_path}/services"
24eace7efcSopenharmony_ciability_runtime_abilitymgr_path = "${ability_runtime_services_path}/abilitymgr"
25eace7efcSopenharmony_ciability_runtime_test_path = "${ability_runtime_path}/test"
26eace7efcSopenharmony_ciability_runtime_utils_path = "${ability_runtime_path}/utils"
27eace7efcSopenharmony_ciace_engine_path = "//foundation/arkui/ace_engine"
28eace7efcSopenharmony_ciarkui_path = "//foundation/arkui"
29eace7efcSopenharmony_cipreviewer_path = "//ide/tools/previewer"
30eace7efcSopenharmony_cisimulator_path = "//foundation/ability/ability_runtime/frameworks/simulator"
31eace7efcSopenharmony_ci
32eace7efcSopenharmony_cibundlefwk_path = "//foundation/bundlemanager/bundle_framework"
33eace7efcSopenharmony_cibundlefwk_inner_api_path = "${bundlefwk_path}/interfaces/inner_api"
34eace7efcSopenharmony_cic_utils_base_path = "//commonlibrary/c_utils/base"
35eace7efcSopenharmony_ciets_utils_path = "//commonlibrary/ets_utils"
36eace7efcSopenharmony_ciprint_fwk_path = "//base/print/print_fwk"
37eace7efcSopenharmony_ciimf_path = "//base/inputmethod/imf"
38eace7efcSopenharmony_ciwallpaper_mgr_path = "//base/theme/wallpaper_mgr"
39eace7efcSopenharmony_cios_account_path = "//base/account/os_account"
40eace7efcSopenharmony_cidistributed_notification_service_path =
41eace7efcSopenharmony_ci    "//base/notification/distributed_notification_service"
42eace7efcSopenharmony_cipower_manager_path = "//base/powermgr/power_manager"
43eace7efcSopenharmony_cirequest_path = "//base/request/request"
44eace7efcSopenharmony_cihiebpf_path = "//developtools/profiler/hiebpf"
45eace7efcSopenharmony_ci
46eace7efcSopenharmony_cimultimedia_path = "//foundation/multimedia/image_framework"
47eace7efcSopenharmony_cimultimodalinput_path = "//foundation/multimodalinput/input"
48eace7efcSopenharmony_ciwindowmanager_path = "//foundation/window/window_manager"
49eace7efcSopenharmony_cigraphic_path = "//foundation/graphic/graphic_2d"
50eace7efcSopenharmony_ciglobal_path = "//base/global"
51eace7efcSopenharmony_cidistributedschedule_path = "//foundation/systemabilitymgr"
52eace7efcSopenharmony_cieventhandler_path = "//base/notification/eventhandler"
53eace7efcSopenharmony_cidistributeddatamgr_path = "//foundation/distributeddatamgr"
54eace7efcSopenharmony_ciform_fwk_napi_path = "${form_fwk_path}/frameworks/js/napi"
55eace7efcSopenharmony_ciability_base_kits_path = "${ability_base_path}/interfaces/kits/native"
56eace7efcSopenharmony_ciability_base_native_path = "${ability_base_path}/frameworks/native"
57eace7efcSopenharmony_ciappspawn_path = "//base/startup/appspawn"
58eace7efcSopenharmony_ciinit_path = "//base/startup/init"
59eace7efcSopenharmony_ciipc_native_path = "//foundation/communication/ipc/ipc/native"
60eace7efcSopenharmony_cithird_party_path = "//third_party"
61eace7efcSopenharmony_cihiviewdfx_path = "//base/hiviewdfx/hiview"
62eace7efcSopenharmony_cihilog_path = "//base/hiviewdfx/hilog"
63eace7efcSopenharmony_ciwebview_path = "//base/web/webview"
64eace7efcSopenharmony_ciresource_management_path = "//base/global/resource_management"
65eace7efcSopenharmony_cicommon_event_service_path = "//base/notification/common_event_service"
66eace7efcSopenharmony_cisafwk_path = "//utils/system/safwk"
67eace7efcSopenharmony_ciuser_file_service_innerkits_path =
68eace7efcSopenharmony_ci    "//foundation/filemanagement/user_file_service/interfaces/inner_api"
69eace7efcSopenharmony_ciresourceschedule_path = "//foundation/resourceschedule"
70eace7efcSopenharmony_cidevice_usage_statistics_path =
71eace7efcSopenharmony_ci    "//foundation/resourceschedule/device_usage_statistics"
72eace7efcSopenharmony_cidevice_manager_path = "//foundation/distributedhardware/device_manager"
73eace7efcSopenharmony_cigraphic_2d_path = "//foundation/graphic/graphic_2d"
74eace7efcSopenharmony_cisrms_inner_api_path =
75eace7efcSopenharmony_ci    "${ability_runtime_path}/service_router_framework/interfaces/inner_api"
76eace7efcSopenharmony_cifuzz_test_output_path = "ability_runtime/ability_runtime"
77eace7efcSopenharmony_ciaccessibility_path = "//foundation/barrierfree/accessibility"
78eace7efcSopenharmony_cirelational_store_base_path = "//foundation/distributeddatamgr/relational_store"
79eace7efcSopenharmony_cirelational_store_napi_path = "${relational_store_base_path}/frameworks/js/napi"
80eace7efcSopenharmony_cicommon_tool_path = "//foundation/distributeddatamgr/kv_store/frameworks/common"
81eace7efcSopenharmony_cirelational_store_common_path = "${relational_store_base_path}/frameworks/common"
82eace7efcSopenharmony_ciability_base_path = "//foundation/ability/ability_base"
83eace7efcSopenharmony_ciability_base_innerapi_path = "${ability_base_path}/interfaces/inner_api"
84eace7efcSopenharmony_cirelational_store_innerapi_path =
85eace7efcSopenharmony_ci    "${relational_store_base_path}/interfaces/inner_api"
86eace7efcSopenharmony_cibgtaskmgr_root_path = "//foundation/resourceschedule/background_task_mgr"
87eace7efcSopenharmony_cibgtaskmgr_interfaces_path = "${bgtaskmgr_root_path}/interfaces"
88eace7efcSopenharmony_cibgtaskmgr_frameworks_path = "${bgtaskmgr_root_path}/frameworks"
89eace7efcSopenharmony_cios_account_path = "//base/account/os_account"
90eace7efcSopenharmony_ciaccess_token_path = "//base/security/access_token"
91eace7efcSopenharmony_ci
92eace7efcSopenharmony_cideclare_args() {
93eace7efcSopenharmony_ci  background_task_mgr_continuous_task_enable = true
94eace7efcSopenharmony_ci  resource_schedule_service_enable = true
95eace7efcSopenharmony_ci  ability_runtime_power = true
96eace7efcSopenharmony_ci  ability_runtime_feature_sandboxmanager = false
97eace7efcSopenharmony_ci  ability_runtime_relational = true
98eace7efcSopenharmony_ci  ability_runtime_ces = true
99eace7efcSopenharmony_ci  ability_runtime_resource = true
100eace7efcSopenharmony_ci  ability_runtime_appspawn = true
101eace7efcSopenharmony_ci  ability_fault_and_exit_test = false
102eace7efcSopenharmony_ci  ability_command_for_test = false
103eace7efcSopenharmony_ci  ability_runtime_feature_coverage = false
104eace7efcSopenharmony_ci  ability_runtime_auto_fill_ability =
105eace7efcSopenharmony_ci      "com.ohos.passwordbox/entry/AutoFillAbility"
106eace7efcSopenharmony_ci  ability_runtime_smart_auto_fill_ability =
107eace7efcSopenharmony_ci      "com.ohos.textautofill/entry/TextAutoFillAbility"
108eace7efcSopenharmony_ci  cj_frontend = true
109eace7efcSopenharmony_ci  ability_runtime_app_no_response_dialog = false
110eace7efcSopenharmony_ci  ability_runtime_app_no_response_bundlename = "com.ohos.taskmanager"
111eace7efcSopenharmony_ci  include_app_domain_verify = true
112eace7efcSopenharmony_ci  ability_runtime_start_window_options_with_pixelmap = false
113eace7efcSopenharmony_ci
114eace7efcSopenharmony_ci  if (!defined(global_parts_info) ||
115eace7efcSopenharmony_ci      defined(global_parts_info.account_os_account)) {
116eace7efcSopenharmony_ci    os_account_part_enabled = true
117eace7efcSopenharmony_ci  } else {
118eace7efcSopenharmony_ci    os_account_part_enabled = false
119eace7efcSopenharmony_ci  }
120eace7efcSopenharmony_ci
121eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
122eace7efcSopenharmony_ci      !defined(global_parts_info.resourceschedule_background_task_mgr)) {
123eace7efcSopenharmony_ci    background_task_mgr_continuous_task_enable = false
124eace7efcSopenharmony_ci  }
125eace7efcSopenharmony_ci
126eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
127eace7efcSopenharmony_ci      !defined(global_parts_info.resourceschedule_resource_schedule_service)) {
128eace7efcSopenharmony_ci    resource_schedule_service_enable = false
129eace7efcSopenharmony_ci  }
130eace7efcSopenharmony_ci
131eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
132eace7efcSopenharmony_ci      !defined(global_parts_info.powermgr_power_manager)) {
133eace7efcSopenharmony_ci    ability_runtime_power = false
134eace7efcSopenharmony_ci  }
135eace7efcSopenharmony_ci
136eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
137eace7efcSopenharmony_ci      !defined(global_parts_info.distributeddatamgr_relational_store)) {
138eace7efcSopenharmony_ci    ability_runtime_relational = false
139eace7efcSopenharmony_ci  }
140eace7efcSopenharmony_ci
141eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
142eace7efcSopenharmony_ci      !defined(global_parts_info.notification_common_event_service)) {
143eace7efcSopenharmony_ci    ability_runtime_ces = false
144eace7efcSopenharmony_ci  }
145eace7efcSopenharmony_ci
146eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
147eace7efcSopenharmony_ci      !defined(global_parts_info.global_resource_management)) {
148eace7efcSopenharmony_ci    ability_runtime_resource = false
149eace7efcSopenharmony_ci  }
150eace7efcSopenharmony_ci
151eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
152eace7efcSopenharmony_ci      !defined(global_parts_info.startup_appspawn)) {
153eace7efcSopenharmony_ci    ability_runtime_appspawn = false
154eace7efcSopenharmony_ci  }
155eace7efcSopenharmony_ci
156eace7efcSopenharmony_ci  if (!defined(global_parts_info) ||
157eace7efcSopenharmony_ci      defined(global_parts_info.security_dlp_permission_service)) {
158eace7efcSopenharmony_ci    os_dlp_part_enabled = true
159eace7efcSopenharmony_ci  } else {
160eace7efcSopenharmony_ci    os_dlp_part_enabled = false
161eace7efcSopenharmony_ci  }
162eace7efcSopenharmony_ci
163eace7efcSopenharmony_ci  if (!defined(global_parts_info) ||
164eace7efcSopenharmony_ci      defined(global_parts_info.barrierfree_accessibility)) {
165eace7efcSopenharmony_ci    accessibility_enable = true
166eace7efcSopenharmony_ci  } else {
167eace7efcSopenharmony_ci    accessibility_enable = false
168eace7efcSopenharmony_ci  }
169eace7efcSopenharmony_ci
170eace7efcSopenharmony_ci  if (!defined(global_parts_info) ||
171eace7efcSopenharmony_ci      defined(global_parts_info.hiviewdfx_hichecker)) {
172eace7efcSopenharmony_ci    hichecker_enabled = true
173eace7efcSopenharmony_ci  } else {
174eace7efcSopenharmony_ci    hichecker_enabled = false
175eace7efcSopenharmony_ci  }
176eace7efcSopenharmony_ci
177eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
178eace7efcSopenharmony_ci      !defined(global_parts_info.bundlemanager_app_domain_verify)) {
179eace7efcSopenharmony_ci    include_app_domain_verify = false
180eace7efcSopenharmony_ci  }
181eace7efcSopenharmony_ci
182eace7efcSopenharmony_ci  if (!defined(global_parts_info) ||
183eace7efcSopenharmony_ci      defined(global_parts_info.ability_form_fwk)) {
184eace7efcSopenharmony_ci    form_fwk_enable = true
185eace7efcSopenharmony_ci  } else {
186eace7efcSopenharmony_ci    form_fwk_enable = false
187eace7efcSopenharmony_ci  }
188eace7efcSopenharmony_ci
189eace7efcSopenharmony_ci  if (defined(global_parts_info) &&
190eace7efcSopenharmony_ci      defined(global_parts_info.accesscontrol_sandbox_manager)) {
191eace7efcSopenharmony_ci    ability_runtime_feature_sandboxmanager = true
192eace7efcSopenharmony_ci  }
193eace7efcSopenharmony_ci}
194