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 "//commonlibrary/c_utils/base/include", 23 "//third_party/node/src", 24 "//foundation/arkui/napi", 25 "//foundation/arkui/napi/native_engine", 26 "//foundation/arkui/napi/interfaces/kits", 27 "//base/hiviewdfx/hidumper/interfaces/innerkits/include/", 28 "//foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context", 29 ] 30} 31 32ohos_shared_library("hidebug") { 33 sources = [ "napi_hidebug.cpp" ] 34 35 configs = [ ":napi_hidebug_config" ] 36 37 deps = [ 38 "//base/hiviewdfx/hidumper/interfaces/innerkits:lib_dump_usage", 39 "//foundation/ability/ability_runtime/frameworks/native/appkit:app_context", 40 "//foundation/arkui/napi:ace_napi", 41 ] 42 43 external_deps = [ 44 "ability_base:configuration", 45 "ability_base:want", 46 "bundle_framework:appexecfwk_base", 47 "bundle_framework:appexecfwk_core", 48 "c_utils:utils", 49 "hilog_native:libhilog", 50 "ipc:ipc_core", 51 "samgr:samgr_proxy", 52 ] 53 54 relative_install_dir = "module" 55 56 part_name = "profiler" 57 subsystem_name = "developtools" 58} 59