• 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("//build/ohos_var.gni")
15
16group("build_module") {
17  deps = [ ":distributeddatasvcfwk" ]
18}
19config("module_public_config") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "include",
23    "//third_party/json/single_include",
24    "//third_party/openssl/include/",
25    "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include",
26    "//foundation/distributeddatamgr/kv_store/frameworks/common",
27    "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include",
28    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/",
29    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/",
30  ]
31}
32
33ohos_shared_library("distributeddatasvcfwk") {
34  sources = [
35    "backuprule/backup_rule_manager.cpp",
36    "checker/checker_manager.cpp",
37    "eventcenter/event.cpp",
38    "eventcenter/event_center.cpp",
39    "feature/feature_system.cpp",
40    "metadata/appid_meta_data.cpp",
41    "metadata/capability_meta_data.cpp",
42    "metadata/capability_range.cpp",
43    "metadata/corrupted_meta_data.cpp",
44    "metadata/matrix_meta_data.cpp",
45    "metadata/meta_data.cpp",
46    "metadata/meta_data_manager.cpp",
47    "metadata/secret_key_meta_data.cpp",
48    "metadata/store_meta_data.cpp",
49    "metadata/store_meta_data_local.cpp",
50    "metadata/strategy_meta_data.cpp",
51    "metadata/user_meta_data.cpp",
52    "serializable/serializable.cpp",
53    "utils/anonymous.cpp",
54    "utils/block_integer.cpp",
55    "utils/constant.cpp",
56    "utils/converter.cpp",
57    "utils/crypto.cpp",
58  ]
59  cflags = [ "-Wno-multichar" ]
60
61  cflags_cc = [ "-fvisibility=hidden" ]
62
63  configs = [ ":module_public_config" ]
64
65  deps = [ "//third_party/openssl:libcrypto_shared" ]
66
67  external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
68  subsystem_name = "distributeddatamgr"
69
70  part_name = "datamgr_service"
71}
72