1# Copyright (c) 2023 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("xpower_event_config") { 18 visibility = [ "*:*" ] 19 include_dirs = [ "include" ] 20} 21 22ohos_shared_library("libxpower_event") { 23 public_configs = [ ":xpower_event_config" ] 24 sources = [ "src/xpower_event.cpp" ] 25 26 external_deps = [ 27 "bounds_checking_function:libsec_shared", 28 "faultloggerd:libbacktrace_local", 29 "hisysevent:libhisysevent", 30 "init:libbegetutil", 31 ] 32 33 innerapi_tags = [ "platformsdk" ] 34 version_script = "libxpower_events.map" 35 part_name = "hiview" 36 subsystem_name = "hiviewdfx" 37} 38 39ohos_shared_library("libxpower_event_js") { 40 public_configs = [ ":xpower_event_config" ] 41 sources = [ "src/xpower_event_js.cpp" ] 42 43 external_deps = [ 44 "ets_runtime:libark_jsruntime", 45 "hisysevent:libhisysevent", 46 "init:libbegetutil", 47 "napi:ace_napi", 48 ] 49 50 innerapi_tags = [ "platformsdk" ] 51 version_script = "libxpower_events.map" 52 part_name = "hiview" 53 subsystem_name = "hiviewdfx" 54} 55