diff --git a/bundle.json b/bundle.json index 142291a602d1816d52b25cde51f9854cbe80013b..213493d200293930976176c7381da64ffcad7879 100644 --- a/bundle.json +++ b/bundle.json @@ -22,11 +22,11 @@ "runtime_core", "zlib", "bounds_checking_function", - "protobuf" + "protobuf", + "icu" ], "third_party": [ - "json", - "icu" + "json" ] }, "build": { diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index d7f663a2bb92b56aac0ea96c668bfc51ea120271..bda0859580dcce43494a42869e0de4158f0d4473 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -395,20 +395,18 @@ ohos_static_library("es2panda_lib") { ] include_dirs = [ - "${target_out_dir}", - "//third_party/icu/icu4c/source/common", - "//third_party/icu/icu4c/source/i18n", - "//third_party/icu/icu4c/source", + "${target_out_dir}" ] deps = [ ":gen_isa_headers", ":gen_keywords_headers", - "$ark_third_party_root/icu/icu4c:static_icuuc", "../merge_abc:panda_assembly_proto_static", ] - external_deps = [] + external_deps = [ + "icu:static_icuuc" + ] if (!is_arkui_x) { external_deps += [ "json:nlohmann_json_static", diff --git a/ets2panda/BUILD.gn b/ets2panda/BUILD.gn index 42c9d7f0552227bd4afef4395e6bdd883d438bd7..38a7fe84107ed1c219fd2c429c6bee9be68cbbec 100644 --- a/ets2panda/BUILD.gn +++ b/ets2panda/BUILD.gn @@ -24,9 +24,6 @@ config("libes2panda_public_config") { "$target_gen_dir", "$target_gen_dir/include", "$target_gen_dir/generated", - "//third_party/icu/icu4c/source/common", - "//third_party/icu/icu4c/source/i18n", - "//third_party/icu/icu4c/source", "$ark_es2panda_root", ] } @@ -1159,9 +1156,7 @@ ohos_source_set("libes2panda_frontend_static") { ":gen_es2panda_lexer_tokenType_h", ":gen_es2panda_lexer_token_inl", ":isa_gen_es2panda_formats_h", - ":isa_gen_es2panda_isa_h", - "$ark_third_party_root/icu/icu4c:static_icui18n", - "$ark_third_party_root/icu/icu4c:static_icuuc", + ":isa_gen_es2panda_isa_h" ] external_deps = [ "runtime_core:libarktsassembler_package", @@ -1169,6 +1164,8 @@ ohos_source_set("libes2panda_frontend_static") { "runtime_core:libarktscompiler_package", "runtime_core:libarktsfile_package", sdk_libc_secshared_dep, + "icu:static_icuuc", + "icu:static_icui18n" ] part_name = "ets_frontend" subsystem_name = "arkcompiler" @@ -1219,6 +1216,7 @@ ohos_source_set("libes2panda_public_frontend_static") { external_deps = [ "runtime_core:libarktsbytecodeopt_package", sdk_libc_secshared_dep, + "icu:static_icuuc", ] part_name = "ets_frontend" subsystem_name = "arkcompiler" diff --git a/ets2panda/lsp/include/services/text_change/change_tracker.h b/ets2panda/lsp/include/services/text_change/change_tracker.h index d7d6d1042b99312fa3aa452a34ffbc7e54f5a2e8..ff21fa0cdb79fcf25be14cdd8ad0755e114abe8c 100644 --- a/ets2panda/lsp/include/services/text_change/change_tracker.h +++ b/ets2panda/lsp/include/services/text_change/change_tracker.h @@ -29,7 +29,6 @@ #include "lsp/include/formatting/formatting_context.h" #include "lsp/include/formatting/formatting.h" #include "lsp/include/internal_api.h" -#include "util.h" #include "public/es2panda_lib.h" namespace ark::es2panda::lsp { diff --git a/merge_abc/BUILD.gn b/merge_abc/BUILD.gn index 54bdb3148c62f3ed1f53d47fcbc730874bce3c53..6dd10e892212bf49aebd5c3eb8b9fe28c57efc3e 100644 --- a/merge_abc/BUILD.gn +++ b/merge_abc/BUILD.gn @@ -207,12 +207,13 @@ ohos_executable("merge_abc") { deps = [ ":panda_assembly_proto_static", - "$ark_third_party_root/icu/icu4c:static_icuuc", "../es2panda:es2panda_lib", ] + external_deps = [ "icu:static_icuuc" ] + if (!is_arkui_x) { - external_deps = [ "runtime_core:libarkziparchive_frontend_static" ] + external_deps += [ "runtime_core:libarkziparchive_frontend_static" ] } else { deps += [ "$ark_root/libziparchive:libarkziparchive_frontend_static" ] }