1# Copyright (c) 2023 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 visibility += [ "//foundation/distributeddatamgr/pasteboard/test/fuzztest/pasteboardclient_fuzzer/*" ] 20 include_dirs = [ 21 "include", 22 "${pasteboard_service_path}/core/include", 23 "${pasteboard_service_path}/dfx/src", 24 "${pasteboard_service_path}/zidl/include", 25 "${pasteboard_utils_path}/native/include", 26 "//commonlibrary/c_utils/base/include", 27 "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 28 "//foundation/distributeddatamgr/pasteboard/framework/tlv", 29 "//foundation/distributeddatamgr/pasteboard/framework/uri", 30 "//foundation/filemanagement/app_file_service/interfaces/innerkits/remote_file_share/native", 31 ] 32} 33 34ohos_shared_library("pasteboard_client") { 35 sources = [ 36 "${pasteboard_service_path}/dfx/src/hiview_adapter.cpp", 37 "${pasteboard_service_path}/zidl/src/pasteboard_observer_stub.cpp", 38 "${pasteboard_service_path}/zidl/src/pasteboard_service_proxy.cpp", 39 "src/paste_data.cpp", 40 "src/paste_data_record.cpp", 41 "src/pasteboard_client.cpp", 42 "src/pasteboard_load_callback.cpp", 43 "src/pasteboard_observer.cpp", 44 "src/pasteboard_web_controller.cpp", 45 ] 46 configs = [ ":pasteboard_client_config" ] 47 public_configs = [ ":pasteboard_client_config" ] 48 deps = [ 49 "//foundation/distributeddatamgr/pasteboard/framework/tlv:pasteboard_tlv", 50 "//foundation/distributeddatamgr/pasteboard/framework/uri:pasteboard_uri", 51 52 # "//third_party/jsoncpp:jsoncpp", 53 ] 54 55 external_deps = [ 56 "ability_base:want", 57 "ability_base:zuri", 58 "ability_runtime:wantagent_innerkits", 59 "app_file_service:fileuri_native", 60 "c_utils:utils", 61 "hilog:libhilog", 62 "hisysevent:libhisysevent", 63 "hitrace:hitrace_meter", 64 "image_framework:image_native", 65 "ipc:ipc_core", 66 "samgr:samgr_proxy", 67 "time_service:time_client", 68 ] 69 70 subsystem_name = "distributeddatamgr" 71 innerapi_tags = [ "platformsdk" ] 72 part_name = "pasteboard" 73} 74