• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
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  ]
30  configs = [
31    "${ability_runtime_inner_api_path}/wantagent:wantagent_innerkits_public_config",
32    "${multimedia_path}/interfaces/innerkits:image_external_config",
33  ]
34}
35
36ohos_shared_library("ans_innerkits") {
37  include_dirs = [ "${inner_api_path}" ]
38
39  sources = [
40    "src/badge_number_callback_data.cpp",
41    "src/enabled_notification_callback_data.cpp",
42    "src/message_user.cpp",
43    "src/notification.cpp",
44    "src/notification_action_button.cpp",
45    "src/notification_basic_content.cpp",
46    "src/notification_bundle_option.cpp",
47    "src/notification_content.cpp",
48    "src/notification_conversational_content.cpp",
49    "src/notification_conversational_message.cpp",
50    "src/notification_distributed_options.cpp",
51    "src/notification_do_not_disturb_date.cpp",
52    "src/notification_flags.cpp",
53    "src/notification_helper.cpp",
54    "src/notification_long_text_content.cpp",
55    "src/notification_media_content.cpp",
56    "src/notification_multiline_content.cpp",
57    "src/notification_normal_content.cpp",
58    "src/notification_picture_content.cpp",
59    "src/notification_request.cpp",
60    "src/notification_slot.cpp",
61    "src/notification_sorting.cpp",
62    "src/notification_sorting_map.cpp",
63    "src/notification_subscribe_info.cpp",
64    "src/notification_subscriber.cpp",
65    "src/notification_template.cpp",
66    "src/notification_user_input.cpp",
67  ]
68
69  configs = [ "${core_path}:public_ans_core_config" ]
70
71  public_configs = [ ":ans_innerkits_public_config" ]
72
73  deps = [ "${core_path}:ans_core" ]
74
75  external_deps = [
76    "ability_base:want",
77    "ability_base:zuri",
78    "ability_runtime:wantagent_innerkits",
79    "c_utils:utils",
80    "eventhandler:libeventhandler",
81    "hilog:libhilog",
82    "hitrace:hitrace_meter",
83    "image_framework:image_native",
84    "ipc:ipc_core",
85    "relational_store:native_rdb",
86    "samgr:samgr_proxy",
87  ]
88
89  if (is_double_framework) {
90    cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ]
91  }
92
93  subsystem_name = "${subsystem_name}"
94  part_name = "${component_name}"
95}
96