From aebb5f9bef52fb6b71d62f7f90d4194ba87c8079 Mon Sep 17 00:00:00 2001 From: Rokashevich Svetlana Date: Thu, 17 Apr 2025 19:11:54 +0300 Subject: [PATCH] Change ace_napi dep for ark_hybrid Issue: https://gitee.com/openharmony/arkui_napi/issues/IC59V4 Signed-off-by: Rokashevich Svetlana Change-Id: I941c12215e3f9fd1625f597efeabd0ceebda1775 --- BUILD.gn | 6 +++++- napi.gni | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 77628490c..244133754 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -199,7 +199,6 @@ ohos_source_set("ace_napi_static") { configs += [ "${ets_runtime_path}:ark_jsruntime_public_config" ] } else { external_deps += [ - "ets_runtime:libark_jsruntime", "icu:shared_icui18n", "icu:shared_icuuc", "libuv:uv", @@ -207,6 +206,11 @@ ohos_source_set("ace_napi_static") { if (!ark_standalone_build) { external_deps += [ "node:node_header_notice" ] } + if (ark_hybrid) { + external_deps += [ "runtime_core:libarkruntime" ] + } else { + external_deps += [ "ets_runtime:libark_jsruntime" ] + } } cflags_cc = [ "-Wno-missing-braces" ] diff --git a/napi.gni b/napi.gni index aa4b76f60..d87446b13 100755 --- a/napi.gni +++ b/napi.gni @@ -71,3 +71,7 @@ module_output_path = "napi/napi" if (!defined(ark_standalone_build)) { ark_standalone_build = false } + +if (!defined(ark_hybrid)) { + ark_hybrid = false +} -- Gitee