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 47 cflags_cc = [ 48 "-fstack-protector", 49 "-D_FORTIFY_SOURCE=2", 50 "-O2", 51 ] 52 53 configs = [ ":pasteboard_client_config" ] 54 public_configs = [ ":pasteboard_client_config" ] 55 deps = [ 56 "${pasteboard_root_path}/framework/tlv:pasteboard_tlv", 57 "${pasteboard_root_path}/framework/uri:pasteboard_uri", 58 ] 59 60 external_deps = [ 61 "ability_base:want", 62 "ability_base:zuri", 63 "ability_runtime:wantagent_innerkits", 64 "app_file_service:fileuri_native", 65 "c_utils:utils", 66 "hilog:libhilog", 67 "hisysevent:libhisysevent", 68 "hitrace:hitrace_meter", 69 "image_framework:image_native", 70 "ipc:ipc_core", 71 "samgr:samgr_proxy", 72 "time_service:time_client", 73 ] 74 75 subsystem_name = "distributeddatamgr" 76 innerapi_tags = [ "platformsdk" ] 77 part_name = "pasteboard" 78} 79