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/ans_standard/notification.gni") 15import("//build/ohos.gni") 16 17config("ans_distributed_config") { 18 include_dirs = [ 19 "${services_path}/distributed/include", 20 "//utils/native/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_path}/ans/native: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 "distributeddatamgr:distributeddata_inner", 51 "eventhandler:libeventhandler", 52 "hiviewdfx_hilog_native:libhilog", 53 "ipc:ipc_core", 54 "multimedia_image_standard:image_native", 55 "utils_base:utils", 56 ] 57 58 subsystem_name = "notification" 59 part_name = "ans_standard" 60} 61