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 = [ ":distributeddatasvc" ] 18} 19config("module_public_config") { 20 visibility = [ ":*" ] 21 include_dirs = [ 22 "backup/include", 23 "bootstrap/include", 24 "config/include", 25 "crypto/include", 26 "datashare", 27 "directory/include", 28 "kvdb", 29 "matrix/include", 30 "object", 31 "permission/include", 32 "rdb", 33 "//third_party/json/single_include", 34 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include", 35 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src", 36 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include", 37 "//foundation/distributeddatamgr/data_share/frameworks/native/common/include", 38 "//foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include", 39 "//foundation/distributeddatamgr/data_share/interfaces/inner_api/consumer/include", 40 "//foundation/distributeddatamgr/kv_store/frameworks/common", 41 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include", 42 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include", 43 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/object/include", 44 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include", 45 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/", 46 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/", 47 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/relational", 48 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include", 49 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include", 50 ] 51} 52 53ohos_shared_library("distributeddatasvc") { 54 include_dirs = [ 55 "//foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include", 56 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/distributeddb", 57 ] 58 sources = [ 59 "backup/src/backup_manager.cpp", 60 "bootstrap/src/bootstrap.cpp", 61 "config/src/config_factory.cpp", 62 "config/src/model/backup_config.cpp", 63 "config/src/model/checker_config.cpp", 64 "config/src/model/component_config.cpp", 65 "config/src/model/directory_config.cpp", 66 "config/src/model/global_config.cpp", 67 "config/src/model/network_config.cpp", 68 "config/src/model/protocol_config.cpp", 69 "crypto/src/crypto_manager.cpp", 70 "data_share/bundle_mgr_proxy.cpp", 71 "data_share/data_share_service_impl.cpp", 72 "data_share/data_share_service_stub.cpp", 73 "data_share/permission_proxy.cpp", 74 "data_share/rdb_adaptor.cpp", 75 "data_share/uri_utils.cpp", 76 "directory/src/directory_manager.cpp", 77 "kvdb/auth_delegate.cpp", 78 "kvdb/executor_factory.cpp", 79 "kvdb/kvdb_exporter.cpp", 80 "kvdb/kvdb_service_impl.cpp", 81 "kvdb/kvdb_service_stub.cpp", 82 "kvdb/kvstore_sync_manager.cpp", 83 "kvdb/query_helper.cpp", 84 "kvdb/ref_count.cpp", 85 "kvdb/store_cache.cpp", 86 "kvdb/upgrade.cpp", 87 "kvdb/user_delegate.cpp", 88 "matrix/src/device_matrix.cpp", 89 "matrix/src/matrix_event.cpp", 90 "object/object_data_listener.cpp", 91 "object/object_manager.cpp", 92 "object/object_service_impl.cpp", 93 "object/object_service_stub.cpp", 94 "permission/src/permit_delegate.cpp", 95 "rdb/rdb_result_set_impl.cpp", 96 "rdb/rdb_result_set_stub.cpp", 97 "rdb/rdb_service_impl.cpp", 98 "rdb/rdb_service_stub.cpp", 99 "rdb/rdb_store_observer_impl.cpp", 100 "rdb/rdb_syncer.cpp", 101 ] 102 cflags = [ "-Wno-multichar" ] 103 104 cflags_cc = [ "-fvisibility=hidden" ] 105 106 configs = [ ":module_public_config" ] 107 108 deps = [ 109 "//foundation/ability/ability_runtime/interfaces/inner_api/dataobs_manager:dataobs_manager", 110 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter:distributeddata_adapter", 111 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/utils:distributeddata_utils_static", 112 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework:distributeddatasvcfwk", 113 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb", 114 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata:distributeddata_inner", 115 ] 116 117 external_deps = [ 118 "ability_base:zuri", 119 "access_token:libaccesstoken_sdk", 120 "bundle_framework:appexecfwk_base", 121 "bundle_framework:appexecfwk_core", 122 "c_utils:utils", 123 "data_share:datashare_common", 124 "device_auth:deviceauth_sdk", 125 "hiviewdfx_hilog_native:libhilog", 126 "huks:libhukssdk", 127 "ipc:ipc_core", 128 "relational_store:native_rdb", 129 "relational_store:rdb_data_share_adapter", 130 "samgr:samgr_proxy", 131 ] 132 subsystem_name = "distributeddatamgr" 133 134 part_name = "datamgr_service" 135}