1# Copyright (c) 2023-2024 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 17ohos_shared_library("loglibrary_napi") { 18 include_dirs = [ 19 "include/", 20 "$hiview_base/include", 21 "$hiview_interfaces/inner_api/unified_collection", 22 ] 23 24 sources = [ 25 "./src/hiview_napi_adapter.cpp", 26 "./src/hiview_napi_util.cpp", 27 "./src/hiview_service_agent.cpp", 28 "./src/napi_hiview_js.cpp", 29 ] 30 31 deps = [ 32 "$hiview_adapter/service/client:hiview_service_impl_for_js", 33 "$hiview_base/utility:hiview_utility", 34 ] 35 36 external_deps = [ 37 "ability_runtime:app_context", 38 "access_token:libtokenid_sdk", 39 "bundle_framework:appexecfwk_core", 40 "hilog:libhilog", 41 "napi:ace_napi", 42 "storage_service:storage_manager_acl", 43 ] 44 45 relative_install_dir = "module" 46 part_name = "hiview" 47 subsystem_name = "hiviewdfx" 48} 49 50group("unittest") { 51 testonly = true 52 deps = [ "test:unittest" ] 53} 54