• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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/test.gni")
15import("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17module_output_path = "ability_runtime/ability_runtime/abilitymgr"
18
19ohos_unittest("ability_manager_service_fourteenth_test") {
20  module_out_path = module_output_path
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25    blocklist = "../../cfi_blocklist.txt"
26  }
27  branch_protector_ret = "pac_ret"
28  configs = [
29    ":abilityms_config",
30    ":abilityms_exception_config",
31  ]
32  include_dirs = [
33    "../ability_manager_service_thirteenth_test/mock/include",
34    "${ability_runtime_abilitymgr_path}/include/",
35    "${ability_runtime_abilitymgr_path}/include/data_ability",
36    "${ability_runtime_abilitymgr_path}/include/dialog_session/",
37    "${ability_runtime_abilitymgr_path}/include/extension_record",
38    "${ability_runtime_abilitymgr_path}/include/insight_intent",
39    "${ability_runtime_abilitymgr_path}/include/keep_alive/",
40    "${ability_runtime_abilitymgr_path}/include/mission/",
41    "${ability_runtime_abilitymgr_path}/include/rdb/",
42    "${ability_runtime_abilitymgr_path}/include/resident_process/",
43    "${ability_runtime_abilitymgr_path}/include/screen_lock/",
44    "${ability_runtime_abilitymgr_path}/include/ui_extension",
45    "${ability_runtime_abilitymgr_path}/include/ui_extension_record",
46    "${ability_runtime_abilitymgr_path}/include/utils/",
47    "${ability_runtime_innerkits_path}/ability_manager/include",
48    "${ability_runtime_innerkits_path}/app_manager/include",
49    "${ability_runtime_innerkits_path}/connectionobs_manager/include",
50    "${ability_runtime_innerkits_path}/dataobs_manager/include",
51    "${ability_runtime_innerkits_path}/deps_wrapper/include",
52    "${ability_runtime_innerkits_path}/session_handler/include",
53    "${ability_runtime_innerkits_path}/wantagent/include",
54    "${ability_runtime_path}/interfaces/kits/native/ability/native",
55    "${ability_runtime_path}/interfaces/kits/native/ability/native/ui_service_extension_ability/connection",
56    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper",
57    "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime",
58    "${ability_runtime_path}/tools/aa/include",
59    "${ability_runtime_path}/utils/global/time/include",
60    "${ability_runtime_services_path}/abilitymgr/data_ability/include",
61    "${ability_runtime_services_path}/abilitymgr/include",
62    "${ability_runtime_services_path}/abilitymgr/include/utils",
63    "${ability_runtime_services_path}/appdfr/include",
64    "${ability_runtime_services_path}/common/include",
65    "${ability_runtime_utils_path}/global/constant",
66    "${ability_runtime_utils_path}/server/constant",
67    "//prebuilts/jdk/jdk8/linux-x86/include",
68    "//prebuilts/jdk/jdk8/linux-x86/include/linux",
69  ]
70
71  sources = [
72    "${ability_runtime_innerkits_path}/uri_permission/src/uri_permission_load_callback.cpp",
73    "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_data_manager.cpp",
74    "${ability_runtime_services_path}/abilitymgr/src/ability_auto_startup_service.cpp",
75    "${ability_runtime_services_path}/abilitymgr/src/ability_background_connection.cpp",
76    "${ability_runtime_services_path}/abilitymgr/src/ability_bundle_event_callback.cpp",
77    "${ability_runtime_services_path}/abilitymgr/src/ability_cache_manager.cpp",
78    "${ability_runtime_services_path}/abilitymgr/src/ability_debug_deal.cpp",
79    "${ability_runtime_services_path}/abilitymgr/src/ability_event_handler.cpp",
80    "${ability_runtime_services_path}/abilitymgr/src/ability_first_frame_state_observer_manager.cpp",
81    "${ability_runtime_services_path}/abilitymgr/src/ability_manager_collaborator_proxy.cpp",
82    "${ability_runtime_services_path}/abilitymgr/src/ability_manager_event_subscriber.cpp",
83    "${ability_runtime_services_path}/abilitymgr/src/ability_manager_service.cpp",
84    "${ability_runtime_services_path}/abilitymgr/src/ability_manager_stub.cpp",
85    "${ability_runtime_services_path}/abilitymgr/src/ability_running_info.cpp",
86    "${ability_runtime_services_path}/abilitymgr/src/ability_scheduler_proxy.cpp",
87    "${ability_runtime_services_path}/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp",
88    "${ability_runtime_services_path}/abilitymgr/src/ability_token_stub.cpp",
89    "${ability_runtime_services_path}/abilitymgr/src/ams_configuration_parameter.cpp",
90    "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_data_manager.cpp",
91    "${ability_runtime_services_path}/abilitymgr/src/app_exit_reason_helper.cpp",
92    "${ability_runtime_services_path}/abilitymgr/src/app_scheduler.cpp",
93    "${ability_runtime_services_path}/abilitymgr/src/assert_fault_callback_death_mgr.cpp",
94    "${ability_runtime_services_path}/abilitymgr/src/assert_fault_proxy.cpp",
95    "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback.cpp",
96    "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_proxy.cpp",
97    "${ability_runtime_services_path}/abilitymgr/src/atomic_service_status_callback_stub.cpp",
98    "${ability_runtime_services_path}/abilitymgr/src/auto_startup_info.cpp",
99    "${ability_runtime_services_path}/abilitymgr/src/background_task_observer.cpp",
100    "${ability_runtime_services_path}/abilitymgr/src/call_container.cpp",
101    "${ability_runtime_services_path}/abilitymgr/src/call_record.cpp",
102    "${ability_runtime_services_path}/abilitymgr/src/caller_info.cpp",
103    "${ability_runtime_services_path}/abilitymgr/src/connection_observer_controller.cpp",
104    "${ability_runtime_services_path}/abilitymgr/src/connection_record.cpp",
105    "${ability_runtime_services_path}/abilitymgr/src/connection_state_item.cpp",
106    "${ability_runtime_services_path}/abilitymgr/src/connection_state_manager.cpp",
107    "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_caller_recipient.cpp",
108    "${ability_runtime_services_path}/abilitymgr/src/data_ability/data_ability_record.cpp",
109    "${ability_runtime_services_path}/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp",
110    "${ability_runtime_services_path}/abilitymgr/src/dialog_session/dialog_session_manager.cpp",
111    "${ability_runtime_services_path}/abilitymgr/src/disposed_observer.cpp",
112    "${ability_runtime_services_path}/abilitymgr/src/dlp_state_item.cpp",
113    "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp",
114    "${ability_runtime_services_path}/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service_param.cpp",
115    "${ability_runtime_services_path}/abilitymgr/src/exit_info_data_manager.cpp",
116    "${ability_runtime_services_path}/abilitymgr/src/extension_config.cpp",
117    "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record.cpp",
118    "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_factory.cpp",
119    "${ability_runtime_services_path}/abilitymgr/src/extension_record/extension_record_manager.cpp",
120    "${ability_runtime_services_path}/abilitymgr/src/extension_running_info.cpp",
121    "${ability_runtime_services_path}/abilitymgr/src/free_install_observer_manager.cpp",
122    "${ability_runtime_services_path}/abilitymgr/src/hidden_start_observer_manager.cpp",
123    "${ability_runtime_services_path}/abilitymgr/src/implicit_start_processor.cpp",
124    "${ability_runtime_services_path}/abilitymgr/src/inner_mission_info.cpp",
125    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_manager.cpp",
126    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_execute_result.cpp",
127    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_profile.cpp",
128    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_utils.cpp",
129    "${ability_runtime_services_path}/abilitymgr/src/utils/hmsf_utils.cpp",
130    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_data_mgr.cpp",
131    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_rdb_storage_mgr.cpp",
132    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_db_cache.cpp",
133    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/extract_insight_intent_profile.cpp",
134    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_event_mgr.cpp",
135    "${ability_runtime_services_path}/abilitymgr/src/insight_intent/insight_intent_sys_event_receiver.cpp",
136    "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_interceptor_executer.cpp",
137    "${ability_runtime_services_path}/abilitymgr/src/interceptor/ability_jump_interceptor.cpp",
138    "${ability_runtime_services_path}/abilitymgr/src/interceptor/block_all_app_start_interceptor.cpp",
139    "${ability_runtime_services_path}/abilitymgr/src/interceptor/control_interceptor.cpp",
140    "${ability_runtime_services_path}/abilitymgr/src/interceptor/crowd_test_interceptor.cpp",
141    "${ability_runtime_services_path}/abilitymgr/src/interceptor/disposed_rule_interceptor.cpp",
142    "${ability_runtime_services_path}/abilitymgr/src/interceptor/extension_control_interceptor.cpp",
143    "${ability_runtime_services_path}/abilitymgr/src/interceptor/screen_unlock_interceptor.cpp",
144    "${ability_runtime_services_path}/abilitymgr/src/interceptor/start_other_app_interceptor.cpp",
145    "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_data_manager.cpp",
146    "${ability_runtime_services_path}/abilitymgr/src/keep_alive/ability_keep_alive_service.cpp",
147    "${ability_runtime_services_path}/abilitymgr/src/keep_alive/keep_alive_process_manager.cpp",
148    "${ability_runtime_services_path}/abilitymgr/src/lifecycle_deal.cpp",
149    "${ability_runtime_services_path}/abilitymgr/src/mission/mission_list_manager.cpp",
150    "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_controller.cpp",
151    "${ability_runtime_services_path}/abilitymgr/src/mission/mission_listener_proxy.cpp",
152    "${ability_runtime_services_path}/abilitymgr/src/modal_system_dialog/modal_system_dialog_ui_extension.cpp",
153    "${ability_runtime_services_path}/abilitymgr/src/pending_want_common_event.cpp",
154    "${ability_runtime_services_path}/abilitymgr/src/pending_want_key.cpp",
155    "${ability_runtime_services_path}/abilitymgr/src/pending_want_manager.cpp",
156    "${ability_runtime_services_path}/abilitymgr/src/pending_want_record.cpp",
157    "${ability_runtime_services_path}/abilitymgr/src/query_erms_manager.cpp",
158    "${ability_runtime_services_path}/abilitymgr/src/query_erms_observer_manager.cpp",
159    "${ability_runtime_services_path}/abilitymgr/src/rdb/ability_resident_process_rdb.cpp",
160    "${ability_runtime_services_path}/abilitymgr/src/rdb/parser_util.cpp",
161    "${ability_runtime_services_path}/abilitymgr/src/rdb/rdb_data_manager.cpp",
162    "${ability_runtime_services_path}/abilitymgr/src/recovery_info_timer.cpp",
163    "${ability_runtime_services_path}/abilitymgr/src/remote_mission_listener_proxy.cpp",
164    "${ability_runtime_services_path}/abilitymgr/src/report_data_partition_usage_manager.cpp",
165    "${ability_runtime_services_path}/abilitymgr/src/resident_process/resident_process_manager.cpp",
166    "${ability_runtime_services_path}/abilitymgr/src/restart_app_manager.cpp",
167    "${ability_runtime_services_path}/abilitymgr/src/sa_interceptor_manager.cpp",
168    "${ability_runtime_services_path}/abilitymgr/src/scene_board/status_bar_delegate_manager.cpp",
169    "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_callback.cpp",
170    "${ability_runtime_services_path}/abilitymgr/src/screen_lock/unlock_screen_manager.cpp",
171    "${ability_runtime_services_path}/abilitymgr/src/sender_info.cpp",
172    "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler.cpp",
173    "${ability_runtime_services_path}/abilitymgr/src/start_ability_handler/start_ability_sandbox_savefile.cpp",
174    "${ability_runtime_services_path}/abilitymgr/src/start_options.cpp",
175    "${ability_runtime_services_path}/abilitymgr/src/system_dialog_scheduler.cpp",
176    "${ability_runtime_services_path}/abilitymgr/src/ui_extension/preload_uiext_state_observer.cpp",
177    "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record.cpp",
178    "${ability_runtime_services_path}/abilitymgr/src/ui_extension_record/ui_extension_record_factory.cpp",
179    "${ability_runtime_services_path}/abilitymgr/src/user_callback_proxy.cpp",
180    "${ability_runtime_services_path}/abilitymgr/src/user_controller.cpp",
181    "${ability_runtime_services_path}/abilitymgr/src/user_event_handler.cpp",
182    "${ability_runtime_services_path}/abilitymgr/src/utils/ability_event_util.cpp",
183    "${ability_runtime_services_path}/abilitymgr/src/utils/ability_permission_util.cpp",
184    "${ability_runtime_services_path}/abilitymgr/src/utils/app_mgr_util.cpp",
185    "${ability_runtime_services_path}/abilitymgr/src/utils/dms_util.cpp",
186    "${ability_runtime_services_path}/abilitymgr/src/utils/dump_utils.cpp",
187    "${ability_runtime_services_path}/abilitymgr/src/utils/extension_permissions_util.cpp",
188    "${ability_runtime_services_path}/abilitymgr/src/utils/hidden_start_utils.cpp",
189    "${ability_runtime_services_path}/abilitymgr/src/utils/keep_alive_utils.cpp",
190    "${ability_runtime_services_path}/abilitymgr/src/utils/main_element_utils.cpp",
191    "${ability_runtime_services_path}/abilitymgr/src/utils/modal_system_dialog_util.cpp",
192    "${ability_runtime_services_path}/abilitymgr/src/utils/multi_app_utils.cpp",
193    "${ability_runtime_services_path}/abilitymgr/src/utils/multi_instance_utils.cpp",
194    "${ability_runtime_services_path}/abilitymgr/src/utils/start_ability_utils.cpp",
195    "${ability_runtime_services_path}/abilitymgr/src/utils/start_options_utils.cpp",
196    "${ability_runtime_services_path}/abilitymgr/src/utils/state_utils.cpp",
197    "${ability_runtime_services_path}/abilitymgr/src/utils/timeout_state_utils.cpp",
198    "${ability_runtime_services_path}/abilitymgr/src/utils/update_caller_info_util.cpp",
199    "${ability_runtime_services_path}/abilitymgr/src/utils/uri_utils.cpp",
200    "${ability_runtime_services_path}/abilitymgr/src/utils/want_utils.cpp",
201    "${ability_runtime_services_path}/abilitymgr/src/utils/window_options_utils.cpp",
202    "${ability_runtime_services_path}/abilitymgr/src/utils/request_id_util.cpp",
203    "${ability_runtime_services_path}/abilitymgr/src/want_receiver_proxy.cpp",
204    "${ability_runtime_services_path}/abilitymgr/src/want_receiver_stub.cpp",
205    "${ability_runtime_services_path}/abilitymgr/src/want_sender_info.cpp",
206    "${ability_runtime_services_path}/abilitymgr/src/want_sender_proxy.cpp",
207    "${ability_runtime_services_path}/abilitymgr/src/want_sender_stub.cpp",
208    "${ability_runtime_services_path}/abilitymgr/src/wants_info.cpp",
209    "${ability_runtime_services_path}/abilitymgr/src/window_focus_changed_listener.cpp",
210    "${ability_runtime_services_path}/abilitymgr/src/window_visibility_changed_listener.cpp",
211    "${ability_runtime_services_path}/appdfr/src/application_anr_listener.cpp",
212    "${ability_runtime_services_path}/common/src/ability_manager_radar.cpp",
213    "${ability_runtime_services_path}/common/src/ffrt_task_handler_wrap.cpp",
214    "${ability_runtime_services_path}/common/src/json_utils.cpp",
215    "${ability_runtime_services_path}/common/src/queue_task_handler_wrap.cpp",
216    "${ability_runtime_services_path}/common/src/task_handler_wrap.cpp",
217    "${ability_runtime_test_path}/mock/frameworks_kits_ability_native_test/include/mock_ability_manager_client.cpp",
218    "ability_manager_service_fourteenth_test.cpp",
219    "../ability_manager_service_thirteenth_test/mock/src/mock_ability_record.cpp",
220    "../ability_manager_service_thirteenth_test/mock/src/mock_ability_connect_manager.cpp",
221    "../ability_manager_service_thirteenth_test/mock/src/mock_accesstoken_kit.cpp",
222    "../ability_manager_service_thirteenth_test/mock/src/mock_app_utils.cpp",
223    "../ability_manager_service_thirteenth_test/mock/src/mock_data_ability_manager.cpp",
224    "../ability_manager_service_thirteenth_test/mock/src/mock_ecological_rule_interceptor.cpp",
225    "../ability_manager_service_thirteenth_test/mock/src/mock_free_install_manager.cpp",
226    "../ability_manager_service_thirteenth_test/mock/src/mock_ipc_skeleton.cpp",
227    "../ability_manager_service_thirteenth_test/mock/src/mock_parameters.cpp",
228    "../ability_manager_service_thirteenth_test/mock/src/mock_permission_verification.cpp",
229    "../ability_manager_service_thirteenth_test/mock/src/mock_scene_board_judgement.cpp",
230    "../ability_manager_service_thirteenth_test/mock/src/mock_sub_managers_helper.cpp",
231    "../ability_manager_service_thirteenth_test/mock/src/mock_ui_ability_lifecycle_manager.cpp",
232    "${ability_runtime_services_path}/abilitymgr/src/kiosk_status.cpp",
233    "${ability_runtime_services_path}/abilitymgr/src/kiosk_manager.cpp",
234    "${ability_runtime_services_path}/abilitymgr/src/interceptor/kiosk_interceptor.cpp",
235    "${ability_runtime_services_path}/abilitymgr/src/preload_manager_service.cpp",
236  ]
237
238  deps = [
239    "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub",
240    "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
241    "${ability_runtime_innerkits_path}/ability_manager:ability_start_options",
242    "${ability_runtime_innerkits_path}/ability_manager:ability_start_setting",
243    "${ability_runtime_innerkits_path}/ability_manager:mission_info",
244    "${ability_runtime_innerkits_path}/ability_manager:process_options",
245    "${ability_runtime_innerkits_path}/ability_manager:start_window_option",
246    "${ability_runtime_innerkits_path}/app_manager:app_manager",
247    "${ability_runtime_innerkits_path}/connectionobs_manager:connection_obs_manager",
248    "${ability_runtime_innerkits_path}/deps_wrapper:ability_deps_wrapper",
249    "${ability_runtime_innerkits_path}/error_utils:ability_runtime_error_util",
250    "${ability_runtime_innerkits_path}/session_handler:session_handler",
251    "${ability_runtime_innerkits_path}/uri_permission:uri_permission_mgr",
252    "${ability_runtime_native_path}/ability/native:ability_business_error",
253    "${ability_runtime_native_path}/ability/native:abilitykit_native",
254    "${ability_runtime_native_path}/ability/native:auto_startup_callback",
255    "${ability_runtime_native_path}/appkit:appkit_manager_helper",
256    "${ability_runtime_path}/utils/global/freeze:freeze_util",
257    "${ability_runtime_path}/utils/server/startup:startup_util",
258    "${ability_runtime_services_path}/abilitymgr:mission_list",
259    "${ability_runtime_services_path}/common:app_util",
260    "${ability_runtime_services_path}/common:event_report",
261    "${ability_runtime_services_path}/common:perm_verification",
262    "${ability_runtime_services_path}/common:rate_limiter",
263    "${ability_runtime_services_path}/common:record_cost_time_util",
264    "${ability_runtime_services_path}/common:res_sched_util",
265    "${ability_runtime_services_path}/common:task_handler_wrap",
266  ]
267
268  external_deps = [
269    "ability_base:base",
270    "ability_base:configuration",
271    "ability_base:extractortool",
272    "ability_base:session_info",
273    "ability_base:view_data",
274    "ability_base:want",
275    "ability_base:zuri",
276    "access_token:libaccesstoken_sdk",
277    "access_token:libnativetoken",
278    "access_token:libtoken_setproc",
279    "access_token:libtokenid_sdk",
280    "bundle_framework:appexecfwk_base",
281    "bundle_framework:appexecfwk_core",
282    "bundle_framework:libappexecfwk_common",
283    "c_utils:utils",
284    "common_event_service:cesfwk_core",
285    "common_event_service:cesfwk_innerkits",
286    "config_policy:configpolicy_util",
287    "dsoftbus:softbus_client",
288    "eventhandler:libeventhandler",
289    "faultloggerd:libbacktrace_local",
290    "ffrt:libffrt",
291    "googletest:gmock_main",
292    "googletest:gtest_main",
293    "hicollie:libhicollie",
294    "hilog:libhilog",
295    "hisysevent:libhisysevent",
296    "hitrace:hitrace_meter",
297    "icu:shared_icuuc",
298    "init:libbeget_proxy",
299    "init:libbegetutil",
300    "ipc:ipc_core",
301    "json:nlohmann_json_static",
302    "kv_store:distributeddata_inner",
303    "os_account:os_account_innerkits",
304    "qos_manager:concurrent_task_client",
305    "relational_store:native_appdatafwk",
306    "relational_store:native_dataability",
307    "relational_store:native_rdb",
308    "safwk:api_cache_manager",
309    "safwk:system_ability_fwk",
310    "samgr:samgr_proxy",
311    "window_manager:libmodal_system_ui_extension_client",
312    "window_manager:libwsutils",
313    "window_manager:scene_session",
314    "window_manager:session_manager_lite",
315    "window_manager:sms",
316    "window_manager:window_animation_utils",
317  ]
318
319  if (ability_runtime_graphics) {
320    external_deps += [
321      "ability_base:session_info",
322      "i18n:intl_util",
323      "icu:shared_icuuc",
324      "image_framework:image_native",
325      "input:libmmi-client",
326      "resource_management:global_resmgr",
327      "window_manager:libdm",
328      "window_manager:libmodal_system_ui_extension_client",
329      "window_manager:libwm",
330      "window_manager:libwsutils",
331      "window_manager:scene_session",
332      "window_manager:sms",
333    ]
334  }
335
336  if (ability_runtime_graphics && ability_runtime_screenlock_enable) {
337    external_deps += [
338      "screenlock_mgr:screenlock_client",
339    ]
340  }
341
342  cflags = [
343    "-Dprivate=public",
344    "-Dprotected=public",
345  ]
346  cflags_cc = []
347  if (os_dlp_part_enabled) {
348    cflags_cc += [ "-DWITH_DLP" ]
349    external_deps += [
350      "dlp_permission_service:libdlp_permission_sdk",
351      "dlp_permission_service:libdlpparse",
352    ]
353  }
354}
355
356config("abilityms_config") {
357  defines = []
358
359  if (ability_command_for_test) {
360    defines += [ "ABILITY_COMMAND_FOR_TEST" ]
361  }
362
363  if (ability_fault_and_exit_test) {
364    defines += [ "ABILITY_FAULT_AND_EXIT_TEST" ]
365  }
366
367  if (ability_runtime_graphics) {
368    defines += [
369      "SUPPORT_GRAPHICS",
370      "SUPPORT_SCREEN",
371    ]
372  }
373
374  if (ability_runtime_graphics && ability_runtime_screenlock_enable) {
375    defines += [
376      "ABILITY_RUNTIME_SCREENLOCK_ENABLE"
377    ]
378  }
379
380  if (background_task_mgr_continuous_task_enable) {
381    defines += [ "BGTASKMGR_CONTINUOUS_TASK_ENABLE" ]
382  }
383
384  if (resource_schedule_service_enable) {
385    defines += [ "RESOURCE_SCHEDULE_SERVICE_ENABLE" ]
386  }
387
388  if (memmgr_override_enable) {
389    defines += [ "MEMMGR_OVERRIDE_ENABLE" ]
390  }
391
392  if (is_asan || asan_detector) {
393    defines += [ "SUPPORT_ASAN" ]
394  }
395}
396config("abilityms_exception_config") {
397  cflags_cc = [ "-fexceptions" ]
398}
399
400group("unittest") {
401  testonly = true
402  deps = [ ":ability_manager_service_fourteenth_test" ]
403}
404