1# Copyright (c) 2021-2022 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/ans_standard/notification.gni") 14import("//build/ohos.gni") 15 16group("ans_core_target") { 17 deps = [ ":ans_core" ] 18} 19 20config("private_config") { 21 include_dirs = [ "//utils/system/safwk/native/include" ] 22} 23 24config("public_ans_core_config") { 25 include_dirs = [ 26 "${core_path}/common/include", 27 "${core_path}/include", 28 "${interfaces_path}/innerkits/ans/native/include", 29 30 "//utils/native/base/include", 31 "//third_party/json/single_include", 32 "//third_party/jsoncpp/include", 33 ] 34} 35 36ohos_shared_library("ans_core") { 37 sources = [ 38 "${core_path}/common/src/ans_log_wrapper.cpp", 39 "${core_path}/src/ans_image_util.cpp", 40 "${core_path}/src/ans_manager_death_recipient.cpp", 41 "${core_path}/src/ans_manager_proxy.cpp", 42 "${core_path}/src/ans_manager_stub.cpp", 43 "${core_path}/src/ans_notification.cpp", 44 "${core_path}/src/ans_subscriber_proxy.cpp", 45 "${core_path}/src/ans_subscriber_stub.cpp", 46 "${frameworks_path}/ans/native/src/enabled_notification_callback_data.cpp", 47 "${frameworks_path}/ans/native/src/message_user.cpp", 48 "${frameworks_path}/ans/native/src/notification.cpp", 49 "${frameworks_path}/ans/native/src/notification_action_button.cpp", 50 "${frameworks_path}/ans/native/src/notification_basic_content.cpp", 51 "${frameworks_path}/ans/native/src/notification_bundle_option.cpp", 52 "${frameworks_path}/ans/native/src/notification_constant.cpp", 53 "${frameworks_path}/ans/native/src/notification_content.cpp", 54 "${frameworks_path}/ans/native/src/notification_conversational_content.cpp", 55 "${frameworks_path}/ans/native/src/notification_conversational_message.cpp", 56 "${frameworks_path}/ans/native/src/notification_distributed_options.cpp", 57 "${frameworks_path}/ans/native/src/notification_do_not_disturb_date.cpp", 58 "${frameworks_path}/ans/native/src/notification_flags.cpp", 59 "${frameworks_path}/ans/native/src/notification_helper.cpp", 60 "${frameworks_path}/ans/native/src/notification_long_text_content.cpp", 61 "${frameworks_path}/ans/native/src/notification_media_content.cpp", 62 "${frameworks_path}/ans/native/src/notification_multiline_content.cpp", 63 "${frameworks_path}/ans/native/src/notification_normal_content.cpp", 64 "${frameworks_path}/ans/native/src/notification_picture_content.cpp", 65 "${frameworks_path}/ans/native/src/notification_request.cpp", 66 "${frameworks_path}/ans/native/src/notification_slot.cpp", 67 "${frameworks_path}/ans/native/src/notification_slot_group.cpp", 68 "${frameworks_path}/ans/native/src/notification_sorting.cpp", 69 "${frameworks_path}/ans/native/src/notification_sorting_map.cpp", 70 "${frameworks_path}/ans/native/src/notification_subscribe_info.cpp", 71 "${frameworks_path}/ans/native/src/notification_subscriber.cpp", 72 "${frameworks_path}/ans/native/src/notification_template.cpp", 73 "${frameworks_path}/ans/native/src/notification_user_input.cpp", 74 "${frameworks_path}/ans/native/src/reminder_helper.cpp", 75 "${frameworks_path}/ans/native/src/reminder_request.cpp", 76 "${frameworks_path}/ans/native/src/reminder_request_alarm.cpp", 77 "${frameworks_path}/ans/native/src/reminder_request_calendar.cpp", 78 "${frameworks_path}/ans/native/src/reminder_request_timer.cpp", 79 "${frameworks_path}/ans/native/src/reminder_store.cpp", 80 ] 81 82 configs = [ ":private_config" ] 83 84 public_configs = [ ":public_ans_core_config" ] 85 86 deps = [ 87 "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native", 88 "//third_party/jsoncpp:jsoncpp", 89 "//utils/native/base:utils", 90 ] 91 92 external_deps = [ 93 "ability_base:want", 94 "ability_base:zuri", 95 "ability_runtime:wantagent_innerkits", 96 "bundle_framework:appexecfwk_base", 97 "hiviewdfx_hilog_native:libhilog", 98 "ipc:ipc_core", 99 "multimedia_image_standard:image_native", 100 "native_appdatamgr:native_rdb", 101 "os_account_standard:os_account_innerkits", 102 "samgr_standard:samgr_proxy", 103 "time_native:time_service", 104 ] 105 106 part_name = "ans_standard" 107 subsystem_name = "notification" 108} 109