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