1# Copyright (c) Huawei Technologies Co., Ltd. 2022-2023. 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("//developtools/profiler/hidebug/hidebug.gni") 16 17ohos_source_set("libhidebug_source") { 18 part_name = "${OHOS_PROFILER_PART_NAME}" 19 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 20 include_dirs = [ "../../interfaces/native/innerkits/include" ] 21 22 sources = [ "hidebug_base.c" ] 23 24 external_deps = [ 25 "c_utils:utils", 26 "hichecker:libhichecker", 27 "hilog:libhilog", 28 "init:libbegetutil", 29 ] 30} 31 32ohos_source_set("libhidebug_init_source") { 33 part_name = "${OHOS_PROFILER_PART_NAME}" 34 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 35 defines = [ "HIDEBUG_IN_INIT" ] 36 37 include_dirs = [ "../../interfaces/native/innerkits/include" ] 38 39 external_deps = [ "init:libinit_module_engine" ] 40 sources = [ "hidebug_base.c" ] 41 deps = [ "//third_party/bounds_checking_function:libsec_static" ] 42} 43 44ohos_shared_library("hidebug_native") { 45 part_name = "${OHOS_PROFILER_PART_NAME}" 46 subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" 47 include_dirs = [ 48 "../../interfaces/native/kits/include", 49 "include", 50 ] 51 52 sources = [ 53 "src/hidebug_app_thread_cpu.cpp", 54 "src/hidebug_native_interface_impl.cpp", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "hidumper:lib_dump_usage", 60 "hilog:libhilog", 61 "hitrace:hitrace_meter", 62 "hiview:libucollection_client", 63 "hiview:libucollection_utility", 64 ] 65} 66