1bc03f14fSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2bc03f14fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3bc03f14fSopenharmony_ci# you may not use this file except in compliance with the License. 4bc03f14fSopenharmony_ci# You may obtain a copy of the License at 5bc03f14fSopenharmony_ci# 6bc03f14fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7bc03f14fSopenharmony_ci# 8bc03f14fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9bc03f14fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10bc03f14fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11bc03f14fSopenharmony_ci# See the License for the specific language governing permissions and 12bc03f14fSopenharmony_ci# limitations under the License. 13bc03f14fSopenharmony_ciimport("//build/ohos.gni") 14bc03f14fSopenharmony_ciimport("//build/ohos_var.gni") 15bc03f14fSopenharmony_ci 16bc03f14fSopenharmony_ciconfig("module_public_config") { 17bc03f14fSopenharmony_ci visibility = [ ":*" ] 18bc03f14fSopenharmony_ci include_dirs = [ 19bc03f14fSopenharmony_ci "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 20bc03f14fSopenharmony_ci "//foundation/distributeddatamgr/pasteboard/framework/tlv", 21bc03f14fSopenharmony_ci "//foundation/distributeddatamgr/pasteboard/framework/uri", 22bc03f14fSopenharmony_ci "//foundation/distributeddatamgr/pasteboard/utils/native/include", 23bc03f14fSopenharmony_ci "./", 24bc03f14fSopenharmony_ci "../innerkits/include", 25bc03f14fSopenharmony_ci ] 26bc03f14fSopenharmony_ci} 27bc03f14fSopenharmony_ci 28bc03f14fSopenharmony_ciohos_static_library("pasteboard_uri") { 29bc03f14fSopenharmony_ci branch_protector_ret = "pac_ret" 30bc03f14fSopenharmony_ci sanitize = { 31bc03f14fSopenharmony_ci ubsan = true 32bc03f14fSopenharmony_ci boundary_sanitize = true 33bc03f14fSopenharmony_ci cfi = true 34bc03f14fSopenharmony_ci cfi_cross_dso = true 35bc03f14fSopenharmony_ci debug = false 36bc03f14fSopenharmony_ci } 37bc03f14fSopenharmony_ci sources = [ 38bc03f14fSopenharmony_ci "copy_uri_handler.cpp", 39bc03f14fSopenharmony_ci "paste_uri_handler.cpp", 40bc03f14fSopenharmony_ci "uri_handler.cpp", 41bc03f14fSopenharmony_ci ] 42bc03f14fSopenharmony_ci cflags = [ "-Wno-multichar" ] 43bc03f14fSopenharmony_ci 44bc03f14fSopenharmony_ci cflags_cc = [ "-fvisibility=hidden" ] 45bc03f14fSopenharmony_ci 46bc03f14fSopenharmony_ci configs = [ ":module_public_config" ] 47bc03f14fSopenharmony_ci 48bc03f14fSopenharmony_ci public_configs = [ ":module_public_config" ] 49bc03f14fSopenharmony_ci deps = [] 50bc03f14fSopenharmony_ci external_deps = [ 51bc03f14fSopenharmony_ci "app_file_service:remote_file_share_native", 52bc03f14fSopenharmony_ci "c_utils:utils", 53bc03f14fSopenharmony_ci "file_api:remote_uri_native", 54bc03f14fSopenharmony_ci "hilog:libhilog", 55bc03f14fSopenharmony_ci "image_framework:image_native", 56bc03f14fSopenharmony_ci "ipc:ipc_core", 57bc03f14fSopenharmony_ci "os_account:os_account_innerkits", 58bc03f14fSopenharmony_ci ] 59bc03f14fSopenharmony_ci 60bc03f14fSopenharmony_ci public_external_deps = [ "udmf:udmf_client" ] 61bc03f14fSopenharmony_ci 62bc03f14fSopenharmony_ci subsystem_name = "distributeddatamgr" 63bc03f14fSopenharmony_ci part_name = "pasteboard" 64bc03f14fSopenharmony_ci} 65