diff --git a/frameworks/napi/runninglock/BUILD.gn b/frameworks/napi/runninglock/BUILD.gn index 4cffe74e43eea16bd3140534ad5ad07219fe295e..15e7dfa8b8b700223f649eeedeff9268316eda06 100644 --- a/frameworks/napi/runninglock/BUILD.gn +++ b/frameworks/napi/runninglock/BUILD.gn @@ -31,11 +31,16 @@ ohos_shared_library("runninglock") { deps_ex = [ "c_utils:utils", - "ets_runtime:libark_jsruntime", "hilog:libhilog", "ipc:ipc_core", ] + if (defined(ark_hybrid) && ark_hybrid) { + deps_ex += [ "runtime_core:libarkruntime" ] + } else { + deps_ex += [ "ets_runtime:libark_jsruntime" ] + } + if (!build_public_version) { external_deps = deps_ex } else {