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 = [ "../../include" ] 41 42 configs = [ ":native_module_config" ] 43 44 sources = [ 45 "../common.cpp", 46 "../common_convert_content.cpp", 47 "../common_convert_liveview.cpp", 48 "../common_convert_notification.cpp", 49 "../common_convert_request.cpp", 50 "../common_utils.cpp", 51 "../slot.cpp", 52 "native_module.cpp", 53 "publish.cpp", 54 "reminder_common.cpp", 55 ] 56 57 deps = [ 58 "${frameworks_module_ans_path}:ans_innerkits", 59 "${frameworks_module_reminder_path}:reminder_innerkits", 60 ] 61 62 external_deps = [ 63 "ability_base:want", 64 "ability_base:zuri", 65 "ability_runtime:abilitykit_native", 66 "ability_runtime:napi_common", 67 "ability_runtime:napi_wantagent_common", 68 "ability_runtime:wantagent_innerkits", 69 "access_token:libaccesstoken_sdk", 70 "access_token:libtokenid_sdk", 71 "c_utils:utils", 72 "hilog:libhilog", 73 "image_framework:image", 74 "ipc:ipc_single", 75 "libuv:uv", 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 ] 101 102 configs = [ ":native_module_config" ] 103 104 sources = [ 105 "../common.cpp", 106 "../common_utils.cpp", 107 "../manager/napi_slot.cpp", 108 "../slot.cpp", 109 "native_module_manager.cpp", 110 "publish.cpp", 111 "reminder_common.cpp", 112 ] 113 114 deps = [ 115 "${frameworks_module_ans_path}:ans_innerkits", 116 "${frameworks_module_reminder_path}:reminder_innerkits", 117 ] 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:napi_wantagent_common", 125 "ability_runtime:wantagent_innerkits", 126 "access_token:libaccesstoken_sdk", 127 "access_token:libtokenid_sdk", 128 "c_utils:utils", 129 "hilog:libhilog", 130 "image_framework:image", 131 "ipc:ipc_single", 132 "libuv:uv", 133 "napi:ace_napi", 134 "relational_store:native_rdb", 135 ] 136 137 relative_install_dir = "module" 138 subsystem_name = "${subsystem_name}" 139 part_name = "${component_name}" 140} 141