106f6ba60Sopenharmony_ci# Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved.
206f6ba60Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
306f6ba60Sopenharmony_ci# you may not use this file except in compliance with the License.
406f6ba60Sopenharmony_ci# You may obtain a copy of the License at
506f6ba60Sopenharmony_ci#
606f6ba60Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
706f6ba60Sopenharmony_ci#
806f6ba60Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
906f6ba60Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1006f6ba60Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1106f6ba60Sopenharmony_ci# See the License for the specific language governing permissions and
1206f6ba60Sopenharmony_ci# limitations under the License.
1306f6ba60Sopenharmony_ci
1406f6ba60Sopenharmony_ciimport("//build/ohos.gni")
1506f6ba60Sopenharmony_ciimport("//build/ohos/ace/ace.gni")
1606f6ba60Sopenharmony_ciimport("//developtools/profiler/hidebug/hidebug.gni")
1706f6ba60Sopenharmony_ci
1806f6ba60Sopenharmony_ciohos_shared_library("hidebug") {
1906f6ba60Sopenharmony_ci  include_dirs = [
2006f6ba60Sopenharmony_ci    "util",
2106f6ba60Sopenharmony_ci    "$hidebug_path/frameworks/native/include",
2206f6ba60Sopenharmony_ci    "$hidebug_path/interfaces/native/kits/include",
2306f6ba60Sopenharmony_ci  ]
2406f6ba60Sopenharmony_ci
2506f6ba60Sopenharmony_ci  sources = [
2606f6ba60Sopenharmony_ci    "napi_hidebug.cpp",
2706f6ba60Sopenharmony_ci    "napi_hidebug_gc.cpp",
2806f6ba60Sopenharmony_ci    "napi_hidebug_init.cpp",
2906f6ba60Sopenharmony_ci    "util/hiappevent_util.cpp",
3006f6ba60Sopenharmony_ci    "util/napi_util.cpp",
3106f6ba60Sopenharmony_ci  ]
3206f6ba60Sopenharmony_ci
3306f6ba60Sopenharmony_ci  deps = [ "$hidebug_path/frameworks/native:hidebug_native" ]
3406f6ba60Sopenharmony_ci
3506f6ba60Sopenharmony_ci  external_deps = [
3606f6ba60Sopenharmony_ci    "ability_base:configuration",
3706f6ba60Sopenharmony_ci    "ability_base:want",
3806f6ba60Sopenharmony_ci    "ability_runtime:app_context",
3906f6ba60Sopenharmony_ci    "bundle_framework:appexecfwk_base",
4006f6ba60Sopenharmony_ci    "bundle_framework:appexecfwk_core",
4106f6ba60Sopenharmony_ci    "c_utils:utils",
4206f6ba60Sopenharmony_ci    "ffrt:libffrt",
4306f6ba60Sopenharmony_ci    "hiappevent:hiappevent_innerapi",
4406f6ba60Sopenharmony_ci    "hidumper:lib_dump_usage",
4506f6ba60Sopenharmony_ci    "hilog:libhilog",
4606f6ba60Sopenharmony_ci    "hitrace:hitrace_meter",
4706f6ba60Sopenharmony_ci    "hiview:libucollection_utility",
4806f6ba60Sopenharmony_ci    "init:libbegetutil",
4906f6ba60Sopenharmony_ci    "ipc:ipc_core",
5006f6ba60Sopenharmony_ci    "napi:ace_napi",
5106f6ba60Sopenharmony_ci    "samgr:samgr_proxy",
5206f6ba60Sopenharmony_ci    "storage_service:storage_manager_acl",
5306f6ba60Sopenharmony_ci  ]
5406f6ba60Sopenharmony_ci
5506f6ba60Sopenharmony_ci  relative_install_dir = "module"
5606f6ba60Sopenharmony_ci
5706f6ba60Sopenharmony_ci  part_name = "hiprofiler"
5806f6ba60Sopenharmony_ci  subsystem_name = "developtools"
5906f6ba60Sopenharmony_ci}
60