diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index c50e8e84349c527a03c9085bfa198826f64f003d..07fa89a69d4bfe98f9a7dd84f37f71149ff6368a 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -429,9 +429,17 @@ ohos_static_library("es2panda_lib") { "//third_party/icu/icu4c/source/common", "//third_party/icu/icu4c/source/i18n", "//third_party/icu/icu4c/source", + "$ark_root/assembler", + "$ark_root/libpandabase", + "$ark_root/libpandabase/mem", ] } else { - external_deps += [ "icu:static_icuuc" ] + external_deps += [ + "icu:static_icuuc", + "runtime_core:arkassembler_public_headers", + "runtime_core:arkbase_public_headers", + "runtime_core:arkfile_public_headers", + ] } if (!is_arkui_x) { @@ -518,6 +526,20 @@ ohos_executable("es2panda") { "zlib:libz", sdk_libc_secshared_dep, ] + if (ark_standalone_build || (defined(is_arkui_x) && is_arkui_x)) { + include_dirs += [ + "$ark_root/assembler", + "$ark_root/libpandabase", + "$ark_root/libpandabase/mem", + ] + } else { + external_deps += [ + "icu:static_icuuc", + "runtime_core:arkassembler_public_headers", + "runtime_core:arkbase_public_headers", + "runtime_core:arkfile_public_headers", + ] + } if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) { external_deps += [ diff --git a/merge_abc/BUILD.gn b/merge_abc/BUILD.gn index 27ebcc75c147f1eff55218b8080d9286d77afd3a..29449966d763c695d0e8c1e1ed085ddcd43d33ba 100644 --- a/merge_abc/BUILD.gn +++ b/merge_abc/BUILD.gn @@ -45,9 +45,6 @@ protobuf_snapshot_generator_sources = [ config("panda_assembly_proto_public_config") { include_dirs = [ - "$ark_root/assembler", - "$ark_root/libpandabase", - "$ark_root/libpandabase/mem", "$ark_root", "src", "$proto_out_dir",