1# Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved. 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 18ohos_shared_library("hidebug") { 19 include_dirs = [ 20 "util", 21 "$hidebug_path/frameworks/native/include", 22 "$hidebug_path/interfaces/native/kits/include", 23 ] 24 25 sources = [ 26 "napi_hidebug.cpp", 27 "napi_hidebug_dump.cpp", 28 "napi_hidebug_vm.cpp", 29 "napi_hidebug_init.cpp", 30 "util/napi_util.cpp", 31 ] 32 33 deps = [ "$hidebug_path/frameworks/native:hidebug_native" ] 34 35 external_deps = [ 36 "ability_runtime:app_context", 37 "c_utils:utils", 38 "hilog:libhilog", 39 "hisysevent:libhisysevent", 40 "hitrace:hitrace_meter", 41 "hiview:libfaultlogger", 42 "init:libbegetutil", 43 "ipc:ipc_core", 44 "napi:ace_napi", 45 "samgr:samgr_proxy", 46 ] 47 48 relative_install_dir = "module" 49 50 part_name = "hiprofiler" 51 subsystem_name = "developtools" 52} 53