• 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/udmf/udmf.gni")
15
16config("udmf_client_config") {
17  include_dirs = [
18    "${udmf_interfaces_path}/innerkits/client",
19    "${udmf_interfaces_path}/innerkits/common",
20    "${udmf_interfaces_path}/innerkits/data",
21
22    "${udmf_framework_path}/common",
23    "${udmf_framework_path}/service",
24    "${kv_store_path}/frameworks/common",
25    "//third_party/libuv/include",
26    "//third_party/node/src",
27    "${kv_store_path}/frameworks/innerkitsimpl/distributeddatafwk/include",
28    "${kv_store_path}/frameworks/innerkitsimpl/distributeddatafwk/src",
29    "${kv_store_path}/interfaces/innerkits/distributeddata/include",
30  ]
31}
32
33ohos_shared_library("udmf_client") {
34  sources = [
35    "${udmf_framework_path}/common/tlv_util.cpp",
36    "${udmf_framework_path}/common/udmf_types_util.cpp",
37    "${udmf_framework_path}/innerkitsimpl/client/udmf_client.cpp",
38    "${udmf_framework_path}/innerkitsimpl/common/unified_key.cpp",
39    "${udmf_framework_path}/innerkitsimpl/common/unified_meta.cpp",
40    "${udmf_framework_path}/innerkitsimpl/data/application_defined_record.cpp",
41    "${udmf_framework_path}/innerkitsimpl/data/audio.cpp",
42    "${udmf_framework_path}/innerkitsimpl/data/file.cpp",
43    "${udmf_framework_path}/innerkitsimpl/data/folder.cpp",
44    "${udmf_framework_path}/innerkitsimpl/data/html.cpp",
45    "${udmf_framework_path}/innerkitsimpl/data/image.cpp",
46    "${udmf_framework_path}/innerkitsimpl/data/link.cpp",
47    "${udmf_framework_path}/innerkitsimpl/data/plain_text.cpp",
48    "${udmf_framework_path}/innerkitsimpl/data/system_defined_appitem.cpp",
49    "${udmf_framework_path}/innerkitsimpl/data/system_defined_form.cpp",
50    "${udmf_framework_path}/innerkitsimpl/data/system_defined_pixelmap.cpp",
51    "${udmf_framework_path}/innerkitsimpl/data/system_defined_record.cpp",
52    "${udmf_framework_path}/innerkitsimpl/data/text.cpp",
53    "${udmf_framework_path}/innerkitsimpl/data/unified_data.cpp",
54    "${udmf_framework_path}/innerkitsimpl/data/unified_record.cpp",
55    "${udmf_framework_path}/innerkitsimpl/data/video.cpp",
56    "${udmf_framework_path}/service/udmf_service_client.cpp",
57    "${udmf_framework_path}/service/udmf_service_proxy.cpp",
58  ]
59
60  public_configs = [ ":udmf_client_config" ]
61
62  external_deps = [
63    "access_token:libaccesstoken_sdk",
64    "bundle_framework:appexecfwk_core",
65    "c_utils:utils",
66    "hilog:libhilog",
67    "hitrace:hitrace_meter",
68    "hitrace:libhitracechain",
69    "ipc:ipc_core",
70    "kv_store:distributeddata_inner",
71    "samgr:samgr_proxy",
72  ]
73
74  innerapi_tags = [ "platformsdk" ]
75  subsystem_name = "distributeddatamgr"
76
77  part_name = "udmf"
78}
79