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_inner_api_path = "${ability_runtime_path}/interfaces/inner_api" 16ability_runtime_services_path = "${ability_runtime_path}/services" 17ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 18ability_runtime_napi_path = "${ability_runtime_path}/frameworks/js/napi" 19access_token_path = "//base/security/access_token" 20component_name = "distributed_notification_service" 21component_path = "//base/notification/distributed_notification_service" 22multimedia_path = "//foundation/multimedia/image_framework" 23commonlibrary_utils_path = "//commonlibrary/c_utils" 24services_path = "${component_path}/services" 25reminder_services_path = "${component_path}/services/reminder" 26frameworks_path = "${component_path}/frameworks" 27frameworks_module_ans_path = "${frameworks_path}/ans" 28frameworks_module_reminder_path = "${frameworks_path}/reminder" 29interfaces_path = "${component_path}/interfaces" 30inner_api_path = "${interfaces_path}/inner_api" 31notification_ndk_path = "${interfaces_path}/ndk" 32core_path = "${frameworks_path}/core" 33test_path = "${component_path}/test" 34tools_path = "${component_path}/tools" 35service_fuzz_test_path = 36 "distributed_notification_service/distributed_notification_service" 37distributed_notification_supported = true 38subsystem_name = "notification" 39component_external_deps = [ 40 "ability_base:base", 41 "ability_base:want", 42 "ability_base:zuri", 43 "bundle_framework:appexecfwk_base", 44 "bundle_framework:appexecfwk_core", 45 "common_event_service:cesfwk_innerkits", 46 "eventhandler:libeventhandler", 47 "hilog:libhilog", 48 "ipc:ipc_core", 49 "safwk:system_ability_fwk", 50 "samgr:samgr_proxy", 51] 52 53declare_args() { 54 device_usage = true 55 hisysevent_usage = true 56 standby_enable = true 57 player_framework = true 58 ans_hitrace_usage = true 59 distributed_notification_service_feature_summary = false 60 distributed_notification_service_feature_disable_fa_model = false 61 distributed_notification_service_feature_additional_control = false 62 distributed_notification_service_feature_privileged_message = false 63 distributed_notification_service_feature_badge_manager = true 64 distributed_notification_service_feature_local_liveview = true 65 distributed_notification_service_feature_distributed_db = true 66 distributed_notification_service_feature_disturb_manager = true 67 distributed_notification_service_feature_slot_manager = true 68 distributed_notification_service_feature_additional_config = true 69 distributed_notification_service_feature_open_notification_settings = true 70 distributed_notification_service_feature_all_scenario_collaboration = true 71 distributed_notification_service_feature_phone_collaboration = true 72 distributed_notification_service_disable_control = false 73 notification_smart_reminder_supported = true 74 ans_config_policy_enable = true 75 screenlock_mgr_enable = true 76 telephony_cust = true 77 78 if (defined(global_parts_info) && 79 !defined(global_parts_info.resourceschedule_device_usage_statistics)) { 80 device_usage = false 81 } 82 83 if (defined(global_parts_info) && 84 !defined(global_parts_info.hiviewdfx_hisysevent_native)) { 85 hisysevent_usage = false 86 } 87 88 if (defined(global_parts_info) && 89 !defined(global_parts_info.resourceschedule_device_standby)) { 90 standby_enable = false 91 } 92 93 if (defined(global_parts_info) && 94 !defined(global_parts_info.multimedia_player_framework)) { 95 player_framework = false 96 } 97 98 if (defined(global_parts_info) && 99 !defined(global_parts_info.hiviewdfx_hitrace)) { 100 ans_hitrace_usage = false 101 } 102 103 if (defined(global_parts_info) && 104 !defined(global_parts_info.customization_config_policy)) { 105 ans_config_policy_enable = false 106 } 107 108 if ((defined(global_parts_info) && 109 !defined(global_parts_info.theme_screenlock_mgr)) || is_emulator) { 110 screenlock_mgr_enable = false 111 notification_smart_reminder_supported = false 112 } 113 114 if (defined(global_parts_info) && 115 !defined(global_parts_info.telephony_telephony_cust)) { 116 telephony_cust = false 117 } 118 119 print("hisysevent_usage = " + "$hisysevent_usage") 120 print("ans_hitrace_usage = " + "$ans_hitrace_usage") 121} 122