# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni") config("module_private_config") { visibility = [ ":*" ] include_dirs = [ "../../../framework/include/", "../../../service/rdb/", ] defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ] } ohos_static_library("distributeddata_mock_static") { branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true debug = false } sources = [ "cursor_mock.cpp", "db_change_data_mock.cpp", "db_store_mock.cpp", "general_store_mock.cpp", "kv_store_nb_delegate_mock.cpp", ] external_deps = [ "kv_store:distributeddata_mgr", "kv_store:distributeddb", "relational_store:native_rdb", ] configs = [ ":module_private_config" ] subsystem_name = "distributeddatamgr" part_name = "datamgr_service" } ###############################################################################