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("//build/ohos.gni") 15import("//foundation/distributeddatamgr/pasteboard/pasteboard.gni") 16 17config("pasteboard_client_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "${pasteboard_service_path}/core/include", 22 "${pasteboard_service_path}/zidl/include", 23 "${pasteboard_utils_path}/native/include", 24 "//commonlibrary/c_utils/base/include", 25 "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 26 "//foundation/distributeddatamgr/pasteboard/framework/tlv", 27 "//foundation/distributeddatamgr/pasteboard/framework/uri", 28 "//foundation/filemanagement/app_file_service/interfaces/innerkits/remote_file_share/native", 29 ] 30} 31 32ohos_shared_library("pasteboard_client") { 33 sources = [ 34 "${pasteboard_service_path}/zidl/src/pasteboard_observer_stub.cpp", 35 "${pasteboard_service_path}/zidl/src/pasteboard_service_proxy.cpp", 36 "src/paste_data.cpp", 37 "src/paste_data_record.cpp", 38 "src/pasteboard_client.cpp", 39 "src/pasteboard_observer.cpp", 40 ] 41 configs = [ ":pasteboard_client_config" ] 42 public_configs = [ ":pasteboard_client_config" ] 43 deps = [ 44 "//foundation/distributeddatamgr/pasteboard/framework/tlv:pasteboard_tlv", 45 "//foundation/distributeddatamgr/pasteboard/framework/uri:pasteboard_uri", 46 47 # "//third_party/jsoncpp:jsoncpp", 48 ] 49 50 external_deps = [ 51 "ability_base:want", 52 "ability_base:zuri", 53 "c_utils:utils", 54 "hitrace_native:hitrace_meter", 55 "hiviewdfx_hilog_native:libhilog", 56 "ipc:ipc_core", 57 "multimedia_image_framework:image_native", 58 "samgr:samgr_proxy", 59 ] 60 61 subsystem_name = "distributeddatamgr" 62 part_name = "pasteboard" 63} 64