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("//build/ohos.gni") 15 16ohos_shared_library("hiappevent") { 17 include_dirs = [ 18 "./", 19 "include/", 20 "//third_party/node/src", 21 ] 22 23 configs = [ "//base/hiviewdfx/hiappevent/frameworks/native/libhiappevent:libhiappevent_source_config" ] 24 25 sources = [ 26 "./src/napi_hiappevent_build.cpp", 27 "./src/napi_hiappevent_config.cpp", 28 "./src/napi_hiappevent_init.cpp", 29 "./src/napi_hiappevent_js.cpp", 30 "./src/napi_hiappevent_write.cpp", 31 ] 32 33 deps = [ 34 "//base/hiviewdfx/hiappevent/frameworks/native/libhiappevent:libhiappevent_base", 35 "//foundation/ace/napi:ace_napi", 36 ] 37 38 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 39 40 relative_install_dir = "module" 41 42 part_name = "hiappevent_js" 43 subsystem_name = "hiviewdfx" 44} 45