1# Copyright (c) 2023 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("//foundation/distributeddatamgr/data_share/datashare.gni") 15import("//foundation/distributeddatamgr/relational_store/relational_store.gni") 16 17config("rdb_bms_adapter_config") { 18 visibility = [ ":*" ] 19 if (!is_mingw && !is_mac) { 20 cflags_cc = [ "-fvisibility=hidden" ] 21 } 22 include_dirs = [ 23 "include", 24 "${relational_store_common_path}/include", 25 "${relational_store_innerapi_path}/rdb_bms_adaptor/include", 26 "${relational_store_innerapi_path}/rdb/include", 27 "${relational_store_native_path}/rdb/include", 28 "${relational_store_innerapi_path}/appdatafwk/include", 29 ] 30} 31 32config("rdb_bms_adapter_public_config") { 33 visibility = [ ":*" ] 34 include_dirs = [ 35 "include", 36 "${relational_store_innerapi_path}/appdatafwk/include", 37 ] 38} 39 40ohos_shared_library("rdb_bms_adapter") { 41 sources = [ 42 "${relational_store_native_path}/rdb_bms_adaptor/src/data_properties.cpp", 43 "${relational_store_native_path}/rdb_bms_adaptor/src/data_share_profile_info.cpp", 44 ] 45 46 configs = [ ":rdb_bms_adapter_config" ] 47 48 subsystem_name = "distributeddatamgr" 49 part_name = "relational_store" 50 51 public_deps = 52 [ "${relational_store_innerapi_path}/appdatafwk:relational_common_base" ] 53 54 external_deps = [ 55 "bundle_framework:appexecfwk_base", 56 "bundle_framework:appexecfwk_core", 57 "c_utils:utils", 58 "hilog:libhilog", 59 "resource_management:global_resmgr", 60 ] 61 62 public_configs = [ ":rdb_bms_adapter_public_config" ] 63 64 innerapi_tags = [ "platformsdk" ] 65} 66