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