1# Copyright (c) 2021 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 17config("distributeddata_adapter_private_config") { 18 visibility = [ ":*" ] 19 include_dirs = [] 20 21 cflags = [ "-Wno-multichar" ] 22 23 cflags_cc = [ "-fvisibility=hidden" ] 24 defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ] 25} 26 27config("distributeddata_adapter_public_config") { 28 visibility = [ ":*" ] 29 30 include_dirs = [ 31 "include/log", 32 "include/dfx", 33 "include/communicator", 34 "include/autils", 35 "include/utils", 36 "include", 37 "${kv_store_path}/interfaces/innerkits/distributeddata/include/", 38 "${kv_store_common_path}", 39 ] 40} 41 42ohos_shared_library("distributeddata_adapter") { 43 branch_protector_ret = "pac_ret" 44 sanitize = { 45 cfi = true 46 cfi_cross_dso = true 47 debug = false 48 boundary_sanitize = true 49 integer_overflow = true 50 ubsan = true 51 } 52 sources = [] 53 54 configs = [ ":distributeddata_adapter_private_config" ] 55 deps = [ 56 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account:distributeddata_account_static", 57 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator:distributeddata_communicator_static", 58 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx:distributeddata_dfx_static", 59 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/permission:distributeddata_permission_static", 60 ] 61 62 external_deps = [ 63 "c_utils:utils", 64 "hilog:libhilog", 65 "hisysevent:libhisysevent", 66 "hitrace:hitrace_meter", 67 "hitrace:libhitracechain", 68 ] 69 70 public_configs = [ ":distributeddata_adapter_public_config" ] 71 72 subsystem_name = "distributeddatamgr" 73 part_name = "datamgr_service" 74} 75