From b3bbd90f05e2540dafc3a3751a5625ccd311c1c9 Mon Sep 17 00:00:00 2001 From: Zhenyu Pan Date: Sun, 11 Jun 2023 16:38:37 +0800 Subject: [PATCH] fixed d2eb70a from https://gitee.com/panzhenyu1/arkcompiler_toolchain/pulls/288 Add deps for ArkUI-X until it resolving resolve external_deps Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7CJK2 Signed-off-by: Zhenyu Pan Change-Id: I77637c00b11750e3adb2e640d83c0cc3983faaed --- tooling/BUILD.gn | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tooling/BUILD.gn b/tooling/BUILD.gn index ba95d298..a7d2a030 100644 --- a/tooling/BUILD.gn +++ b/tooling/BUILD.gn @@ -89,7 +89,11 @@ ohos_source_set("libark_ecma_debugger_set") { # hiviewdfx libraries external_deps = hiviewdfx_ext_deps - external_deps += [ "runtime_core:libarkfile_static" ] + if (!is_cross_platform_build) { + external_deps += [ "runtime_core:libarkfile_static" ] + } else { + deps += [ "$ark_root/libpandafile:libarkfile_static" ] + } deps += hiviewdfx_deps if (enable_leak_check) { @@ -117,10 +121,17 @@ ohos_shared_library("libark_ecma_debugger") { # hiviewdfx libraries external_deps = hiviewdfx_ext_deps - external_deps += [ - "ets_runtime:libark_jsruntime", - "libuv:uv", - ] + if (!is_cross_platform_build) { + external_deps += [ + "ets_runtime:libark_jsruntime", + "libuv:uv", + ] + } else { + deps += [ + "$ark_third_party_root/libuv:uv", + "//arkcompiler/ets_runtime:libark_jsruntime", + ] + } deps += hiviewdfx_deps if (!is_mingw && !is_mac) { -- Gitee