• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
17cflags = []
18
19config("native_module_config") {
20  visibility = [ ":*" ]
21
22  include_dirs = []
23
24  if (target_cpu == "arm") {
25    cflags += [ "-DBINDER_IPC_32BIT" ]
26  }
27}
28
29ohos_shared_library("notificationmanager") {
30  include_dirs = [
31    "${ability_runtime_path}/interfaces/kits/native/ability/native",
32    "${ability_runtime_napi_path}/inner/napi_common",
33    "//foundation/multimedia/image_framework/interfaces/kits/js/common/include/",
34    "../../include",
35    "../../include/manager",
36    "//third_party/node/src",
37  ]
38
39  configs = [ ":native_module_config" ]
40
41  sources = [
42    "../ans_template.cpp",
43    "../cancel.cpp",
44    "../common.cpp",
45    "../constant.cpp",
46    "../display_badge.cpp",
47    "../distributed.cpp",
48    "../disturb_mode.cpp",
49    "../enable_notification.cpp",
50    "../get_active.cpp",
51    "../publish.cpp",
52    "../slot.cpp",
53    "init_module.cpp",
54    "napi_cancel.cpp",
55    "napi_display_badge.cpp",
56    "napi_distributed.cpp",
57    "napi_disturb_mode.cpp",
58    "napi_enable_notification.cpp",
59    "napi_get_active.cpp",
60    "napi_publish.cpp",
61    "napi_remove_group.cpp",
62    "napi_slot.cpp",
63    "napi_template.cpp",
64  ]
65
66  deps = [
67    "${ability_runtime_napi_path}/inner/napi_common:napi_common",
68    "${ability_runtime_path}/frameworks/native/appkit:app_context",
69    "${core_path}:ans_core",
70    "//foundation/multimedia/image_framework/interfaces/kits/js/common:image",
71  ]
72
73  external_deps = [
74    "ability_base:want",
75    "ability_base:zuri",
76    "ability_runtime:ability_manager",
77    "ability_runtime:abilitykit_native",
78    "ability_runtime:wantagent_innerkits",
79    "c_utils:utils",
80    "hiviewdfx_hilog_native:libhilog",
81    "napi:ace_napi",
82    "relational_store:native_rdb",
83  ]
84
85  relative_install_dir = "module"
86  subsystem_name = "${subsystem_name}"
87  part_name = "${component_name}"
88}
89