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 "${data_service_path}/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 branch_protector_ret = "pac_ret" 45 sanitize = { 46 cfi = true 47 cfi_cross_dso = true 48 debug = false 49 } 50 sources = [ 51 "backuprule/backup_rule_manager.cpp", 52 "checker/checker_manager.cpp", 53 "cloud/asset_loader.cpp", 54 "cloud/cloud_db.cpp", 55 "cloud/cloud_event.cpp", 56 "cloud/cloud_extra_data.cpp", 57 "cloud/cloud_info.cpp", 58 "cloud/cloud_server.cpp", 59 "cloud/cloud_share_event.cpp", 60 "cloud/make_query_event.cpp", 61 "cloud/schema_meta.cpp", 62 "cloud/sharing_center.cpp", 63 "cloud/subscription.cpp", 64 "cloud/sync_event.cpp", 65 "directory/directory_manager.cpp", 66 "dump/dump_manager.cpp", 67 "eventcenter/event.cpp", 68 "eventcenter/event_center.cpp", 69 "feature/feature_system.cpp", 70 "feature/static_acts.cpp", 71 "metadata/appid_meta_data.cpp", 72 "metadata/capability_meta_data.cpp", 73 "metadata/capability_range.cpp", 74 "metadata/corrupted_meta_data.cpp", 75 "metadata/matrix_meta_data.cpp", 76 "metadata/meta_data.cpp", 77 "metadata/meta_data_manager.cpp", 78 "metadata/secret_key_meta_data.cpp", 79 "metadata/store_meta_data.cpp", 80 "metadata/store_meta_data_local.cpp", 81 "metadata/strategy_meta_data.cpp", 82 "metadata/user_meta_data.cpp", 83 "metadata/version_meta_data.cpp", 84 "serializable/serializable.cpp", 85 "snapshot/bind_event.cpp", 86 "snapshot/snapshot.cpp", 87 "store/auto_cache.cpp", 88 "utils/anonymous.cpp", 89 "utils/block_integer.cpp", 90 "utils/constant.cpp", 91 "utils/converter.cpp", 92 "utils/crypto.cpp", 93 "utils/ref_count.cpp", 94 ] 95 cflags = [ "-Wno-multichar" ] 96 97 cflags_cc = [ "-fvisibility=hidden" ] 98 99 configs = [ ":module_config" ] 100 101 public_configs = [ ":module_public_config" ] 102 103 deps = [ "//third_party/openssl:libcrypto_shared" ] 104 105 external_deps = [ 106 "access_token:libaccesstoken_sdk", 107 "c_utils:utils", 108 "hilog:libhilog", 109 ] 110 subsystem_name = "distributeddatamgr" 111 112 part_name = "datamgr_service" 113 defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ] 114} 115