1# Copyright (c) 2022 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") 14 15config("objectstore_config") { 16 visibility = [ "//foundation/distributeddatamgr/data_object:*" ] 17 18 cflags = [ "-DHILOG_ENABLE" ] 19 20 include_dirs = [ 21 "../../frameworks/innerkitsimpl/include/adaptor", 22 "../../frameworks/innerkitsimpl/include/common", 23 "../../frameworks/innerkitsimpl/include/communicator", 24 "../../interfaces/innerkits", 25 "//third_party/bounds_checking_function/include", 26 ] 27} 28 29config("objectstore_public_config") { 30 visibility = [ ":*" ] 31 32 include_dirs = [ "." ] 33} 34 35ohos_shared_library("distributeddataobject_impl") { 36 part_name = "data_object" 37 sources = [ 38 "../../frameworks/innerkitsimpl/src/adaptor/client_adaptor.cpp", 39 "../../frameworks/innerkitsimpl/src/adaptor/distributed_object_impl.cpp", 40 "../../frameworks/innerkitsimpl/src/adaptor/distributed_object_store_impl.cpp", 41 "../../frameworks/innerkitsimpl/src/adaptor/flat_object_storage_engine.cpp", 42 "../../frameworks/innerkitsimpl/src/adaptor/flat_object_store.cpp", 43 "../../frameworks/innerkitsimpl/src/adaptor/object_callback.cpp", 44 "../../frameworks/innerkitsimpl/src/communicator/app_device_handler.cpp", 45 "../../frameworks/innerkitsimpl/src/communicator/app_pipe_handler.cpp", 46 "../../frameworks/innerkitsimpl/src/communicator/app_pipe_mgr.cpp", 47 "../../frameworks/innerkitsimpl/src/communicator/ark_communication_provider.cpp", 48 "../../frameworks/innerkitsimpl/src/communicator/communication_provider.cpp", 49 "../../frameworks/innerkitsimpl/src/communicator/communication_provider_impl.cpp", 50 "../../frameworks/innerkitsimpl/src/communicator/dev_manager.cpp", 51 "../../frameworks/innerkitsimpl/src/communicator/process_communicator_impl.cpp", 52 "../../frameworks/innerkitsimpl/src/communicator/softbus_adapter_standard.cpp", 53 ] 54 55 configs = [ ":objectstore_config" ] 56 57 ldflags = [ "-Wl,--exclude-libs,ALL" ] 58 59 deps = [ 60 "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb", 61 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk", 62 "//third_party/bounds_checking_function:libsec_shared", 63 "//third_party/libuv:uv", 64 ] 65 external_deps = [ 66 "c_utils:utils", 67 "dsoftbus:softbus_client", 68 "hitrace_native:hitrace_meter", 69 "hitrace_native:libhitracechain", 70 "hiviewdfx_hilog_native:libhilog", 71 "ipc:ipc_core", 72 "kv_store:distributeddata_inner", 73 "samgr:samgr_proxy", 74 ] 75 public_configs = [ ":objectstore_public_config" ] 76 relative_install_dir = "module/data" 77 subsystem_name = "distributeddatamgr" 78} 79