19c6d7c21Sopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd. 29c6d7c21Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 39c6d7c21Sopenharmony_ci# you may not use this file except in compliance with the License. 49c6d7c21Sopenharmony_ci# You may obtain a copy of the License at 59c6d7c21Sopenharmony_ci# 69c6d7c21Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 79c6d7c21Sopenharmony_ci# 89c6d7c21Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 99c6d7c21Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 109c6d7c21Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 119c6d7c21Sopenharmony_ci# See the License for the specific language governing permissions and 129c6d7c21Sopenharmony_ci# limitations under the License. 139c6d7c21Sopenharmony_ci 149c6d7c21Sopenharmony_ciconfig("broadcast_public") { 159c6d7c21Sopenharmony_ci include_dirs = [ 169c6d7c21Sopenharmony_ci "//commonlibrary/utils_lite/include", 179c6d7c21Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast", 189c6d7c21Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 199c6d7c21Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr/adapter", 209c6d7c21Sopenharmony_ci ] 219c6d7c21Sopenharmony_ci} 229c6d7c21Sopenharmony_ci 239c6d7c21Sopenharmony_ciif (ohos_kernel_type == "liteos_m" || ohos_kernel_type == "uniproton") { 249c6d7c21Sopenharmony_ci static_library("broadcast") { 259c6d7c21Sopenharmony_ci sources = [ 269c6d7c21Sopenharmony_ci "source/broadcast_service.c", 279c6d7c21Sopenharmony_ci "source/pub_sub_feature.c", 289c6d7c21Sopenharmony_ci "source/pub_sub_implement.c", 299c6d7c21Sopenharmony_ci ] 309c6d7c21Sopenharmony_ci public_configs = [ ":broadcast_public" ] 319c6d7c21Sopenharmony_ci include_dirs = [] 329c6d7c21Sopenharmony_ci } 339c6d7c21Sopenharmony_ci} 349c6d7c21Sopenharmony_ci 359c6d7c21Sopenharmony_ciif (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { 369c6d7c21Sopenharmony_ci shared_library("broadcast") { 379c6d7c21Sopenharmony_ci sources = [ 389c6d7c21Sopenharmony_ci "source/broadcast_service.c", 399c6d7c21Sopenharmony_ci "source/pub_sub_feature.c", 409c6d7c21Sopenharmony_ci "source/pub_sub_implement.c", 419c6d7c21Sopenharmony_ci ] 429c6d7c21Sopenharmony_ci public_configs = [ ":broadcast_public" ] 439c6d7c21Sopenharmony_ci configs -= [ "//build/lite/config:language_c" ] 449c6d7c21Sopenharmony_ci cflags_c = [ 459c6d7c21Sopenharmony_ci "-std=c11", 469c6d7c21Sopenharmony_ci "-Wall", 479c6d7c21Sopenharmony_ci ] 489c6d7c21Sopenharmony_ci include_dirs = [ "//third_party/bounds_checking_function/include" ] 499c6d7c21Sopenharmony_ci public_deps = [ 509c6d7c21Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 519c6d7c21Sopenharmony_ci "//third_party/bounds_checking_function:libsec_shared", 529c6d7c21Sopenharmony_ci ] 539c6d7c21Sopenharmony_ci } 549c6d7c21Sopenharmony_ci} 55