1# Copyright (c) 2022-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. 13import("//build/ohos.gni") 14import("//build/ohos_var.gni") 15 16config("module_public_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ 19 "//foundation/distributeddatamgr/pasteboard/framework/framework/include", 20 "//foundation/distributeddatamgr/pasteboard/framework/tlv", 21 "//foundation/distributeddatamgr/pasteboard/utils/native/include", 22 ] 23} 24 25ohos_static_library("pasteboard_tlv") { 26 branch_protector_ret = "pac_ret" 27 sanitize = { 28 integer_overflow = true 29 ubsan = true 30 boundary_sanitize = true 31 cfi = true 32 cfi_cross_dso = true 33 debug = false 34 } 35 sources = [ 36 "tlv_readable.cpp", 37 "tlv_utils.cpp", 38 "tlv_writeable.cpp", 39 ] 40 cflags = [ 41 "-Wno-multichar", 42 "-fvisibility=hidden", 43 "-O2", 44 ] 45 cflags_cc = [ 46 "-fstack-protector", 47 "-fvisibility=hidden", 48 "-O2", 49 ] 50 51 configs = [ ":module_public_config" ] 52 53 public_configs = [ ":module_public_config" ] 54 deps = [] 55 external_deps = [ 56 "c_utils:utils", 57 "hilog:libhilog", 58 "ipc:ipc_core", 59 "udmf:udmf_client", 60 ] 61 subsystem_name = "distributeddatamgr" 62 part_name = "pasteboard" 63} 64