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/hiviewdfx/hiview/hiview.gni") 15import("//build/ohos.gni") 16 17config("sys_event_service_adapter_config") { 18 visibility = [ "*:*" ] 19 20 include_dirs = [ "." ] 21} 22 23ohos_source_set("sys_event_service_adapter") { 24 part_name = "hiview" 25 include_dirs = [ 26 "//third_party/bounds_checking_function/include", 27 "$hiview_plugin/eventservice/include", 28 "//third_party/jsoncpp/include", 29 "$hiview_base/event_store/include", 30 ] 31 32 public_configs = [ ":sys_event_service_adapter_config" ] 33 34 sources = [ "sys_event_service_adapter.cpp" ] 35 36 deps = [ 37 "$hiview_adapter/plugins/eventservice/service/idl:sys_event_service_ohos", 38 "$hiview_base:hiviewbase", 39 "$hiview_base/event_store:event_store_source", 40 ] 41 42 external_deps = [ 43 "hilog_native:libhilog", 44 "ipc:ipc_core", 45 "safwk:system_ability_fwk", 46 "samgr:samgr_proxy", 47 ] 48} 49 50group("unittest") { 51 testonly = true 52 deps = [ "test:SysEventServiceOhosUnitTest" ] 53} 54