# Copyright (c) 2022 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/data_share/datashare.gni") ohos_shared_library("datashare") { include_dirs = [ "${datashare_napi_path}/dataShare/include", "${datashare_common_napi_path}/include", "${datashare_common_native_path}/include", ] sources = [ "${datashare_napi_path}/dataShare/src/async_call.cpp", "${datashare_napi_path}/dataShare/src/napi_datashare_helper.cpp", "${datashare_napi_path}/dataShare/src/napi_datashare_inner_observer.cpp", "${datashare_napi_path}/dataShare/src/napi_datashare_observer.cpp", "${datashare_napi_path}/dataShare/src/native_datashare_module.cpp", ] deps = [ "${ability_runtime_inner_api_path}/dataobs_manager:dataobs_manager", "${ability_runtime_napi_path}/inner/napi_common:napi_common", "${datashare_innerapi_path}/common:datashare_common", "//third_party/libuv:uv", ] external_deps = [ "ability_base:base", "ability_base:want", "ability_base:zuri", "ability_runtime:abilitykit_native", "ability_runtime:napi_base_context", "c_utils:utils", "data_share:datashare_common", "data_share:datashare_consumer", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "napi:ace_napi", "relational_store:native_appdatafwk", ] relative_install_dir = "module/data" subsystem_name = "distributeddatamgr" part_name = "data_share" } ohos_shared_library("datasharepredicates") { include_dirs = [ "${datashare_common_napi_path}/include", "${datashare_common_native_path}/include", ] sources = [ "${datashare_common_napi_path}/src/datashare_predicates_proxy.cpp", "${datashare_napi_path}/dataShare/src/native_datashare_predicates_module.cpp", ] deps = [ "${datashare_innerapi_path}/common:datashare_common" ] external_deps = [ "c_utils:utils", "data_share:datashare_common", "data_share:datashare_consumer", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "napi:ace_napi", ] relative_install_dir = "module/data" subsystem_name = "distributeddatamgr" part_name = "data_share" }