• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("reminderagent") {
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    "//third_party/node/src",
36    "//third_party/libuv/include",
37  ]
38
39  configs = [ ":native_module_config" ]
40
41  sources = [
42    "../common.cpp",
43    "../slot.cpp",
44    "native_module.cpp",
45    "publish.cpp",
46    "reminder_common.cpp",
47  ]
48
49  deps = [
50    "${ability_runtime_napi_path}/inner/napi_common:napi_common",
51    "${core_path}:ans_core",
52    "//foundation/multimedia/image_framework/interfaces/kits/js/common:image",
53  ]
54
55  external_deps = [
56    "ability_base:want",
57    "ability_base:zuri",
58    "ability_runtime:abilitykit_native",
59    "ability_runtime:wantagent_innerkits",
60    "c_utils:utils",
61    "hiviewdfx_hilog_native:libhilog",
62    "napi:ace_napi",
63    "relational_store:native_rdb",
64  ]
65
66  relative_install_dir = "module"
67  subsystem_name = "${subsystem_name}"
68  part_name = "${component_name}"
69}
70
71# used for error code
72ohos_shared_library("reminderagentmanager") {
73  include_dirs = [
74    "${ability_runtime_path}/interfaces/kits/native/ability/native",
75    "${ability_runtime_napi_path}/inner/napi_common",
76    "//foundation/multimedia/image_framework/interfaces/kits/js/common/include/",
77    "../../include",
78    "../../include/manager",
79    "//third_party/node/src",
80    "//third_party/libuv/include",
81  ]
82
83  configs = [ ":native_module_config" ]
84
85  sources = [
86    "../common.cpp",
87    "../manager/napi_slot.cpp",
88    "../slot.cpp",
89    "native_module_manager.cpp",
90    "publish.cpp",
91    "reminder_common.cpp",
92  ]
93
94  deps = [
95    "${ability_runtime_napi_path}/inner/napi_common:napi_common",
96    "${core_path}:ans_core",
97    "//foundation/multimedia/image_framework/interfaces/kits/js/common:image",
98  ]
99
100  external_deps = [
101    "ability_base:want",
102    "ability_base:zuri",
103    "ability_runtime:abilitykit_native",
104    "ability_runtime:wantagent_innerkits",
105    "c_utils:utils",
106    "hiviewdfx_hilog_native:libhilog",
107    "napi:ace_napi",
108    "relational_store:native_rdb",
109  ]
110
111  relative_install_dir = "module"
112  subsystem_name = "${subsystem_name}"
113  part_name = "${component_name}"
114}
115