• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "./common",
19    "./native/include",
20    "./napi/include",
21  ]
22}
23
24ohos_shared_library("calendarmanager") {
25  sources = [
26    "./napi/src/calendar_enum_napi.cpp",
27    "./napi/src/calendar_manager_napi.cpp",
28    "./napi/src/calendar_napi.cpp",
29    "./napi/src/event_filter_napi.cpp",
30    "./napi/src/module_init.cpp",
31    "./napi/src/module_register.cpp",
32    "./napi/src/napi_env.cpp",
33    "./napi/src/napi_queue.cpp",
34    "./napi/src/napi_util.cpp",
35    "./native/src/calendar_env.cpp",
36    "./native/src/data_share_helper_manager.cpp",
37    "./native/src/event_filter.cpp",
38    "./native/src/native_calendar.cpp",
39    "./native/src/native_calendar_manager.cpp",
40    "./native/src/native_util.cpp",
41  ]
42
43  deps = []
44
45  public_configs = [ ":calendarmanager_public_config" ]
46
47  external_deps = [
48    "ability_base:want",
49    "ability_base:zuri",
50    "ability_runtime:ability_context_native",
51    "ability_runtime:ability_manager",
52    "ability_runtime:abilitykit_native",
53    "ability_runtime:data_ability_helper",
54    "ability_runtime:napi_base_context",
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  ]
62
63  public_deps = []
64  relative_install_dir = "module"
65  part_name = "calendar_data"
66  subsystem_name = "applications"
67}
68
69ohos_static_library("calendarmanager_static") {
70  sources = [
71    "./native/src/calendar_env.cpp",
72    "./native/src/data_share_helper_manager.cpp",
73    "./native/src/event_filter.cpp",
74    "./native/src/native_calendar.cpp",
75    "./native/src/native_calendar_manager.cpp",
76    "./native/src/native_util.cpp",
77  ]
78
79  deps = []
80
81  public_configs = [ ":calendarmanager_public_config" ]
82
83  external_deps = [
84    "ability_base:want",
85    "ability_base:zuri",
86    "ability_runtime:ability_context_native",
87    "ability_runtime:ability_manager",
88    "ability_runtime:abilitykit_native",
89    "ability_runtime:data_ability_helper",
90    "ability_runtime:napi_base_context",
91    "c_utils:utils",
92    "data_share:datashare_common",
93    "data_share:datashare_consumer",
94    "hilog:libhilog",
95    "ipc:ipc_single",
96    "napi:ace_napi",
97  ]
98
99  public_deps = []
100  part_name = "calendar_data"
101  subsystem_name = "applications"
102}
103