• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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.
13import("//build/ohos.gni")
14import("//build/ohos_var.gni")
15import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni")
16config("module_public_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    ".",
20    "strategies",
21    "common",
22    "data",
23    "//third_party/json/single_include",
24    "../../adapter/include",
25    "../../app/src",
26    "../../framework/include",
27    "${datashare_path}/frameworks/native/common/include",
28    "${datashare_path}/interfaces/inner_api/common/include",
29    "${datashare_path}/interfaces/inner_api/consumer/include",
30    "../crypto/include",
31  ]
32}
33group("build_module") {
34  deps = [ ":data_share_service" ]
35}
36ohos_shared_library("data_share_service") {
37  branch_protector_ret = "pac_ret"
38  sanitize = {
39    cfi = true
40    cfi_cross_dso = true
41    debug = false
42  }
43  sources = [
44    "common/app_connect_manager.cpp",
45    "common/base64_utils.cpp",
46    "common/bundle_mgr_proxy.cpp",
47    "common/db_delegate.cpp",
48    "common/div_strategy.cpp",
49    "common/extension_connect_adaptor.cpp",
50    "common/extension_mgr_proxy.cpp",
51    "common/kv_delegate.cpp",
52    "common/rdb_delegate.cpp",
53    "common/scheduler_manager.cpp",
54    "common/seq_strategy.cpp",
55    "common/uri_utils.cpp",
56    "data/published_data.cpp",
57    "data/resultset_json_formatter.cpp",
58    "data/template_data.cpp",
59    "data_share_obs_proxy.cpp",
60    "data_share_profile_config.cpp",
61    "data_share_service_impl.cpp",
62    "data_share_service_stub.cpp",
63    "data_share_silent_config.cpp",
64    "data_share_types_util.cpp",
65    "strategies/data_proxy/load_config_from_data_proxy_node_strategy.cpp",
66    "strategies/data_share/load_config_from_data_share_bundle_info_strategy.cpp",
67    "strategies/delete_strategy.cpp",
68    "strategies/general/check_is_data_proxy_strategy.cpp",
69    "strategies/general/check_is_single_app_strategy.cpp",
70    "strategies/general/cross_permission_strategy.cpp",
71    "strategies/general/empty_strategy.cpp",
72    "strategies/general/load_config_common_strategy.cpp",
73    "strategies/general/load_config_data_info_strategy.cpp",
74    "strategies/general/load_config_from_bundle_info_strategy.cpp",
75    "strategies/general/permission_strategy.cpp",
76    "strategies/general/process_single_app_user_cross_strategy.cpp",
77    "strategies/get_data_strategy.cpp",
78    "strategies/insert_strategy.cpp",
79    "strategies/publish_strategy.cpp",
80    "strategies/query_strategy.cpp",
81    "strategies/rdb_notify_strategy.cpp",
82    "strategies/subscribe_strategy.cpp",
83    "strategies/template_strategy.cpp",
84    "strategies/update_strategy.cpp",
85    "subscriber_managers/published_data_subscriber_manager.cpp",
86    "subscriber_managers/rdb_subscriber_manager.cpp",
87  ]
88  cflags = [ "-Wno-multichar" ]
89
90  cflags_cc = [ "-fvisibility=hidden" ]
91
92  configs = [ ":module_public_config" ]
93
94  deps = [
95    "../../adapter:distributeddata_adapter",
96    "../../adapter/utils:distributeddata_utils_static",
97    "../../framework:distributeddatasvcfwk",
98    "../../service:distributeddatasvc",
99  ]
100
101  external_deps = [
102    "ability_base:want",
103    "ability_base:zuri",
104    "ability_runtime:dataobs_manager",
105    "ability_runtime:extension_manager",
106    "access_token:libaccesstoken_sdk",
107    "access_token:libtokenid_sdk",
108    "bundle_framework:appexecfwk_base",
109    "bundle_framework:appexecfwk_core",
110    "c_utils:utils",
111    "common_event_service:cesfwk_innerkits",
112    "data_share:datashare_common",
113    "device_manager:devicemanagersdk",
114    "hilog:libhilog",
115    "ipc:ipc_core",
116    "kv_store:distributeddb",
117    "relational_store:native_rdb",
118    "relational_store:rdb_bms_adapter",
119    "relational_store:rdb_data_share_adapter",
120    "samgr:samgr_proxy",
121  ]
122  subsystem_name = "distributeddatamgr"
123
124  part_name = "datamgr_service"
125}
126