diff --git a/adapter/service/idl/BUILD.gn b/adapter/service/idl/BUILD.gn index 3c228b94f6e9abd70e9507b1620a381a07c57056..95852fba95864203f553bc13f58aa44c12c330ed 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 b9516afaea2b83535220cad0f5f77e3afea78d25..7b8d64e62aac514fba8a247906b9f29933cc6a64 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",