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_gc.cpp", 28 "napi_hidebug_init.cpp", 29 "util/napi_util.cpp", 30 ] 31 32 deps = [ "$hidebug_path/frameworks/native:hidebug_native" ] 33 34 external_deps = [ 35 "ability_base:configuration", 36 "ability_base:want", 37 "ability_runtime:app_context", 38 "bundle_framework:appexecfwk_base", 39 "bundle_framework:appexecfwk_core", 40 "c_utils:utils", 41 "hidumper:lib_dump_usage", 42 "hilog:libhilog", 43 "hitrace:hitrace_meter", 44 "hiview:libucollection_utility", 45 "init:libbegetutil", 46 "ipc:ipc_core", 47 "napi:ace_napi", 48 "samgr:samgr_proxy", 49 "storage_service:storage_manager_acl", 50 ] 51 52 relative_install_dir = "module" 53 54 part_name = "hiprofiler" 55 subsystem_name = "developtools" 56} 57