• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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")
15import("//foundation/distributeddatamgr/data_share/datashare.gni")
16
17ohos_shared_library("datashare") {
18  include_dirs = [
19    "${datashare_napi_path}/dataShare/include",
20    "${datashare_common_napi_path}/include",
21    "${datashare_common_native_path}/include",
22    "${datashare_napi_path}/observer/include",
23  ]
24
25  sources = [
26    "${datashare_napi_path}/dataShare/src/async_call.cpp",
27    "${datashare_napi_path}/dataShare/src/napi_datashare_helper.cpp",
28    "${datashare_napi_path}/dataShare/src/napi_datashare_inner_observer.cpp",
29    "${datashare_napi_path}/dataShare/src/napi_datashare_observer.cpp",
30    "${datashare_napi_path}/dataShare/src/native_datashare_module.cpp",
31    "${datashare_napi_path}/observer/src/napi_observer.cpp",
32    "${datashare_napi_path}/observer/src/napi_subscriber_manager.cpp",
33  ]
34
35  deps = [
36    "${datashare_innerapi_path}:datashare_consumer",
37    "${datashare_innerapi_path}/common:datashare_common",
38    "//third_party/libuv:uv",
39  ]
40
41  external_deps = [
42    "ability_base:base",
43    "ability_base:want",
44    "ability_base:zuri",
45    "ability_runtime:abilitykit_native",
46    "ability_runtime:dataobs_manager",
47    "ability_runtime:napi_base_context",
48    "ability_runtime:napi_common",
49    "c_utils:utils",
50    "common_event_service:cesfwk_innerkits",
51    "hilog:libhilog",
52    "ipc:ipc_single",
53    "napi:ace_napi",
54  ]
55
56  relative_install_dir = "module/data"
57
58  subsystem_name = "distributeddatamgr"
59  part_name = "data_share"
60}
61
62ohos_shared_library("datasharepredicates") {
63  include_dirs = [
64    "${datashare_common_napi_path}/include",
65    "${datashare_common_native_path}/include",
66  ]
67
68  sources = [
69    "${datashare_common_napi_path}/src/datashare_predicates_proxy.cpp",
70    "${datashare_napi_path}/dataShare/src/native_datashare_predicates_module.cpp",
71  ]
72
73  deps = [
74    "${datashare_innerapi_path}:datashare_consumer",
75    "${datashare_innerapi_path}/common:datashare_common",
76  ]
77
78  external_deps = [
79    "c_utils:utils",
80    "hilog:libhilog",
81    "ipc:ipc_single",
82    "napi:ace_napi",
83  ]
84
85  relative_install_dir = "module/data"
86
87  subsystem_name = "distributeddatamgr"
88  part_name = "data_share"
89}
90