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("//build/ohos_var.gni") 15import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni") 16 17group("build_module") { 18 deps = [ ":opencloudextension" ] 19} 20config("module_public_config") { 21 visibility = [ ":*" ] 22 include_dirs = [ 23 "../../framework/include", 24 "${kv_store_common_path}", 25 ] 26} 27 28ohos_shared_library("opencloudextension") { 29 include_dirs = [ "../ylong_cloud_extension/include" ] 30 sources = [ 31 "asset_loader_impl.cpp", 32 "cloud_cursor_impl.cpp", 33 "cloud_db_impl.cpp", 34 "cloud_server_impl.cpp", 35 "extension_util.cpp", 36 ] 37 branch_protector_ret = "pac_ret" 38 sanitize = { 39 ubsan = true 40 boundary_sanitize = true 41 cfi = true 42 cfi_cross_dso = true 43 debug = false 44 } 45 cflags = [ "-Wno-multichar" ] 46 47 cflags_cc = [ "-fvisibility=hidden" ] 48 49 configs = [ ":module_public_config" ] 50 51 deps = [ 52 "../../framework:distributeddatasvcfwk", 53 "../ylong_cloud_extension:ylong_cloud_extension", 54 ] 55 56 external_deps = [ 57 "access_token:libaccesstoken_sdk", 58 "hilog:libhilog", 59 "kv_store:distributeddata_inner", 60 ] 61 subsystem_name = "distributeddatamgr" 62 part_name = "datamgr_service" 63} 64