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 sanitize = { 31 integer_overflow = true 32 ubsan = true 33 boundary_sanitize = true 34 cfi = true 35 cfi_cross_dso = true 36 debug = false 37 } 38 branch_protector_ret = "pac_ret" 39 40 include_dirs = [ 41 "../../include", 42 "//third_party/node/src", 43 "//third_party/libuv/include", 44 ] 45 46 configs = [ ":native_module_config" ] 47 48 sources = [ 49 "../common.cpp", 50 "../common_convert_content.cpp", 51 "../common_convert_liveview.cpp", 52 "../common_convert_notification.cpp", 53 "../common_convert_request.cpp", 54 "../common_utils.cpp", 55 "../slot.cpp", 56 "native_module.cpp", 57 "publish.cpp", 58 "reminder_common.cpp", 59 ] 60 61 deps = [ 62 "${frameworks_module_ans_path}:ans_innerkits", 63 "${frameworks_module_reminder_path}:reminder_innerkits", 64 ] 65 66 external_deps = [ 67 "ability_base:want", 68 "ability_base:zuri", 69 "ability_runtime:abilitykit_native", 70 "ability_runtime:napi_common", 71 "ability_runtime:napi_wantagent_common", 72 "ability_runtime:wantagent_innerkits", 73 "access_token:libaccesstoken_sdk", 74 "access_token:libtokenid_sdk", 75 "c_utils:utils", 76 "hilog:libhilog", 77 "image_framework:image", 78 "ipc:ipc_single", 79 "napi:ace_napi", 80 "relational_store:native_rdb", 81 ] 82 83 relative_install_dir = "module" 84 subsystem_name = "${subsystem_name}" 85 part_name = "${component_name}" 86} 87 88# used for error code 89ohos_shared_library("reminderagentmanager") { 90 sanitize = { 91 integer_overflow = true 92 ubsan = true 93 boundary_sanitize = true 94 cfi = true 95 cfi_cross_dso = true 96 debug = false 97 } 98 branch_protector_ret = "pac_ret" 99 100 include_dirs = [ 101 "../../include", 102 "../../include/manager", 103 "//third_party/node/src", 104 "//third_party/libuv/include", 105 ] 106 107 configs = [ ":native_module_config" ] 108 109 sources = [ 110 "../common.cpp", 111 "../common_utils.cpp", 112 "../manager/napi_slot.cpp", 113 "../slot.cpp", 114 "native_module_manager.cpp", 115 "publish.cpp", 116 "reminder_common.cpp", 117 ] 118 119 deps = [ 120 "${frameworks_module_ans_path}:ans_innerkits", 121 "${frameworks_module_reminder_path}:reminder_innerkits", 122 ] 123 124 external_deps = [ 125 "ability_base:want", 126 "ability_base:zuri", 127 "ability_runtime:abilitykit_native", 128 "ability_runtime:napi_common", 129 "ability_runtime:napi_wantagent_common", 130 "ability_runtime:wantagent_innerkits", 131 "access_token:libaccesstoken_sdk", 132 "access_token:libtokenid_sdk", 133 "c_utils:utils", 134 "hilog:libhilog", 135 "image_framework:image", 136 "ipc:ipc_single", 137 "napi:ace_napi", 138 "relational_store:native_rdb", 139 ] 140 141 relative_install_dir = "module" 142 subsystem_name = "${subsystem_name}" 143 part_name = "${component_name}" 144} 145