1# Copyright (c) 2024 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/datamgr_service/datamgr_service.gni") 15 16config("rdb_public_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ 20 "${data_service_path}/adapter/include", 21 "${data_service_path}/service/common", 22 "${data_service_path}/service/bootstrap/include", 23 "${data_service_path}/service/kvdb", 24 "${data_service_path}/service/matrix/include", 25 "${data_service_path}/service/permission/include", 26 "${data_service_path}/service/cloud", 27 "${data_service_path}/framework/include", 28 "${data_service_path}/framework/include/dfx", 29 "${data_service_path}/adapter/include/utils", 30 "${data_service_path}/adapter/include/communicator", 31 ] 32} 33 34ohos_source_set("distributeddata_rdb") { 35 branch_protector_ret = "pac_ret" 36 sanitize = { 37 ubsan = true 38 boundary_sanitize = true 39 cfi = true 40 cfi_cross_dso = true 41 debug = false 42 } 43 sources = [ 44 "cache_cursor.cpp", 45 "rdb_asset_loader.cpp", 46 "rdb_cloud.cpp", 47 "rdb_cursor.cpp", 48 "rdb_general_store.cpp", 49 "rdb_hiview_adapter.cpp", 50 "rdb_notifier_proxy.cpp", 51 "rdb_query.cpp", 52 "rdb_result_set_impl.cpp", 53 "rdb_result_set_stub.cpp", 54 "rdb_schema_config.cpp", 55 "rdb_service_impl.cpp", 56 "rdb_service_stub.cpp", 57 "rdb_watcher.cpp", 58 ] 59 60 configs = [ ":rdb_public_config" ] 61 62 cflags = [ 63 "-D_LIBCPP_HAS_COND_CLOCKWAIT", 64 "-Werror", 65 "-Oz", 66 ] 67 68 deps = [ 69 "${data_service_path}/service/bootstrap:distributeddata_bootstrap", 70 "${data_service_path}/service/common:distributeddata_common", 71 "${data_service_path}/service/matrix:distributeddata_matrix", 72 "${data_service_path}/service/permission:distributeddata_permit", 73 ] 74 75 external_deps = [ 76 "access_token:libaccesstoken_sdk", 77 "access_token:libtokenid_sdk", 78 "bundle_framework:appexecfwk_base", 79 "bundle_framework:appexecfwk_core", 80 "c_utils:utils", 81 "device_auth:deviceauth_sdk", 82 "device_manager:devicemanagersdk", 83 "dmsfwk:distributed_sdk", 84 "hicollie:libhicollie", 85 "hilog:libhilog", 86 "hisysevent:libhisysevent", 87 "huks:libhukssdk", 88 "ipc:ipc_core", 89 "kv_store:datamgr_common", 90 "kv_store:distributeddb", 91 "relational_store:native_rdb", 92 "resource_management:global_resmgr", 93 "samgr:samgr_proxy", 94 ] 95 cflags_cc = [ 96 "-fvisibility=hidden", 97 "-Oz", 98 ] 99 subsystem_name = "distributeddatamgr" 100 101 part_name = "datamgr_service" 102} 103