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("//build/ohos.gni") 15 16config("calendarmanager_public_config") { 17 include_dirs = [ 18 "//foundation/arkui/napi/interfaces/kits", 19 "//third_party/node/src", 20 "//foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include", 21 "./common", 22 "./native/include", 23 "./napi/include", 24 ] 25} 26 27ohos_shared_library("calendarmanager") { 28 sources = [ 29 "./napi/src/calendar_enum_napi.cpp", 30 "./napi/src/calendar_manager_napi.cpp", 31 "./napi/src/calendar_napi.cpp", 32 "./napi/src/event_filter_napi.cpp", 33 "./napi/src/module_init.cpp", 34 "./napi/src/module_register.cpp", 35 "./napi/src/napi_env.cpp", 36 "./napi/src/napi_queue.cpp", 37 "./napi/src/napi_util.cpp", 38 "./native/src/calendar_env.cpp", 39 "./native/src/data_share_helper_manager.cpp", 40 "./native/src/event_filter.cpp", 41 "./native/src/native_calendar.cpp", 42 "./native/src/native_calendar_manager.cpp", 43 "./native/src/native_util.cpp", 44 ] 45 46 deps = [] 47 48 public_configs = [ ":calendarmanager_public_config" ] 49 50 external_deps = [ 51 "ability_base:want", 52 "ability_base:zuri", 53 "ability_runtime:ability_context_native", 54 "ability_runtime:ability_manager", 55 "ability_runtime:abilitykit_native", 56 "ability_runtime:data_ability_helper", 57 "ability_runtime:napi_base_context", 58 "c_utils:utils", 59 "data_share:datashare_common", 60 "data_share:datashare_consumer", 61 "hilog:libhilog", 62 "ipc:ipc_single", 63 "napi:ace_napi", 64 ] 65 66 public_deps = [] 67 relative_install_dir = "module" 68 part_name = "calendar_data" 69 subsystem_name = "applications" 70} 71 72ohos_static_library("calendarmanager_static") { 73 branch_protector_ret = "pac_ret" 74 sanitize = { 75 cfi = true 76 cfi_cross_dso = true 77 debug = false 78 } 79 sources = [ 80 "./native/src/calendar_env.cpp", 81 "./native/src/data_share_helper_manager.cpp", 82 "./native/src/event_filter.cpp", 83 "./native/src/native_calendar.cpp", 84 "./native/src/native_calendar_manager.cpp", 85 "./native/src/native_util.cpp", 86 ] 87 88 deps = [] 89 90 public_configs = [ ":calendarmanager_public_config" ] 91 92 external_deps = [ 93 "ability_base:want", 94 "ability_base:zuri", 95 "ability_runtime:ability_context_native", 96 "ability_runtime:ability_manager", 97 "ability_runtime:abilitykit_native", 98 "ability_runtime:data_ability_helper", 99 "ability_runtime:napi_base_context", 100 "c_utils:utils", 101 "data_share:datashare_common", 102 "data_share:datashare_consumer", 103 "hilog:libhilog", 104 "ipc:ipc_single", 105 "napi:ace_napi", 106 ] 107 108 public_deps = [] 109 part_name = "calendar_data" 110 subsystem_name = "applications" 111} 112