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 sources = [ 74 "./native/src/calendar_env.cpp", 75 "./native/src/data_share_helper_manager.cpp", 76 "./native/src/event_filter.cpp", 77 "./native/src/native_calendar.cpp", 78 "./native/src/native_calendar_manager.cpp", 79 "./native/src/native_util.cpp", 80 ] 81 82 deps = [] 83 84 public_configs = [ ":calendarmanager_public_config" ] 85 86 external_deps = [ 87 "ability_base:want", 88 "ability_base:zuri", 89 "ability_runtime:ability_context_native", 90 "ability_runtime:ability_manager", 91 "ability_runtime:abilitykit_native", 92 "ability_runtime:data_ability_helper", 93 "ability_runtime:napi_base_context", 94 "c_utils:utils", 95 "data_share:datashare_common", 96 "data_share:datashare_consumer", 97 "hilog:libhilog", 98 "ipc:ipc_single", 99 "napi:ace_napi", 100 ] 101 102 public_deps = [] 103 part_name = "calendar_data" 104 subsystem_name = "applications" 105} 106