1# Copyright (c) 2021 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. 13 14import("//base/notification/distributed_notification_service/notification.gni") 15import("//build/ohos.gni") 16 17config("ans_distributed_config") { 18 include_dirs = [ 19 "${services_path}/distributed/include", 20 "//commonlibrary/c_utils/base/include", 21 ] 22} 23 24ohos_shared_library("libans_distributed") { 25 sources = [ 26 "src/distributed_database.cpp", 27 "src/distributed_database_callback.cpp", 28 "src/distributed_device_callback.cpp", 29 "src/distributed_flow_control.cpp", 30 "src/distributed_notification_manager.cpp", 31 "src/distributed_preferences.cpp", 32 "src/distributed_preferences_database.cpp", 33 "src/distributed_preferences_info.cpp", 34 "src/distributed_screen_status_manager.cpp", 35 ] 36 37 include_dirs = [ "include" ] 38 39 configs = [ 40 ":ans_distributed_config", 41 "${core_path}:public_ans_core_config", 42 "${frameworks_module_ans_path}:ans_innerkits_public_config", 43 ] 44 45 deps = [ "${core_path}:ans_core" ] 46 47 external_deps = [ 48 "ability_base:want", 49 "ability_base:zuri", 50 "c_utils:utils", 51 "eventhandler:libeventhandler", 52 "hitrace_native:hitrace_meter", 53 "hiviewdfx_hilog_native:libhilog", 54 "kv_store:distributeddata_inner", 55 ] 56 57 subsystem_name = "${subsystem_name}" 58 part_name = "${component_name}" 59} 60