1# Copyright (c) 2020 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 16config("libhilog_pub_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ "include" ] 20} 21 22ohos_source_set("libhilognapi_src") { 23 include_dirs = [ 24 "//third_party/node/src", 25 "//utils/native/base/include", 26 "//base/hiviewdfx/hilog/adapter", 27 ] 28 sources = [ 29 "src/common/napi/n_class.cpp", 30 "src/common/napi/n_func_arg.cpp", 31 "src/common/napi/n_val.cpp", 32 "src/hilog/module.cpp", 33 "src/hilog/src/hilog_napi.cpp", 34 "src/hilog/src/hilog_napi_base.cpp", 35 ] 36 deps = [ 37 "//base/hiviewdfx/hilog/adapter:libhilog_os_adapter", 38 "//utils/native/base:utilsecurec", 39 ] 40 external_deps = [ 41 "hilog_native:libhilog", 42 "napi:ace_napi", 43 ] 44 45 subsystem_name = "hiviewdfx" 46 part_name = "hilog_native" 47} 48 49config("libhilog_js_cfg") { 50 visibility = [ "*:*" ] 51 include_dirs = [ "include" ] 52} 53 54ohos_shared_library("libhilognapi") { 55 deps = [ ":libhilognapi_src" ] 56 output_name = "libhilog" 57 relative_install_dir = "module" 58 subsystem_name = "hiviewdfx" 59 part_name = "hilog_native" 60 public_configs = [ ":libhilog_js_cfg" ] 61 configs = [ ":libhilog_js_cfg" ] 62} 63