1# Copyright (c) 2021-2025 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("//base/notification/common_event_service/event.gni") 15import("//build/ohos.gni") 16 17cflags = [] 18 19config("cesfwk_innerkits_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [] 23 24 if (target_cpu == "arm") { 25 cflags += [ "-DBINDER_IPC_32BIT" ] 26 } 27} 28 29config("cesfwk_innerkits_public_config") { 30 visibility = [ ":*" ] 31 32 include_dirs = [ 33 "${ces_core_path}/include", 34 "${ces_innerkits_path}", 35 "${target_gen_dir}/../core", 36 ] 37} 38 39ohos_shared_library("cesfwk_innerkits") { 40 sanitize = { 41 integer_overflow = true 42 ubsan = true 43 boundary_sanitize = true 44 cfi = true 45 cfi_cross_dso = true 46 debug = false 47 } 48 branch_protector_ret = "pac_ret" 49 50 sources = [ 51 "${ces_native_path}/src/async_common_event_result.cpp", 52 "${ces_native_path}/src/common_event_data.cpp", 53 "${ces_native_path}/src/common_event_manager.cpp", 54 "${ces_native_path}/src/common_event_publish_info.cpp", 55 "${ces_native_path}/src/common_event_subscribe_info.cpp", 56 "${ces_native_path}/src/common_event_subscriber.cpp", 57 "${ces_native_path}/src/common_event_support.cpp", 58 "${ces_native_path}/src/matching_skills.cpp", 59 ] 60 61 configs = [ ":cesfwk_innerkits_config" ] 62 63 public_configs = [ ":cesfwk_innerkits_public_config" ] 64 65 deps = [ "${ces_core_path}:cesfwk_core" ] 66 67 external_deps = [ 68 "ability_base:want", 69 "c_utils:utils", 70 "eventhandler:libeventhandler", 71 "ffrt:libffrt", 72 "hilog:libhilog", 73 "ipc:ipc_core", 74 ] 75 76 public_external_deps = [ "ability_base:want" ] 77 78 subsystem_name = "notification" 79 innerapi_tags = [ 80 "platformsdk", 81 "sasdk", 82 ] 83 part_name = "common_event_service" 84} 85