1# Copyright (c) 2022 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") 15import("//build/ohos/ace/ace.gni") 16import("//developtools/profiler/hidebug/hidebug.gni") 17 18config("napi_hidebug_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 ".", 23 "include/", 24 "//utils/native/base/include", 25 "//third_party/node/src", 26 "//foundation/ace/napi", 27 "//foundation/ace/napi/native_engine", 28 "//foundation/ace/napi/interfaces/kits", 29 "//third_party/musl/include/malloc.h", 30 "//foundation/aafwk/standard/frameworks/kits/appkit/native/ability_runtime/context", 31 ] 32} 33 34ohos_shared_library("hidebug") { 35 sources = [ "napi_hidebug.cpp" ] 36 37 configs = [ ":napi_hidebug_config" ] 38 39 deps = [ 40 "//base/hiviewdfx/hiview/adapter/utility:hiview_adapter_utility", 41 "//foundation/ace/napi:ace_napi", 42 "//utils/native/base:utils", 43 "//foundation/aafwk/standard/frameworks/kits/appkit:app_context", 44 ] 45 46 external_deps = [ 47 "bundle_framework:appexecfwk_base", 48 "hilog_native:libhilog", 49 "ipc:ipc_core", 50 ] 51 52 relative_install_dir = "module" 53 54 part_name = "profiler" 55 subsystem_name = "developtools" 56} 57