diff --git a/BUILD.gn b/BUILD.gn index 77628490c0b1fc39252772c63b2738eac9ec3a91..2441337545baedbf85aef6a97ba751a685b1e1e1 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 aa4b76f602d5175247692ffe035e2c8accf10051..d87446b13ab775de40bbb29575e2f18b10dc0cd8 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 +}