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/distributed_notification_service/notification.gni") 15import("//build/ohos.gni") 16 17group("ans_client") { 18 deps = [ ":ans_innerkits" ] 19} 20 21config("ans_innerkits_public_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ 25 "${inner_api_path}", 26 "${core_path}/common/include", 27 "${core_path}/include", 28 "//third_party/json/single_include", 29 "//utils/system/safwk/native/include", 30 ] 31 configs = [ 32 "${ability_runtime_inner_api_path}/wantagent:wantagent_innerkits_public_config", 33 "//foundation/multimedia/image_framework/interfaces/innerkits:image_external_config", 34 ] 35} 36 37ohos_shared_library("ans_innerkits") { 38 include_dirs = [ 39 "${inner_api_path}", 40 "//utils/system/safwk/native/include", 41 ] 42 43 sources = [ 44 "src/enabled_notification_callback_data.cpp", 45 "src/message_user.cpp", 46 "src/notification.cpp", 47 "src/notification_action_button.cpp", 48 "src/notification_basic_content.cpp", 49 "src/notification_bundle_option.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_sorting.cpp", 65 "src/notification_sorting_map.cpp", 66 "src/notification_subscribe_info.cpp", 67 "src/notification_subscriber.cpp", 68 "src/notification_template.cpp", 69 "src/notification_user_input.cpp", 70 ] 71 72 configs = [ 73 "//commonlibrary/c_utils/base:utils_config", 74 "${core_path}:public_ans_core_config", 75 ] 76 77 public_configs = [ ":ans_innerkits_public_config" ] 78 79 deps = [ "${core_path}:ans_core" ] 80 81 external_deps = [ 82 "ability_base:want", 83 "ability_base:zuri", 84 "ability_runtime:wantagent_innerkits", 85 "c_utils:utils", 86 "hitrace_native:hitrace_meter", 87 "hiviewdfx_hilog_native:libhilog", 88 "ipc:ipc_core", 89 "multimedia_image_framework:image_native", 90 "relational_store:native_rdb", 91 "samgr:samgr_proxy", 92 ] 93 94 if (is_double_framework) { 95 cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ] 96 } 97 98 subsystem_name = "${subsystem_name}" 99 part_name = "${component_name}" 100} 101