• 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("napi_reminder") {
18  deps = [
19    "src/reminder:reminderagent",
20    "src/reminder:reminderagentmanager",
21  ]
22}
23
24group("napi_notification") {
25  deps = [
26    ":notification",
27    "src/manager:notificationmanager",
28    "src/subscribe:notificationsubscribe",
29  ]
30}
31
32cflags = []
33
34config("native_module_config") {
35  visibility = [ ":*" ]
36
37  include_dirs = []
38
39  if (target_cpu == "arm") {
40    cflags += [ "-DBINDER_IPC_32BIT" ]
41  }
42}
43
44ohos_shared_library("notification") {
45  include_dirs = [
46    "${ability_runtime_path}/interfaces/kits/native/ability/native",
47    "${ability_runtime_napi_path}/inner/napi_common",
48    "include",
49    "//third_party/node/src",
50    "//third_party/libuv/include",
51    "//third_party/json/single_include",
52  ]
53
54  configs = [ ":native_module_config" ]
55
56  sources = [
57    "src/ans_template.cpp",
58    "src/cancel.cpp",
59    "src/common.cpp",
60    "src/constant.cpp",
61    "src/display_badge.cpp",
62    "src/distributed.cpp",
63    "src/disturb_mode.cpp",
64    "src/enable_notification.cpp",
65    "src/get_active.cpp",
66    "src/init.cpp",
67    "src/publish.cpp",
68    "src/remove.cpp",
69    "src/slot.cpp",
70    "src/subscribe.cpp",
71    "src/unsubscribe.cpp",
72  ]
73
74  deps = [ "${core_path}:ans_core" ]
75
76  external_deps = [
77    "ability_base:want",
78    "ability_base:zuri",
79    "ability_runtime:ability_manager",
80    "ability_runtime:abilitykit_native",
81    "ability_runtime:app_context",
82    "ability_runtime:napi_common",
83    "ability_runtime:wantagent_innerkits",
84    "c_utils:utils",
85    "hilog:libhilog",
86    "image_framework:image",
87    "napi:ace_napi",
88    "relational_store:native_rdb",
89  ]
90
91  relative_install_dir = "module"
92  subsystem_name = "${subsystem_name}"
93  part_name = "${component_name}"
94}
95