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") 15import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni") 16 17group("build_module") { 18 deps = [ ":distributeddatasvcfwk" ] 19} 20config("module_config") { 21 visibility = [ ":*" ] 22 include_dirs = [ 23 "include", 24 "//third_party/json/single_include", 25 "//third_party/openssl/include/", 26 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include", 27 "${kv_store_path}/interfaces/innerkits/distributeddata/include", 28 "${kv_store_common_path}", 29 "${kv_store_distributeddb_path}/interfaces/include/", 30 "${kv_store_distributeddb_path}/include/", 31 ] 32} 33 34config("module_public_config") { 35 visibility = [ ":*" ] 36 include_dirs = [ 37 "include", 38 "//third_party/json/single_include", 39 "${kv_store_common_path}", 40 ] 41} 42 43ohos_shared_library("distributeddatasvcfwk") { 44 sources = [ 45 "backuprule/backup_rule_manager.cpp", 46 "checker/checker_manager.cpp", 47 "cloud/asset_loader.cpp", 48 "cloud/cloud_db.cpp", 49 "cloud/cloud_event.cpp", 50 "cloud/cloud_info.cpp", 51 "cloud/cloud_server.cpp", 52 "cloud/schema_meta.cpp", 53 "cloud/subscription.cpp", 54 "cloud/sync_event.cpp", 55 "directory/directory_manager.cpp", 56 "eventcenter/event.cpp", 57 "eventcenter/event_center.cpp", 58 "feature/feature_system.cpp", 59 "metadata/appid_meta_data.cpp", 60 "metadata/capability_meta_data.cpp", 61 "metadata/capability_range.cpp", 62 "metadata/corrupted_meta_data.cpp", 63 "metadata/matrix_meta_data.cpp", 64 "metadata/meta_data.cpp", 65 "metadata/meta_data_manager.cpp", 66 "metadata/secret_key_meta_data.cpp", 67 "metadata/store_meta_data.cpp", 68 "metadata/store_meta_data_local.cpp", 69 "metadata/strategy_meta_data.cpp", 70 "metadata/user_meta_data.cpp", 71 "serializable/serializable.cpp", 72 "store/auto_cache.cpp", 73 "utils/anonymous.cpp", 74 "utils/block_integer.cpp", 75 "utils/constant.cpp", 76 "utils/converter.cpp", 77 "utils/crypto.cpp", 78 "utils/ref_count.cpp", 79 ] 80 cflags = [ "-Wno-multichar" ] 81 82 cflags_cc = [ "-fvisibility=hidden" ] 83 84 configs = [ ":module_config" ] 85 86 public_configs = [ ":module_public_config" ] 87 88 deps = [ "//third_party/openssl:libcrypto_shared" ] 89 90 external_deps = [ 91 "access_token:libaccesstoken_sdk", 92 "c_utils:utils", 93 "hilog:libhilog", 94 ] 95 subsystem_name = "distributeddatamgr" 96 97 part_name = "datamgr_service" 98 defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ] 99} 100