153c3577eSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 253c3577eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 353c3577eSopenharmony_ci# you may not use this file except in compliance with the License. 453c3577eSopenharmony_ci# You may obtain a copy of the License at 553c3577eSopenharmony_ci# 653c3577eSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 753c3577eSopenharmony_ci# 853c3577eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 953c3577eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1053c3577eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1153c3577eSopenharmony_ci# See the License for the specific language governing permissions and 1253c3577eSopenharmony_ci# limitations under the License. 1353c3577eSopenharmony_ciimport("//build/ohos.gni") 1453c3577eSopenharmony_ciimport("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni") 1553c3577eSopenharmony_ci 1653c3577eSopenharmony_ciohos_static_library("distributeddata_broadcaster_static") { 1753c3577eSopenharmony_ci branch_protector_ret = "pac_ret" 1853c3577eSopenharmony_ci sanitize = { 1953c3577eSopenharmony_ci cfi = true 2053c3577eSopenharmony_ci cfi_cross_dso = true 2153c3577eSopenharmony_ci debug = false 2253c3577eSopenharmony_ci boundary_sanitize = true 2353c3577eSopenharmony_ci ubsan = true 2453c3577eSopenharmony_ci } 2553c3577eSopenharmony_ci sources = [ 2653c3577eSopenharmony_ci "src/broadcast_sender.cpp", 2753c3577eSopenharmony_ci "src/broadcast_sender_impl.cpp", 2853c3577eSopenharmony_ci ] 2953c3577eSopenharmony_ci 3053c3577eSopenharmony_ci include_dirs = [ 3153c3577eSopenharmony_ci "../include/broadcaster", 3253c3577eSopenharmony_ci "../include/log", 3353c3577eSopenharmony_ci "./src", 3453c3577eSopenharmony_ci "${kv_store_path}/interfaces/innerkits/distributeddata/include", 3553c3577eSopenharmony_ci "${kv_store_common_path}", 3653c3577eSopenharmony_ci ] 3753c3577eSopenharmony_ci 3853c3577eSopenharmony_ci cflags_cc = [ "-fvisibility=hidden" ] 3953c3577eSopenharmony_ci 4053c3577eSopenharmony_ci external_deps = [ 4153c3577eSopenharmony_ci "ability_base:base", 4253c3577eSopenharmony_ci "ability_base:want", 4353c3577eSopenharmony_ci "bundle_framework:appexecfwk_base", 4453c3577eSopenharmony_ci "c_utils:utils", 4553c3577eSopenharmony_ci "common_event_service:cesfwk_innerkits", 4653c3577eSopenharmony_ci "hilog:libhilog", 4753c3577eSopenharmony_ci "ipc:ipc_core", 4853c3577eSopenharmony_ci ] 4953c3577eSopenharmony_ci subsystem_name = "distributeddatamgr" 5053c3577eSopenharmony_ci part_name = "datamgr_service" 5153c3577eSopenharmony_ci defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ] 5253c3577eSopenharmony_ci} 53