1# Copyright (c) 2025 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/config/components/ets_frontend/es2abc_config.gni") 15import("//build/ohos.gni") 16 17ohos_shared_library("cj_calendar_manager_ffi") { 18 include_dirs = [ 19 "../common", 20 "../native/include", 21 "include", 22 ] 23 configs = [ "//build/config/compiler:exceptions" ] 24 25 sources = [ 26 "../native/src/calendar_env.cpp", 27 "src/cj_calendar_env.cpp", 28 "src/cj_data_share_helper_manager.cpp", 29 "../native/src/event_filter.cpp", 30 "src/cj_native_calendar.cpp", 31 "src/cj_native_calendar_manager.cpp", 32 "src/cj_native_util.cpp", 33 "src/calendar_manager_ffi.cpp", 34 "src/cj_calendar.cpp", 35 "src/cj_calendar_manager.cpp", 36 "src/cj_event_filter.cpp" 37 ] 38 39 deps = [] 40 41 defines = [] 42 43 external_deps = [ 44 "ability_base:want", 45 "ability_base:zuri", 46 "ability_runtime:ability_connect_callback_stub", 47 "ability_runtime:ability_context_native", 48 "ability_runtime:ability_manager", 49 "ability_runtime:abilitykit_native", 50 "ability_runtime:data_ability_helper", 51 "ability_runtime:napi_base_context", 52 "access_token:libaccesstoken_sdk", 53 "access_token:libprivacy_sdk", 54 "ace_engine:ace_uicontent", 55 "c_utils:utils", 56 "data_share:datashare_common", 57 "data_share:datashare_consumer", 58 "hilog:libhilog", 59 "ipc:ipc_single", 60 "napi:ace_napi", 61 "napi:cj_bind_ffi", 62 "napi:cj_bind_native", 63 ] 64 65 innerapi_tags = [ "platformsdk" ] 66 subsystem_name = "applications" 67 part_name = "calendar_data" 68} 69