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