# Copyright (c) 2021-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/hiviewdfx/hiview/hiview.gni") import("//build/ohos.gni") config("sys_event_service_ohos_private_config") { include_dirs = [ "." ] } config("sys_event_service_ohos_public_config") { include_dirs = [ "include" ] } ohos_source_set("sys_event_service_ohos") { branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true cfi_vcall_icall_only = true debug = false } part_name = "hiview" include_dirs = [ "$hiview_plugin/eventservice/include", "$hiview_base/event_store/include", "$hiview_base/event_threshold/include", "$hiview_base/running_status_logger/include", ] sources = [ "src/ash_mem_utils.cpp", "src/compliant_event_checker.cpp", "src/data_publisher.cpp", "src/data_publisher_sys_event_callback.cpp", "src/data_share_dao.cpp", "src/data_share_store.cpp", "src/data_share_util.cpp", "src/event_query_wrapper_builder.cpp", "src/query_argument.cpp", "src/query_sys_event_callback_proxy.cpp", "src/running_status_log_util.cpp", "src/sys_event_callback_proxy.cpp", "src/sys_event_query_rule.cpp", "src/sys_event_rule.cpp", "src/sys_event_service_ohos.cpp", "src/sys_event_service_stub.cpp", ] configs = [ ":sys_event_service_ohos_private_config" ] public_configs = [ ":sys_event_service_ohos_public_config" ] deps = [ "$hiview_base:hiviewbase" ] external_deps = [ "ability_base:base", "ability_base:want", "access_token:libaccesstoken_sdk", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "hilog:libhilog", "hisysevent:libhisysevent", "ipc:ipc_single", "jsoncpp:jsoncpp", "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] }