• 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.
13import("//build/ohos.gni")
14import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni")
15
16config("module_public_config") {
17  visibility = [ ":*" ]
18
19  include_dirs = [
20    "${data_service_path}/framework/include",
21    "${data_service_path}/adapter/include/communicator",
22    "${data_service_path}/adapter/include/dfx",
23    "${data_service_path}/service/udmf/lifecycle",
24    "${data_service_path}/service/udmf/permission",
25    "${data_service_path}/service/udmf/preprocess",
26    "${data_service_path}/service/udmf/store",
27    "${data_service_path}/service/udmf/utd",
28    "${data_service_path}/service/udmf",
29    "${data_service_path}/service/bootstrap/include",
30    "${device_manager_path}/interfaces/inner_kits/native_cpp/include",
31    "${file_service_path}/interfaces/innerkits/native/remote_file_share/include",
32    "${kv_store_path}/interfaces/innerkits/distributeddata/include",
33    "${kv_store_path}/framework/libs/distributeddb/interfaces/include",
34    "${kv_store_common_path}",
35    "${udmf_path}/framework/common",
36    "${udmf_path}/interfaces/innerkits/common",
37    "${udmf_path}/interfaces/innerkits/data",
38  ]
39}
40
41ohos_shared_library("udmf_server") {
42  branch_protector_ret = "pac_ret"
43  sanitize = {
44    cfi = true
45    cfi_cross_dso = true
46    debug = false
47  }
48  sources = [
49    "lifecycle/clean_on_startup.cpp",
50    "lifecycle/clean_on_timeout.cpp",
51    "lifecycle/lifecycle_manager.cpp",
52    "lifecycle/lifecycle_policy.cpp",
53    "permission/checker_manager.cpp",
54    "permission/data_checker.cpp",
55    "permission/uri_permission_manager.cpp",
56    "preprocess/preprocess_utils.cpp",
57    "store/runtime_store.cpp",
58    "store/store_cache.cpp",
59    "udmf_service_impl.cpp",
60    "udmf_service_stub.cpp",
61    "utd/custom_utd_installer.cpp",
62  ]
63
64  configs = [ ":module_public_config" ]
65
66  deps = [
67    "${data_service_path}/adapter:distributeddata_adapter",
68    "${data_service_path}/framework:distributeddatasvcfwk",
69    "${data_service_path}/service:distributeddatasvc",
70  ]
71
72  external_deps = [
73    "ability_base:zuri",
74    "ability_runtime:uri_permission_mgr",
75    "access_token:libaccesstoken_sdk",
76    "app_file_service:remote_file_share_native",
77    "bundle_framework:appexecfwk_base",
78    "bundle_framework:appexecfwk_core",
79    "c_utils:utils",
80    "hilog:libhilog",
81    "ipc:ipc_core",
82    "kv_store:distributeddb",
83    "safwk:system_ability_fwk",
84    "samgr:samgr_proxy",
85    "udmf:udmf_client",
86  ]
87
88  subsystem_name = "distributeddatamgr"
89
90  part_name = "datamgr_service"
91}
92