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_root_path}/adapter/pasteboard_progress", 23 "${pasteboard_service_path}/core/include", 24 "${pasteboard_service_path}/dfx/src", 25 "${pasteboard_service_path}/zidl/include", 26 "${pasteboard_utils_path}/native/include", 27 "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 28 "//foundation/distributeddatamgr/pasteboard/framework/tlv", 29 "//foundation/distributeddatamgr/pasteboard/framework/uri", 30 ] 31} 32 33ohos_shared_library("pasteboard_client") { 34 branch_protector_ret = "pac_ret" 35 sanitize = { 36 ubsan = true 37 boundary_sanitize = true 38 cfi = true 39 cfi_cross_dso = true 40 debug = false 41 } 42 sources = [ 43 "${pasteboard_root_path}/adapter/pasteboard_progress/pasteboard_progress.cpp", 44 "${pasteboard_service_path}/core/src/pasteboard_pattern.cpp", 45 "${pasteboard_service_path}/dfx/src/hiview_adapter.cpp", 46 "${pasteboard_service_path}/zidl/src/ipasteboard_client_death_observer.cpp", 47 "${pasteboard_service_path}/zidl/src/pasteboard_delay_getter_client.cpp", 48 "${pasteboard_service_path}/zidl/src/pasteboard_delay_getter_stub.cpp", 49 "${pasteboard_service_path}/zidl/src/pasteboard_entry_getter_client.cpp", 50 "${pasteboard_service_path}/zidl/src/pasteboard_entry_getter_stub.cpp", 51 "${pasteboard_service_path}/zidl/src/pasteboard_observer_stub.cpp", 52 "${pasteboard_service_path}/zidl/src/pasteboard_service_proxy.cpp", 53 "${pasteboard_service_path}/zidl/src/pasteboard_signal_stub.cpp", 54 "${pasteboard_utils_path}/native/src/pasteboard_time.cpp", 55 "src/convert_utils.cpp", 56 "src/paste_data.cpp", 57 "src/paste_data_entry.cpp", 58 "src/paste_data_record.cpp", 59 "src/pasteboard_client.cpp", 60 "src/pasteboard_copy.cpp", 61 "src/pasteboard_entry_getter.cpp", 62 "src/pasteboard_load_callback.cpp", 63 "src/pasteboard_observer.cpp", 64 "src/pasteboard_progress_signal.cpp", 65 "src/pasteboard_signal_callback.cpp", 66 "src/pasteboard_utils.cpp", 67 "src/pasteboard_web_controller.cpp", 68 ] 69 70 cflags_cc = [ 71 "-fstack-protector", 72 "-D_FORTIFY_SOURCE=2", 73 "-O2", 74 "-fvisibility=hidden", 75 ] 76 77 public_configs = [ ":pasteboard_client_config" ] 78 deps = [ 79 "${pasteboard_framework_path}:pasteboard_framework", 80 "${pasteboard_root_path}/framework/tlv:pasteboard_tlv", 81 "${pasteboard_root_path}/framework/uri:pasteboard_uri", 82 ] 83 84 external_deps = [ 85 "ability_base:want", 86 "ability_base:zuri", 87 "ability_runtime:ability_manager", 88 "ability_runtime:uri_permission_mgr", 89 "ability_runtime:wantagent_innerkits", 90 "access_token:libtokenid_sdk", 91 "app_file_service:fileuri_native", 92 "bundle_framework:appexecfwk_base", 93 "bundle_framework:appexecfwk_core", 94 "c_utils:utils", 95 "data_share:datashare_common", 96 "data_share:datashare_consumer", 97 "dfs_service:distributed_file_daemon_kit_inner", 98 "ffrt:libffrt", 99 "hilog:libhilog", 100 "hisysevent:libhisysevent", 101 "hitrace:hitrace_meter", 102 "image_framework:image_native", 103 "ipc:ipc_core", 104 "ipc:ipc_single", 105 "libuv:uv", 106 "libxml2:libxml2", 107 "samgr:samgr_proxy", 108 "time_service:time_client", 109 ] 110 public_external_deps = [ 111 "c_utils:utils", 112 "udmf:udmf_client", 113 ] 114 subsystem_name = "distributeddatamgr" 115 use_exceptions = true 116 innerapi_tags = [ "platformsdk" ] 117 part_name = "pasteboard" 118} 119