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") 15 16config("distributeddata_adapter_private_config") { 17 visibility = [ ":*" ] 18 include_dirs = [] 19 20 cflags = [ "-Wno-multichar" ] 21 22 cflags_cc = [ "-fvisibility=hidden" ] 23} 24 25config("distributeddata_adapter_public_config") { 26 visibility = [ "//foundation/distributeddatamgr/datamgr_service:*" ] 27 28 include_dirs = [ 29 "include/log", 30 "include/dfx", 31 "include/communicator", 32 "include/autils", 33 "include/utils", 34 "include", 35 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/", 36 "//foundation/distributeddatamgr/kv_store/frameworks/common", 37 ] 38} 39 40ohos_shared_library("distributeddata_adapter") { 41 sources = [] 42 43 configs = [ ":distributeddata_adapter_private_config" ] 44 deps = [ 45 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account:distributeddata_account_static", 46 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/autils:distributeddata_autils_static", 47 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator:distributeddata_communicator_static", 48 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx:distributeddata_dfx_static", 49 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/permission:distributeddata_permission_static", 50 ] 51 52 external_deps = [ 53 "c_utils:utils", 54 "hisysevent_native:libhisysevent", 55 "hitrace_native:hitrace_meter", 56 "hitrace_native:libhitracechain", 57 "hiviewdfx_hilog_native:libhilog", 58 ] 59 60 public_configs = [ ":distributeddata_adapter_public_config" ] 61 62 subsystem_name = "distributeddatamgr" 63 part_name = "datamgr_service" 64} 65