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. 13import("//base/notification/distributed_notification_service/notification.gni") 14import("//build/ohos.gni") 15 16config("public_ans_core_config") { 17 include_dirs = [ 18 "${core_path}/common/include", 19 "${core_path}/include", 20 "${inner_api_path}", 21 22 "//third_party/json/single_include", 23 ] 24} 25 26ohos_shared_library("ans_core") { 27 sources = [ 28 "${core_path}/src/ans_image_util.cpp", 29 "${core_path}/src/ans_manager_proxy.cpp", 30 "${core_path}/src/ans_manager_stub.cpp", 31 "${core_path}/src/ans_notification.cpp", 32 "${core_path}/src/ans_subscriber_proxy.cpp", 33 "${core_path}/src/ans_subscriber_stub.cpp", 34 "${frameworks_module_ans_path}/src/badge_number_callback_data.cpp", 35 "${frameworks_module_ans_path}/src/enabled_notification_callback_data.cpp", 36 "${frameworks_module_ans_path}/src/message_user.cpp", 37 "${frameworks_module_ans_path}/src/notification.cpp", 38 "${frameworks_module_ans_path}/src/notification_action_button.cpp", 39 "${frameworks_module_ans_path}/src/notification_basic_content.cpp", 40 "${frameworks_module_ans_path}/src/notification_bundle_option.cpp", 41 "${frameworks_module_ans_path}/src/notification_constant.cpp", 42 "${frameworks_module_ans_path}/src/notification_content.cpp", 43 "${frameworks_module_ans_path}/src/notification_conversational_content.cpp", 44 "${frameworks_module_ans_path}/src/notification_conversational_message.cpp", 45 "${frameworks_module_ans_path}/src/notification_distributed_options.cpp", 46 "${frameworks_module_ans_path}/src/notification_do_not_disturb_date.cpp", 47 "${frameworks_module_ans_path}/src/notification_flags.cpp", 48 "${frameworks_module_ans_path}/src/notification_helper.cpp", 49 "${frameworks_module_ans_path}/src/notification_long_text_content.cpp", 50 "${frameworks_module_ans_path}/src/notification_media_content.cpp", 51 "${frameworks_module_ans_path}/src/notification_multiline_content.cpp", 52 "${frameworks_module_ans_path}/src/notification_normal_content.cpp", 53 "${frameworks_module_ans_path}/src/notification_picture_content.cpp", 54 "${frameworks_module_ans_path}/src/notification_request.cpp", 55 "${frameworks_module_ans_path}/src/notification_slot.cpp", 56 "${frameworks_module_ans_path}/src/notification_sorting.cpp", 57 "${frameworks_module_ans_path}/src/notification_sorting_map.cpp", 58 "${frameworks_module_ans_path}/src/notification_subscribe_info.cpp", 59 "${frameworks_module_ans_path}/src/notification_subscriber.cpp", 60 "${frameworks_module_ans_path}/src/notification_template.cpp", 61 "${frameworks_module_ans_path}/src/notification_user_input.cpp", 62 "${frameworks_module_ans_path}/src/push_callback_stub.cpp", 63 "${frameworks_module_ans_path}/src/reminder_helper.cpp", 64 "${frameworks_module_ans_path}/src/reminder_request.cpp", 65 "${frameworks_module_ans_path}/src/reminder_request_alarm.cpp", 66 "${frameworks_module_ans_path}/src/reminder_request_calendar.cpp", 67 "${frameworks_module_ans_path}/src/reminder_request_timer.cpp", 68 "${frameworks_module_ans_path}/src/reminder_store.cpp", 69 ] 70 71 public_configs = [ ":public_ans_core_config" ] 72 73 external_deps = [ 74 "ability_base:want", 75 "ability_base:zuri", 76 "ability_runtime:wantagent_innerkits", 77 "bundle_framework:appexecfwk_base", 78 "bundle_framework:appexecfwk_core", 79 "c_utils:utils", 80 "eventhandler:libeventhandler", 81 "hicollie:libhicollie", 82 "hilog:libhilog", 83 "hitrace:hitrace_meter", 84 "i18n:intl_util", 85 "image_framework:image_native", 86 "ipc:ipc_core", 87 "os_account:os_account_innerkits", 88 "relational_store:native_rdb", 89 "samgr:samgr_proxy", 90 "time_service:time_client", 91 ] 92 install_images = [ system_base_dir ] 93 relative_install_dir = "platformsdk" 94 innerapi_tags = [ "platformsdk" ] 95 part_name = "${component_name}" 96 subsystem_name = "${subsystem_name}" 97} 98