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