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" 20ffrt_path = "//foundation/resourceschedule/ffrt" 21component_name = "distributed_notification_service" 22component_path = "//base/notification/distributed_notification_service" 23multimedia_path = "//foundation/multimedia/image_framework" 24commonlibrary_utils_path = "//commonlibrary/c_utils" 25services_path = "${component_path}/services" 26frameworks_path = "${component_path}/frameworks" 27frameworks_module_ans_path = "${frameworks_path}/ans" 28interfaces_path = "${component_path}/interfaces" 29inner_api_path = "${interfaces_path}/inner_api" 30notification_ndk_path = "${interfaces_path}/ndk" 31core_path = "${frameworks_path}/core" 32test_path = "${component_path}/test" 33tools_path = "${component_path}/tools" 34service_fuzz_test_path = 35 "distributed_notification_service/distributed_notification_service" 36distributed_notification_supported = true 37subsystem_name = "notification" 38component_external_deps = [ 39 "ability_base:base", 40 "ability_base:want", 41 "ability_base:zuri", 42 "bundle_framework:appexecfwk_base", 43 "bundle_framework:appexecfwk_core", 44 "common_event_service:cesfwk_innerkits", 45 "eventhandler:libeventhandler", 46 "hilog:libhilog", 47 "ipc:ipc_core", 48 "safwk:system_ability_fwk", 49 "samgr:samgr_proxy", 50] 51 52declare_args() { 53 device_usage = true 54 hisysevent_usage = true 55 standby_enable = true 56 player_framework = true 57 ans_hitrace_usage = true 58 distributed_notification_service_feature_summary = false 59 notification_smart_reminder_supported = true 60 ans_config_policy_enable = true 61 screenlock_mgr_enable = true 62 telephony_cust = true 63 distributed_notification_service_feature_enable_fa_model = true 64 65 if (defined(global_parts_info) && 66 !defined(global_parts_info.resourceschedule_device_usage_statistics)) { 67 device_usage = false 68 } 69 70 if (defined(global_parts_info) && 71 !defined(global_parts_info.hiviewdfx_hisysevent)) { 72 hisysevent_usage = false 73 } 74 75 if (defined(global_parts_info) && 76 !defined(global_parts_info.resourceschedule_device_standby)) { 77 standby_enable = false 78 } 79 80 if (defined(global_parts_info) && 81 !defined(global_parts_info.multimedia_player_framework)) { 82 player_framework = false 83 } 84 85 if (defined(global_parts_info) && 86 !defined(global_parts_info.hiviewdfx_hitrace)) { 87 ans_hitrace_usage = false 88 } 89 90 if (defined(global_parts_info) && 91 !defined(global_parts_info.customization_config_policy)) { 92 ans_config_policy_enable = false 93 } 94 95 if ((defined(global_parts_info) && 96 !defined(global_parts_info.theme_screenlock_mgr)) || is_emulator) { 97 screenlock_mgr_enable = false 98 notification_smart_reminder_supported = false 99 } 100 101 if (defined(global_parts_info) && 102 !defined(global_parts_info.telephony_telephony_cust)) { 103 telephony_cust = false 104 } 105 106 print("hisysevent_usage = " + "$hisysevent_usage") 107 print("ans_hitrace_usage = " + "$ans_hitrace_usage") 108} 109