From 344c571fb2b08495e1fed67850c289614865a1f8 Mon Sep 17 00:00:00 2001 From: BruceZong Date: Thu, 18 May 2023 14:42:21 +0800 Subject: [PATCH] fix compile issue for asan Signed-off-by: BruceZong --- adapter/service/idl/BUILD.gn | 33 +++++++++++++++++++++++++++++++++ interfaces/js/napi/BUILD.gn | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/adapter/service/idl/BUILD.gn b/adapter/service/idl/BUILD.gn index 3c228b94f..95852fba9 100644 --- a/adapter/service/idl/BUILD.gn +++ b/adapter/service/idl/BUILD.gn @@ -61,3 +61,36 @@ ohos_source_set("hiview_service_impl") { part_name = "hiview" subsystem_name = "hiviewdfx" } + +ohos_source_set("hiview_service_impl_for_js") { + public_configs = [ ":hiview_service_ability_config" ] + + include_dirs = [ + "$hiview_base/include", + "include", + "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context", + ] + + sources = [ + "src/hiview_file_info.cpp", + "src/hiview_service_ability_proxy.cpp", + "src/hiview_service_agent.cpp", + ] + + deps = [ + "$hiview_base:hiviewbase", + "${ability_runtime_path}/frameworks/native/appkit:app_context", + ] + + external_deps = [ + "bundle_framework:appexecfwk_core", + "c_utils:utils", + "hilog_native:libhilog", + "ipc:ipc_single", + "safwk:system_ability_fwk", + "samgr:samgr_proxy", + "storage_service:storage_manager_acl", + ] + part_name = "hiview" + subsystem_name = "hiviewdfx" +} diff --git a/interfaces/js/napi/BUILD.gn b/interfaces/js/napi/BUILD.gn index b9516afae..7b8d64e62 100644 --- a/interfaces/js/napi/BUILD.gn +++ b/interfaces/js/napi/BUILD.gn @@ -23,7 +23,7 @@ ohos_shared_library("loglibrary_napi") { "./src/napi_hiview_js.cpp", ] - deps = [ "$hiview_adapter/service/idl:hiview_service_impl" ] + deps = [ "$hiview_adapter/service/idl:hiview_service_impl_for_js" ] external_deps = [ "hilog_native:libhilog", -- Gitee