1# Copyright (c) 2021 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/ces_standard/event.gni") 15import("//build/ohos.gni") 16 17cflags = [] 18 19config("cesfwk_core_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [] 23 24 if (target_cpu == "arm") { 25 cflags += [ "-DBINDER_IPC_32BIT" ] 26 } 27 28 defines = [ 29 "EVENT_LOG_TAG = \"CesFwk\"", 30 "LOG_DOMAIN = 0xD008800", 31 ] 32} 33 34config("cesfwk_core_public_config") { 35 visibility = [ ":*" ] 36 37 include_dirs = [ 38 "${ces_core_path}/include", 39 "${ces_innerkits_path}/include", 40 "//utils/native/base/include", 41 "//utils/system/safwk/native/include", 42 ] 43} 44 45ohos_shared_library("cesfwk_core") { 46 sources = [ 47 "${ces_core_path}/src/common_event.cpp", 48 "${ces_core_path}/src/common_event_death_recipient.cpp", 49 "${ces_core_path}/src/common_event_listener.cpp", 50 "${ces_core_path}/src/common_event_proxy.cpp", 51 "${ces_core_path}/src/common_event_stub.cpp", 52 "${ces_core_path}/src/event_receive_proxy.cpp", 53 "${ces_core_path}/src/event_receive_stub.cpp", 54 "${ces_native_path}/src/async_common_event_result.cpp", 55 "${ces_native_path}/src/common_event_data.cpp", 56 "${ces_native_path}/src/common_event_publish_info.cpp", 57 "${ces_native_path}/src/common_event_subscribe_info.cpp", 58 "${ces_native_path}/src/common_event_subscriber.cpp", 59 "${ces_native_path}/src/matching_skills.cpp", 60 ] 61 62 configs = [ ":cesfwk_core_config" ] 63 64 public_configs = [ ":cesfwk_core_public_config" ] 65 66 deps = [ 67 "${ces_common_path}:libevent_common", 68 "//utils/native/base:utils", 69 ] 70 71 external_deps = [ 72 "ability_base:want", 73 "bundle_framework:appexecfwk_base", 74 "eventhandler:libeventhandler", 75 "hiviewdfx_hilog_native:libhilog", 76 "ipc:ipc_core", 77 "samgr_standard:samgr_proxy", 78 ] 79 80 subsystem_name = "notification" 81 part_name = "ces_standard" 82} 83