• 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.
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    "//foundation/multimedia/image_framework/interfaces/kits/js/common/include/",
49    "include",
50    "//third_party/node/src",
51    "//third_party/libuv/include",
52    "//third_party/json/single_include",
53  ]
54
55  configs = [ ":native_module_config" ]
56
57  sources = [
58    "src/ans_template.cpp",
59    "src/cancel.cpp",
60    "src/common.cpp",
61    "src/constant.cpp",
62    "src/display_badge.cpp",
63    "src/distributed.cpp",
64    "src/disturb_mode.cpp",
65    "src/enable_notification.cpp",
66    "src/get_active.cpp",
67    "src/init.cpp",
68    "src/publish.cpp",
69    "src/remove.cpp",
70    "src/slot.cpp",
71    "src/subscribe.cpp",
72    "src/unsubscribe.cpp",
73  ]
74
75  deps = [
76    "${ability_runtime_napi_path}/inner/napi_common:napi_common",
77    "${ability_runtime_path}/frameworks/native/appkit:app_context",
78    "${core_path}:ans_core",
79    "//foundation/multimedia/image_framework/interfaces/kits/js/common:image",
80  ]
81
82  external_deps = [
83    "ability_base:want",
84    "ability_base:zuri",
85    "ability_runtime:ability_manager",
86    "ability_runtime:abilitykit_native",
87    "ability_runtime:wantagent_innerkits",
88    "c_utils:utils",
89    "hiviewdfx_hilog_native:libhilog",
90    "napi:ace_napi",
91    "relational_store:native_rdb",
92  ]
93
94  relative_install_dir = "module"
95  subsystem_name = "${subsystem_name}"
96  part_name = "${component_name}"
97}
98