1# Copyright (c) 2022-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("//build/ohos.gni") 15 16ohos_shared_library("hisysevent_napi") { 17 include_dirs = [ 18 ".", 19 "include/", 20 ] 21 22 configs = [] 23 24 sources = [ 25 "./src/js_callback_manager.cpp", 26 "./src/napi_hisysevent_adapter.cpp", 27 "./src/napi_hisysevent_init.cpp", 28 "./src/napi_hisysevent_js.cpp", 29 "./src/napi_hisysevent_listener.cpp", 30 "./src/napi_hisysevent_querier.cpp", 31 "./src/napi_hisysevent_util.cpp", 32 ] 33 34 deps = [ 35 "../../../native/innerkits/hisysevent:libhisysevent", 36 "../../../native/innerkits/hisysevent_manager:libhisyseventmanager", 37 ] 38 39 external_deps = [ 40 "access_token:libtokenid_sdk", 41 "c_utils:utils", 42 "hilog:libhilog", 43 "ipc:ipc_single", 44 "jsoncpp:jsoncpp", 45 "napi:ace_napi", 46 ] 47 48 relative_install_dir = "module" 49 50 part_name = "hisysevent" 51 52 subsystem_name = "hiviewdfx" 53} 54